VisualStudio2019下一個2.2另一個3.0頁面修改如下,但是3.0重繪沒有任何變化,難道VS以后不能做前端開發了?大家可能沒有看官方檔案

根據文章所說你需要:
1.安裝 Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation NuGet 包,
Install-Package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation -Version 3.0.0
2.將專案的 Startup.ConfigureServices 方法更新為包含對 AddRazorRuntimeCompilation 的呼叫:
services
.AddControllersWithViews()
.AddRazorRuntimeCompilation();

你添加那個了razor中間件 修改后即可實作自動編譯,很簡單吧,有幫助記得點下推薦,謝謝,
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/98033.html
標籤:.NET Core
