Skip to content

Commit

Permalink
Support for MSBuild 17.4 as .NET 7.0 when running as a task (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkl authored Feb 23, 2023
1 parent a6afb30 commit 9ad5d3e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@

<UsingTask TaskName="Microsoft.VisualStudio.SlnGen.Tasks.SlnGenToolTask"
AssemblyFile="$([MSBuild]::ValueOrDefault('$(SlnGenAssemblyFile)', '$(MSBuildThisFileDirectory)..\tools\net6.0\slngen.dll'))"
Condition="'$(MSBuildRuntimeType)' == 'Core' And '$(MSBuildVersion)' &gt;= '17.0.0'" />
Condition="'$(MSBuildRuntimeType)' == 'Core' And '$(MSBuildVersion)' &gt;= '17.0.0' And '$(MSBuildVersion)' &lt; '17.4.0'" />

<UsingTask TaskName="Microsoft.VisualStudio.SlnGen.Tasks.SlnGenToolTask"
AssemblyFile="$([MSBuild]::ValueOrDefault('$(SlnGenAssemblyFile)', '$(MSBuildThisFileDirectory)..\tools\net7.0\slngen.dll'))"
Condition="'$(MSBuildRuntimeType)' == 'Core' And '$(MSBuildVersion)' &gt;= '17.4.0'" />

<Target Name="SlnGen"
DependsOnTargets="$(SlnGenDependsOn)">
Expand Down

0 comments on commit 9ad5d3e

Please sign in to comment.