Skip to content

Commit

Permalink
Add <NoWarn>$(NoWarn);NU5128</NoWarn>
Browse files Browse the repository at this point in the history
One approach is to wrap your <dependencies> in the .nuspec file
with:  <group targetFramework=".NETFramework4.6.2">

The other approach is <NoWarn>$(NoWarn);NU5128</NoWarn>

Since I didn't get anywhere with the first approach, I went with the 2nd.

Refs:

NuGet/docs.microsoft.com-nuget#1677
NuGet/Home#8583 (comment)
  • Loading branch information
tgharold committed Feb 15, 2022
1 parent 634e92b commit 8b9009b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
Expand All @@ -12,6 +12,7 @@
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<NoWarn>$(NoWarn);NU5128</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down

0 comments on commit 8b9009b

Please sign in to comment.