Skip to content

Commit

Permalink
Merge pull request #4321 from sibille/4314_fixwindowswarnings
Browse files Browse the repository at this point in the history
Exclude CA1416 warnings from project
  • Loading branch information
sibille authored May 28, 2021
2 parents 9ca725e + e3b22b7 commit 1e7996e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
</PropertyGroup>

<!-- Workaround for https://github.com/dotnet/sdk/issues/17890 -->
<PropertyGroup>
<NoWarn>CA1416, $(NoWarn)</NoWarn>
</PropertyGroup>

<ItemGroup>
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
</PropertyGroup>

<!-- Workaround for https://github.com/dotnet/sdk/issues/17890 -->
<PropertyGroup>
<NoWarn>CA1416, $(NoWarn)</NoWarn>
</PropertyGroup>

<ItemGroup>
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
</PropertyGroup>
<!--{[{-->
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>1701;1702;CA1416</NoWarn>
</PropertyGroup>
<!--}]}-->
</Project>

0 comments on commit 1e7996e

Please sign in to comment.