放到启动的应用程序的最后面
app.Run(async (context) => { context.Response.ContentType = "text/html"; await context.Response.SendFileAsync(Path.Combine(env.WebRootPath, "index.html")); });
https://blog.csdn.net/lee576/article/details/88355877
京公网安备 11010502049817号