Skip to content

Commit

Permalink
[release/6.0.4xx] Add CompilerVisibleProperty needed for analyzer in …
Browse files Browse the repository at this point in the history
…Windows SDK projection (#42655)
  • Loading branch information
marcpopMSFT committed Aug 14, 2024
2 parents 81560bf + f84eaa2 commit aeb357b
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,23 @@ Copyright (c) .NET Foundation. All rights reserved.
<TargetPlatformMinVersion Condition="'$(TargetPlatformMinVersion)' == ''">$(TargetPlatformVersion)</TargetPlatformMinVersion>
</PropertyGroup>

<!-- Used by analyzers in the Microsoft.Windows.SDK.NET.Ref package. -->
<PropertyGroup Condition="'$(IncludeWindowsSDKRefFrameworkReferences)' == 'true'">
<CsWinRTAotOptimizerEnabled Condition="'$(CsWinRTAotOptimizerEnabled)' == '' and $([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')) >= 6">true</CsWinRTAotOptimizerEnabled>
<CsWinRTAotExportsEnabled Condition="'$(CsWinRTAotExportsEnabled)' == '' and '$(CsWinRTAotOptimizerEnabled)' == 'true' and '$(PublishAot)' == 'true'">true</CsWinRTAotExportsEnabled>
<CsWinRTCcwLookupTableGeneratorEnabled Condition="'$(CsWinRTCcwLookupTableGeneratorEnabled)' == '' and '$(CsWinRTGenerateProjection)' != 'true'">true</CsWinRTCcwLookupTableGeneratorEnabled>
</PropertyGroup>

<ItemGroup Condition="'$(IncludeWindowsSDKRefFrameworkReferences)' == 'true'">
<CompilerVisibleProperty Include="CsWinRTAotOptimizerEnabled" />
<CompilerVisibleProperty Include="CsWinRTAotExportsEnabled" />
<CompilerVisibleProperty Include="CsWinRTRcwFactoryFallbackGeneratorForceOptIn" />
<CompilerVisibleProperty Include="CsWinRTRcwFactoryFallbackGeneratorForceOptOut" />
<CompilerVisibleProperty Include="CsWinRTCcwLookupTableGeneratorEnabled" />
<CompilerVisibleProperty Include="CsWinRTMergeReferencedActivationFactories" />
<CompilerVisibleProperty Include="CsWinRTAotWarningLevel" />
</ItemGroup>

<Target Name="_ErrorOnUnresolvedWindowsSDKAssemblyConflict"
AfterTargets="ResolveAssemblyReferences"
Condition=" '@(ResolveAssemblyReferenceUnresolvedAssemblyConflicts)' != '' ">
Expand Down

0 comments on commit aeb357b

Please sign in to comment.