摘要:
在asp.net core 项目中,使用html文件一般通过使用中间件来提供服务: 打开 NuGet程序管理控制台 输入install-package Microsoft.aspnetcore.staticfiles 进行添加 ASP.NET Core static files middleware 阅读全文
摘要:
创建asp.net core 空项目->MyWeb 修改Startup.cs启动文件添加Razor页面支持: 添加文件夹Pages并添加Razor页面 Index.cshtml和Index2.cshtml Index.cshtml Index2.cshtml 修改index2.cshtml.cs 运 阅读全文