Visual Studio C#不允许我使用Microsoft.AspNet.Identity命名空间 [英] Visual Studio C# does not allow me to use Microsoft.AspNet.Identity namespace

查看:271
本文介绍了Visual Studio C#不允许我使用Microsoft.AspNet.Identity命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我的应用程序不允许我使用以下名称空间:

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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆