title: What is the right way to fix error NU1605: Detected package downgrade - log4net
body: <p>You do as follows:</p>
  
  <pre><code>dotnet new console
  dotnet add-package log4net --version 2.0.8
  dotnet publish -r win10-x64
  </code></pre>
  
  <p>And then you get:</p>
  
  <pre><code>error NU1605: Detected package downgrade: System.Runtime.InteropServices from 4.3.0 to 4.1.0.
  </code></pre>
  
  <p>You can fix it adding the following to your csproj under PropertyGroup</p>
  
  <pre><code>&lt;NoWarn&gt;$(NoWarn);NU1605&lt;/NoWarn&gt;
  </code></pre>
  
  <p>But I'd like to understand the right way to get this fixed.</p>