簡體   English   中英

查找我需要更新命名 Blazor WebAssembly 的位置

[英]Finding where I need to update the naming Blazor WebAssembly

我重命名了我的項目,並將其更新為.Net 5。現在,自從我收到此錯誤以來,我顯然還沒有捕捉到所有的事件:

\source\repos\BlazorBattles\BlazorBattles\Server\obj\Debug\net5.0\Razor\Pages\Error.cshtml.g.cs(78,71): error CS0246: The type or namespace name 'blazor_battles' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\hagenek\source\repos\BlazorBattles\BlazorBattles\Server\BlazorBattles.Server.csproj]

但是,很難找到它,因為錯誤顯示的是項目正在生成的文件,而不是核心項目中的文件。

有小費嗎?

由於某種原因,Visual Studio 無法在 Server/Pages 目錄內的 Error.cshtml 文件中找到字符串“blazor_battles”。

在項目名稱中使用連字符會產生問題。 不要這樣做。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM