Condition APICompat workaround on desktop msbuild only (#9797)

We need to keep this workaround in msbuild until the .NET Framework legs build with a VS that either uses a 8.0.2xx or a 9.0 SDK. To unblock building msbuild for unified-build in the VMR, condition this target on desktop msbuild only.
This commit is contained in:
Viktor Hofer 2024-02-28 17:52:02 +01:00 коммит произвёл GitHub
Родитель 9d0238fe43
Коммит 1bbca92392
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -39,8 +39,10 @@
</Target>
<!-- Make APICompat use roslyn from the toolset SDK instead of from the toolset package. This avoids unification issues on desktop msbuild.
TODO: Remove when a 8.0.200 or 9.0 SDK is consumed. -->
<Target Name="FixAPICompatWorkAroundRoslynMove" AfterTargets="CollectApiCompatInputs">
TODO: Remove when Visual Studio with an 8.0.200 or 9.0 SDK is consumed. -->
<Target Name="FixAPICompatWorkAroundRoslynMove"
AfterTargets="CollectApiCompatInputs"
Condition="'$(MSBuildRuntimeType)' != 'Core'">
<PropertyGroup>
<RoslynAssembliesPath>$(RoslynTargetsPath)</RoslynAssembliesPath>
</PropertyGroup>