Today in ASP.NET forums someone asked a question like a minimal MVC 6 application, where the controller method returns a simple string. For an ASP.NET 5 project, you require minimum two files, project.json, references required for the project and startup.cs, entry point and services configuration. Since it is MVC6 application you require one controller as well.
Here is the project.json file.
Here is the startup.cs file, which is the entry point to the application.
And finally the controller class.
You can execute the dnu restore first, then execute the dnx web command.
What do you think? I would like to hear your thoughts, suggestions, and questions in the comments section below.
Did you like this article? Share it with your friends