Skip to content

Commit 1e7996e

Browse files
authored
Merge pull request #4321 from sibille/4314_fixwindowswarnings
Exclude CA1416 warnings from project
2 parents 9ca725e + e3b22b7 commit 1e7996e

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

templates/WinUI/Projects/Default.Blank/wts.ProjectName/wts.ProjectName.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
1010
</PropertyGroup>
1111

12+
<!-- Workaround for https://github.com/dotnet/sdk/issues/17890 -->
13+
<PropertyGroup>
14+
<NoWarn>CA1416, $(NoWarn)</NoWarn>
15+
</PropertyGroup>
16+
1217
<ItemGroup>
1318
<Manifest Include="$(ApplicationManifest)" />
1419
</ItemGroup>

templates/WinUI/Projects/Default/wts.ProjectName/wts.ProjectName.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
1010
</PropertyGroup>
1111

12+
<!-- Workaround for https://github.com/dotnet/sdk/issues/17890 -->
13+
<PropertyGroup>
14+
<NoWarn>CA1416, $(NoWarn)</NoWarn>
15+
</PropertyGroup>
16+
1217
<ItemGroup>
1318
<Manifest Include="$(ApplicationManifest)" />
1419
</ItemGroup>

templates/WinUI/SC/StyleCop/Param_ProjectName/Param_ProjectName_postaction.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
44
</PropertyGroup>
55
<!--{[{-->
6-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
6+
<PropertyGroup>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
8-
<NoWarn>1701;1702;CA1416</NoWarn>
98
</PropertyGroup>
109
<!--}]}-->
1110
</Project>

0 commit comments

Comments
 (0)