Visual Studio C#不允许我使用Microsoft.AspNet.Identity命名空间 [英] Visual Studio C# does not allow me to use Microsoft.AspNet.Identity namespace
问题描述
为什么我的应用程序不允许我使用以下名称空间:
Why is my application not letting me use the following namespace:
using Microsoft.AspNet.Identity;
有什么方法可以在Visual Studio 2015
中消除它吗?
Is there any way I can get rid of this in Visual Studio 2015
?
推荐答案
我没有安装NuGet软件包.为此,在Visual Studio中,我转到了Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution
并安装了Microsoft.AspNet.Identity.Core
包.
I didn't have the NuGet Package installed. For this, (In Visual Studio) I went to Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution
and installed the Microsoft.AspNet.Identity.Core
package.
对于像我一样第一次使用新程序包和名称空间的任何人,请不要失望.它并没有看起来那么复杂!
For anyone using new packages and namespaces for the first time, like I was, don't despair. It's not as complicated as it seems!
这篇关于Visual Studio C#不允许我使用Microsoft.AspNet.Identity命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!