0
我想安裝Nuget包使用Microsoft.AspNet.Identity.Core 2.2.1,但我得到以下錯誤信息。AddIdentity .NET核心
Package Microsoft.AspNet.Identity.Core 2.2.1 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Microsoft.AspNet.Identity.Core 2.2.1 supports: net45 (.NETFramework,Version=v4.5)
One or more packages are incompatible with .NETCoreApp,Version=v1.1.
Package restore failed. Rolling back package changes for 'xxxx'.
我在Visual Stuido 2017中創建了一個全新的項目,所以與我已安裝的任何其他項目無關。
它在錯誤消息中提到它:它只支持.NET 4.5,而不是.NET Core –
那麼我不明白嗎?我開始了.Net核心應用程序,現在我無法添加.net核心軟件包? – Skiltz
也許你打算安裝這個軟件包呢? 'https:// www.nuget.org/packages/Microsoft.AspNetCore.Identity' –