【发布时间】:2021-12-19 12:22:24
【问题描述】:
我想在我的 Blazor Webassembly 应用程序上使用 .Net 6 热重载功能,因此我安装了 VS2022 Preview。当我尝试运行我的应用程序时,我的文件加载导致 404 Not Found 错误。
【问题讨论】:
我想在我的 Blazor Webassembly 应用程序上使用 .Net 6 热重载功能,因此我安装了 VS2022 Preview。当我尝试运行我的应用程序时,我的文件加载导致 404 Not Found 错误。
【问题讨论】:
我也做了类似的回答here。确保已将 NuGet 包更新到最新版本,例如 Microsoft.AspNetCore.Components.WebAssembly 包。同样根据我的经验,.NET 6 热重载仅在没有调试器的情况下才有效,至少目前是这样。
【讨论】:
我在这里从 MS 安装了托管运行时
https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-aspnetcore-6.0.0-windows-hosting-bundle-installer
【讨论】: