Skip to content

Commit 0992679

Browse files
authored
Fixes .net10 msbuild compatibility issue (#1716) (#1738)
* Fixes .net10 msbuild compatibility issue (#1716) * fix: Attempt to use msbuild 17.14.28 for all non-10 versions of dotnet frameworks * Use the appropriate Microsoft.Build version depending on target framework
1 parent a2c9d3b commit 0992679

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/CommandLine/CommandLine.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858

5959
<ItemGroup>
6060
<PackageReference Include="CommandLineParser" Version="2.8.0" />
61-
<PackageReference Include="Microsoft.Build" Version="17.14.28" ExcludeAssets="runtime" Condition="'$(TargetFramework)' == 'net9.0' OR '$(TargetFramework)' == 'net10.0'" />
61+
<PackageReference Include="Microsoft.Build" Version="17.14.28" ExcludeAssets="runtime" Condition="'$(TargetFramework)' == 'net9.0'" />
62+
<PackageReference Include="Microsoft.Build" Version="18.0.2" ExcludeAssets="runtime" Condition="'$(TargetFramework)' == 'net10.0'" />
6263
<PackageReference Include="Microsoft.Build.Locator" Version="$(RoslynatorMicrosoftBuildLocatorVersion)" />
6364
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(RoslynatorCliRoslynVersion)" />
6465
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="$(RoslynatorCliRoslynVersion)" />

0 commit comments

Comments
 (0)