How to run index.html file in Visual Studio 2015

I have an ASP.NET vNext project with a web start template. I have added a new html file and I want to run it. However, when I go to localhost: 1111 / index.html, I get 404 error. Is there a special configuration in the grunt file?

enter image description here

+4
source share
1 answer

The HTML file should be inside the wwwroot root folder. You can move the file manually inside the folder, and then edit it from the wwwroot folder. Alternatively, configure the Grunt task to copy it to the wwwroot folder using grunt-contrib-copy .

, , . - AspNet.

project.json -, ( )

"Microsoft.AspNet.StaticFiles": "1.0.0-beta3",

Startup.cs , ( )

app.UseStaticFiles();

...

, wwwroot , , project.json webroot

"webroot": "wwwroot",

"." webroot , , "wwwroot", . , , SASS TypeScript, , webroot, -.

+5

All Articles