.net - Package restore failed. Rolling back package changes - Serilog.AspNetCore -


i have asp.net core project , i'm trying add logger it. choose serilog used in other projects.

but when i'm trying add "serilog.aspnetcore" package version 2.0.0 i'm getting"

package restore failed. rolling package changes 'backend'.

my csproj contain following settings:

<propertygroup>    <targetframework>netcoreapp2.0</targetframework>    <dockercomposeprojectpath>..\..\docker-compose.dcproj</dockercomposeprojectpath>    <assemblyname>backend</assemblyname>   <rootnamespace>backend</rootnamespace> </propertygroup> 

allready tried clear nuget cache, rebuilding, restart vs

running on win10, visual studio 2017 15.3.0

is there log can give me more details why i'm getting error? suggestions how fix it?

*update - detailed build log (thanks @leo-msft that):

...

checking compatibility system.security.cryptography.csp 4.3.0 .netcoreapp,version=v2.0.

checking compatibility runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple 4.3.0 .netcoreapp,version=v2.0.

all packages , projects compatible .netcoreapp,version=v2.0.

detected package downgrade: microsoft.extensions.dependencyinjection 2.0.0 1.1.1. reference package directly project select different version.

backend (>= 1.0.0) -> serilog.aspnetcore (>= 2.0.0) -> microsoft.extensions.dependencyinjection (>= 2.0.0)

backend (>= 1.0.0) -> microsoft.extensions.dependencyinjection (>= 1.1.1)

package restore failed. rolling package changes 'backend'.

time elapsed: 00:00:01.4928161

========== finished ==========

yep seems it's related "microsoft.extensions.dependencyinjection"

solved updating existence nuget packages latest version available. including 5 packages:

<packagereference include="microsoft.applicationinsights.aspnetcore" version="2.1.1" /> <packagereference include="microsoft.aspnetcore" version="2.0.0" /> <packagereference include="microsoft.aspnetcore.mvc" version="2.0.0" /> <packagereference include="microsoft.extensions.configuration" version="2.0.0" /> <packagereference include="microsoft.extensions.dependencyinjection" version="2.0.0" /> 

the problem version of "microsoft.extensions.dependencyinjection" update of them.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -