Skip to content

Commit 0106da0

Browse files
committed
Add .NET 9.0 as a target
1 parent c714f7f commit 0106da0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

vsinterop/vsinterop.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
Because we're multitargeting, we need to specify SupportedPlatform
99
to get proper platform compatibility warnings.
1010
https://learn.microsoft.com/dotnet/standard/analyzers/platform-compat-analyzer
11+
12+
Including just net9.0 if users want to build for .NET 9 and do a runtime check.
1113
-->
12-
<TargetFrameworks>net9.0-windows10.0.22000.0;net472</TargetFrameworks>
14+
<TargetFrameworks>net9.0-windows10.0.22000.0;net9.0;net472</TargetFrameworks>
1315
<SupportedPlatform>windows10.0.22000.0</SupportedPlatform>
1416

17+
<!-- Ignore checking for compatibilty when targetting .NET 9 without the windows qualifier -->
18+
<NoWarn Condition="'$(TargetFramework)' == 'net9.0'">$(NoWarn);CA1416</NoWarn>
19+
1520
<!--
1621
We don't want to have implicit usings as we're retargeting System.IO to Microsoft.IO
1722
in our GlobalUsings.cs file for .NET 4.7.2.
@@ -48,7 +53,7 @@
4853
</ItemGroup>
4954

5055
<ItemGroup>
51-
<PackageReference Include="KlutzyNinja.Madowaku" Version="0.0.0-alpha.0" />
56+
<PackageReference Include="KlutzyNinja.Madowaku" Version="0.0.0-alpha.0.1" />
5257
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.183">
5358
<PrivateAssets>all</PrivateAssets>
5459
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

0 commit comments

Comments
 (0)