Failed to install nuget pagckage Microsoft.AspNet.Identity.Core

I can not install nuget pagckage

Microsoft.AspNet.Identity.Core.

When I run install -package cmd, I get the following message. It says that I am trying to install a package in a project with .NET 4, but the package does not refer to this. Using VS2010.NET v4

Thanks in advance.

Below PM> Text:

PM> Installation package. Install Microsoft.AspNet.Identity.Core "Microsoft.AspNet.Identity.Core 2.1.0". You download Microsoft.AspNet.Identity.Core from Microsoft, the license agreement of which is available at http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm . Check the package for additional dependencies that may be in their own license agreement (s). Your use of the package depends on your consent to receive license agreements. If you do not accept the license agreement (s), then remove 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. Uninstall "Microsoft.AspNet.Identity.Core 2.1.0". Successfully deleted "Microsoft.AspNet.Identity.Core 2.1.0". Installation error. Rollback ... Install-Package: Failed to install the package "Microsoft.AspNet.Identity.Core 2.1.0". You are trying to install this package in a project whose purpose is ".NETFramework, Version = v4.0", but the package does not contain references to assemblies or content files that are compatible with this structure. For more information, contact the author of the package.

+5
source share
1 answer

Andrew is right, you cannot install Identity in a project that targets .Net 4 or lower

+6
source

Source: https://habr.com/ru/post/1200310/


All Articles