Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Microsoft.Extensions.DependencyInjection.Abstractions nuget package install fails on .Net 4.5
PM> Install-Package microsoft.Extensions.DependencyInjection.Abstractions -pre
Attempting to gather dependencies information for package 'microsoft.Extensions.DependencyInjection.Abstractions.1.0.0-rc1-final' with respect to project 'DINugetTest', targeting '.NETFramework,Version=v4.5'
Attempting to resolve dependencies for package 'microsoft.Extensions.DependencyInjection.Abstractions.1.0.0-rc1-final' with DependencyBehavior 'Lowest'
Resolving actions to install package 'microsoft.Extensions.DependencyInjection.Abstractions.1.0.0-rc1-final'
Resolved actions to install package 'microsoft.Extensions.DependencyInjection.Abstractions.1.0.0-rc1-final'
Adding package 'System.ComponentModel.4.0.1-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.ComponentModel.4.0.1-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.ComponentModel.4.0.1-beta-23516' to 'packages.config'
Successfully installed 'System.ComponentModel 4.0.1-beta-23516' to DINugetTest
Adding package 'System.Diagnostics.Debug.4.0.11-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.Diagnostics.Debug.4.0.11-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.Diagnostics.Debug.4.0.11-beta-23516' to 'packages.config'
Successfully installed 'System.Diagnostics.Debug 4.0.11-beta-23516' to DINugetTest
Adding package 'System.Globalization.4.0.11-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.Globalization.4.0.11-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.Globalization.4.0.11-beta-23516' to 'packages.config'
Successfully installed 'System.Globalization 4.0.11-beta-23516' to DINugetTest
Adding package 'System.IO.4.0.0' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.IO.4.0.0' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.IO.4.0.0' to 'packages.config'
Successfully installed 'System.IO 4.0.0' to DINugetTest
Adding package 'System.Linq.4.0.1-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.Linq.4.0.1-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.Linq.4.0.1-beta-23516' to 'packages.config'
Successfully installed 'System.Linq 4.0.1-beta-23516' to DINugetTest
Adding package 'System.Linq.Expressions.4.0.11-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.Linq.Expressions.4.0.11-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.Linq.Expressions.4.0.11-beta-23516' to 'packages.config'
Successfully installed 'System.Linq.Expressions 4.0.11-beta-23516' to DINugetTest
Adding package 'System.Reflection.Primitives.4.0.0' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.Reflection.Primitives.4.0.0' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.Reflection.Primitives.4.0.0' to 'packages.config'
Successfully installed 'System.Reflection.Primitives 4.0.0' to DINugetTest
Adding package 'System.Resources.ResourceManager.4.0.1-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.Resources.ResourceManager.4.0.1-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages'
Added package 'System.Resources.ResourceManager.4.0.1-beta-23516' to 'packages.config'
Successfully installed 'System.Resources.ResourceManager 4.0.1-beta-23516' to DINugetTest
Install failed. Rolling back...
Package 'System.Runtime 4.0.20' does not exist in project 'DINugetTest'
Removed package 'System.Resources.ResourceManager 4.0.1-beta-23516' from 'packages.config'
Removed package 'System.Reflection.Primitives 4.0.0' from 'packages.config'
Removed package 'System.Linq.Expressions 4.0.11-beta-23516' from 'packages.config'
Removed package 'System.Linq 4.0.1-beta-23516' from 'packages.config'
Removed package 'System.IO 4.0.0' from 'packages.config'
Removed package 'System.Globalization 4.0.11-beta-23516' from 'packages.config'
Removed package 'System.Diagnostics.Debug 4.0.11-beta-23516' from 'packages.config'
Removed package 'System.ComponentModel 4.0.1-beta-23516' from 'packages.config'
Package 'System.Runtime 4.0.20' does not exist in folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removing package 'System.Resources.ResourceManager 4.0.1-beta-23516' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removed package 'System.Resources.ResourceManager 4.0.1-beta-23516' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removing package 'System.Reflection.Primitives 4.0.0' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removed package 'System.Reflection.Primitives 4.0.0' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removing package 'System.Linq.Expressions 4.0.11-beta-23516' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removed package 'System.Linq.Expressions 4.0.11-beta-23516' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removing package 'System.Linq 4.0.1-beta-23516' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removed package 'System.Linq 4.0.1-beta-23516' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removing package 'System.IO 4.0.0' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removed package 'System.IO 4.0.0' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removing package 'System.Globalization 4.0.11-beta-23516' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removed package 'System.Globalization 4.0.11-beta-23516' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removing package 'System.Diagnostics.Debug 4.0.11-beta-23516' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removed package 'System.Diagnostics.Debug 4.0.11-beta-23516' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removing package 'System.ComponentModel 4.0.1-beta-23516' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Removed package 'System.ComponentModel 4.0.1-beta-23516' from folder 'W:\Workspaces\Dev\DINugetTest\packages'
Install-Package : Could not install package 'System.Runtime 4.0.20'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', 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.
At line:1 char:1
+ Install-Package microsoft.Extensions.DependencyInjection.Abstractions ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
PM>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment