Skip to content

Commit a808e65

Browse files
committed
Suppress CA1416 on modern uwp
1 parent 9b94a66 commit a808e65

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

MultiTarget/WinUI.Extra.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
<!-- These suppressions are for references between generated assemblies and that VS can keep in the Error List once resolved -->
3939
<NoWarn>$(NoWarn);WMC1006;CS8034;</NoWarn>
4040
</PropertyGroup>
41+
42+
<!-- Disable warnings for 'This call site is reachable on all platforms.' caused by underlying platform. -->
43+
<PropertyGroup Condition="'$(IsUwp)' == 'true' AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">
44+
<NoWarn>$(NoWarn);CA1416;</NoWarn>
45+
</PropertyGroup>
4146

4247
<ItemGroup>
4348
<Compile Include="$(ToolingDirectory)\GlobalUsings_WinUI.cs" />

0 commit comments

Comments
 (0)