Application not auto creating AccountController

MJohnston picture MJohnston · Apr 22, 2017 · Viewed 7.3k times · Source

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?

Answer

Maria Ines Parnisari picture Maria Ines Parnisari · Apr 23, 2017

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

enter image description here