摘要: 在asp.net core 项目中,使用html文件一般通过使用中间件来提供服务: 打开 NuGet程序管理控制台 输入install-package Microsoft.aspnetcore.staticfiles 进行添加 ASP.NET Core static files middleware 阅读全文
posted @ 2018-02-23 12:16 小笨0104 阅读(1352) 评论(1) 推荐(0) 编辑
摘要: 创建asp.net core 空项目->MyWeb 修改Startup.cs启动文件添加Razor页面支持: 添加文件夹Pages并添加Razor页面 Index.cshtml和Index2.cshtml Index.cshtml Index2.cshtml 修改index2.cshtml.cs 运 阅读全文
posted @ 2018-02-23 10:28 小笨0104 阅读(402) 评论(0) 推荐(0) 编辑