Open the nuget package manager by going to:
Tools > Nuget Package Manager > Package Manager Console
in the new project [1] . From there you can enter next to PM>
Install-Package Microsoft.AspNet.Identity.Samples -Pre
which will set up an Identity sample for you. He will ask you if you allow to change your webconfig by pressing "A", you accept all the changes.
From this moment, a sample identification project will be installed!
Note. It will change the default namespace, therefore, by going to βfind and replaceβ, you can quickly change the appearance to your project name (note that you may need to go to the global.aspx page in the folder of my documents - open it in notepad and change the namespace there!)
[1] : If you do not do this at the beginning of your development, you will find that the following files will be overwritten (so make sure you have a way to combine the originals with the new one):
Overwrite existing file 'Views\Web.config'. Overwrite existing file 'Views\Shared\Error.cshtml'. Overwrite existing file 'Views\Shared\_Layout.cshtml'. Overwrite existing file 'Views\Home\Index.cshtml'. Overwrite existing file 'Views\_ViewStart.cshtml'. Overwrite existing file 'Global.asax.cs'. Overwrite existing file 'Global.asax'. Overwrite existing file 'Controllers\HomeController.cs'. Overwrite existing file 'Content\Site.css'. Overwrite existing file 'App_Start\RouteConfig.cs'. Overwrite existing file 'App_Start\FilterConfig.cs'. Overwrite existing file 'App_Start\BundleConfig.cs'.
jbutler483 Mar 23 '15 at 14:07 2015-03-23 ββ14:07
source share