I am trying to install the Nuget package: Microsoft.Extenstions.Logging, on my ASP.Net MVC 5 projecton, .Net 4.6, Visual Studio 2015, and keep getting this error:
Attempting to gather dependency information for package 'Microsoft.Extensions.Configuration.2.0.0' with respect to project 'ProjectName.web', targeting '.NETFramework,Version=v4.6.1' Gathering dependency information took 271.03 ms Attempting to resolve dependencies for package 'Microsoft.Extensions.Configuration.2.0.0' with DependencyBehavior 'Lowest' Resolving dependency information took 0 ms Resolving actions to install package 'Microsoft.Extensions.Configuration.2.0.0' Resolved actions to install package 'Microsoft.Extensions.Configuration.2.0.0' Retrieving package 'Microsoft.Extensions.Configuration 2.0.0' from 'nuget.org'. GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.configuration/2.0.0/microsoft.extensions.configuration.2.0.0.nupkg OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.configuration/2.0.0/microsoft.extensions.configuration.2.0.0.nupkg 259ms Installing Microsoft.Extensions.Configuration 2.0.0. Install failed. Rolling back... Package 'Microsoft.Extensions.Configuration.2.0.0' does not exist in project 'ProjectName.web' Package 'Microsoft.Extensions.Configuration.2.0.0' does not exist in folder 'C:\Git\ProjectName\packages' Executing nuget actions took 1.27 sec Could not install package 'Microsoft.Extensions.Configuration 2.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. ========== Finished ========== Time Elapsed: 00:00:05.6980685
Here is another link to this problem, on Github: issue
But does not provide any solution/workaround to fix this...