title: Package restore failed. Rolling back package changes - Serilog.AspNetCore
body: <p>I have an asp.net Core project and I'm trying to add a logger to it.
  I choose SeriLog which I used in other projects.</p>
  
  <p>But when I'm trying to add the "<strong>Serilog.AspNetCore</strong>" package version 2.0.0 I'm getting"</p>
  
  <blockquote>
    <p>Package restore failed. Rolling back package changes for 'BackEnd'.</p>
  </blockquote>
  
  <p>My csproj contain the following settings:</p>
  
  <pre><code>&lt;PropertyGroup&gt;
     &lt;TargetFramework&gt;netcoreapp2.0&lt;/TargetFramework&gt;
     &lt;DockerComposeProjectPath&gt;..\..\docker-compose.dcproj&lt;/DockerComposeProjectPath&gt;
     &lt;AssemblyName&gt;BackEnd&lt;/AssemblyName&gt;
    &lt;RootNamespace&gt;BackEnd&lt;/RootNamespace&gt;
  &lt;/PropertyGroup&gt;
  </code></pre>
  
  <p>Allready tried to clear all nuget cache, rebuilding, restart VS</p>
  
  <p>Running on Win10, Visual Studio 2017 15.3.0</p>
  
  <p>Is there a log that can give me more details why I'm getting this error?
  Any suggestions how to fix it?</p>
  
  <p><strong>*Update - the detailed build log</strong> (Thanks @Leo-MSFT for that):</p>
  
  <blockquote>
    <p>...</p>
    
    <p>Checking compatibility for System.Security.Cryptography.Csp 4.3.0 with .NETCoreApp,Version=v2.0.</p>
    
    <p>Checking compatibility for runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple 4.3.0 with .NETCoreApp,Version=v2.0.</p>
    
    <p>All packages and projects are compatible with .NETCoreApp,Version=v2.0.</p>
    
    <p>Detected package downgrade: Microsoft.Extensions.DependencyInjection from 2.0.0 to 1.1.1. Reference the package directly from the project to select a different version. </p>
    
    <p>BackEnd (>= 1.0.0) -> Serilog.AspNetCore (>= 2.0.0) -> Microsoft.Extensions.DependencyInjection (>= 2.0.0) </p>
    
    <p>BackEnd (>= 1.0.0) -> Microsoft.Extensions.DependencyInjection (>= 1.1.1)</p>
    
    <p>Package restore failed. Rolling back package changes for 'BackEnd'.</p>
    
    <p>Time Elapsed: 00:00:01.4928161</p>
    
    <p>========== Finished ==========</p>
  </blockquote>
  
  <p>Yep it seems that it's related to "<strong>Microsoft.Extensions.DependencyInjection</strong>" </p>