Search code examples
c#asp.netusing-directives

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?


Solution

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