chore: Adjust workaround location
This commit is contained in:
Родитель
3b1e377437
Коммит
a31d62d42c
|
@ -21,4 +21,18 @@
|
|||
<Import Project="../uno.winui.runtime-replace.targets" Condition="'$(_UnoIsWinAppSDKDefined)'!='true'" />
|
||||
|
||||
<Import Project="../uno.winui.winappsdk.targets" Condition="'$(_UnoIsWinAppSDKDefined)'=='true'" />
|
||||
|
||||
<!-- HD workaround for https://github.com/dotnet/sdk/issues/1212, see HD#2924 -->
|
||||
<Target Name="_RemoveHDAnalyzerRelease"
|
||||
BeforeTargets="CoreCompile;XamlPreCompile"
|
||||
Condition=" '$(Optimize)' == 'true' ">
|
||||
<!---
|
||||
Remove HD analyzers in release mode, as they cannot work in release mode.
|
||||
-->
|
||||
<ItemGroup>
|
||||
<_HDAnalyzerToRemove Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)'=='Uno.UI.HotDesign'" />
|
||||
<Analyzer Remove="@(_HDAnalyzerToRemove)"/>
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -109,17 +109,4 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="@(_UnoProjectSystemPackageReference)" Exclude="@(PackageReference)" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- HD workaround for https://github.com/dotnet/sdk/issues/1212, see HD#2924 -->
|
||||
<Target Name="_RemoveHDAnalyzerRelease"
|
||||
BeforeTargets="CoreCompile;XamlPreCompile"
|
||||
Condition=" '$(Optimize)' == 'true' ">
|
||||
<!---
|
||||
Remove HD analyzers in release mode, as they cannot work in release mode.
|
||||
-->
|
||||
<ItemGroup>
|
||||
<_HDAnalyzerToRemove Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)'=='Uno.UI.HotDesign'" />
|
||||
<Analyzer Remove="@(_HDAnalyzerToRemove)"/>
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
Загрузка…
Ссылка в новой задаче