Search code examples
asp.net-mvcasp.net-identityvisual-studio-2017visual-studio-templates

Application not auto creating AccountController


I am creating an MVC project in VS2017 and in VS2015, when you create an MVC templated ASP.NET Web App, it will automatically build an account controller for you which adds register and log in functionality. It will add an AccountController.cs and ManageController.cs to controllers with the appropriate views.

But in VS2017, when I create an MVC project it doesn't add this to the project. I've tried importing the files from an old VS2015 project, but It didn't seem to work. How can I get around this? Is there a way to create a project with the account controller or did they remove that in VS2017?


Solution

  • You need to select some form of authentication when you create the app.

    enter image description here