我无法安装 nuget 包裹
Microsoft.AspNet.Identity.Core。
当我运行 install -package cmd 时,我收到以下消息。它指出我正在尝试将包安装到带有 .NET 4 的项目中,但包 0 并未引用该包。使用 VS2010 .NET v4
先感谢您。
下面是PM>文本:
PM> Install-Package Microsoft.AspNet.Identity.Core Installing 'Microsoft.AspNet.Identity.Core 2.1.0'. You are downloading Microsoft.AspNet.Identity.Core from Microsoft, the license agreement to which is available at http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. Successfully installed 'Microsoft.AspNet.Identity.Core 2.1.0'. Adding 'Microsoft.AspNet.Identity.Core 2.1.0' to PracticeMvcApplication. Uninstalling 'Microsoft.AspNet.Identity.Core 2.1.0'. Successfully uninstalled 'Microsoft.AspNet.Identity.Core 2.1.0'. Install failed. Rolling back... Install-Package : Could not install package 'Microsoft.AspNet.Identity.Core 2.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', 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.
最佳答案
Andrew 是对的,您不能在面向 .Net 4 或更低版本的项目上安装 Identity
关于asp.net-mvc - 无法安装 nuget pagckage Microsoft.AspNet.Identity.Core,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25305706/