ASP.Net MVC5 as a defalt setting



  • I set up a VS15, created an empty MVC5. And there's literally nothing there. Created the Controllers folder, threw HomeController into it, then created a folder structure (all by agreement as MVC4) and put a counter-residential in it, but when the project starts, it's always gonna take out Hello World. Found the Sturtup.cs file, and the lines were written.

    public void Configure(IApplicationBuilder app)
    {
        app.UseIISPlatformHandler();
    
    app.Run(async (context) =>
    {
        await context.Response.WriteAsync("Hello World!");
    });
    

    }

    Is that how I'm gonna drop the defalts? To launch the counteraller Home index?



  • An example of your code is ASP.NET 5 MVC 6. Where to begin read in Russian documentation http://dotnet.today/ru/aspnet5-vnext/tutorials/your-first-aspnet-application.html and http://dotnet.today/ru/aspnet5-mvc6/getting-started/first-mvc-app/start-mvc.html




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2