How can Asp Net Core serve html static pages?
问题 I have recently started an Asp .Net Core app. Later I wanted to integrate it with Angular, but first I wanted a mechanism that will 'replace' cshtml with html . If I change extension from cshtml to html I get this 'InvalidOperationException: The view 'Index' was not found'. Also I tried in Startup app.UseStaticFiles(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); but it also didn't work. Optional is to integrating cshtml