Geoff Overfield Geoff Overfield - 17 days ago 6
ASP.NET (C#) Question

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;


Is there any way I can get rid of this in
Visual Studio 2015
?

Answer

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!

Comments