How can I get asp.net core to serve an index.html file from inside my wwwroot?
The reason I want to do this is because I an developing an angular 4 app using the ang
You are mixing both MVC and Default files serving (useDefaultFiles). Comment out the below lines from your code
app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}"); });
and use only app.UseDefaultFiles();. It will start working.
app.UseDefaultFiles();