c# - 如何重命名 Blazor WASM 项目?
问题描述
我重命名了 sln、csproj 和命名空间,但出现了这三个我在重命名之前没有的错误。
/App.razor(66,66): Error CS0246: The type or namespace name 'MainLayout' could not be found (are you missing a using directive or an assembly reference?) (CS0246)
/obj/Debug/net5.0/Razor/App.razor.g.cs(155,155): Error CS1662: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type (CS1662)
/App.razor(37,37): Error CS0246: The type or namespace name 'MainLayout' could not be found (are you missing a using directive or an assembly reference?) (CS0246)
解决方案
推荐阅读
- reactjs - 如何在 React 中获取传递的 props 值
- html - 角反应形式显示
- swiftui - SwiftUI 鼠标 ScrollWheel 事件
- angular - Angular Form Control 返回默认值而不是值
- javascript - 当主线程与其他操作排队时,React 不会在状态更改后重新渲染组件?
- c++ - 为什么不能将作为常量引用传递给函数的数组的 .size() 用作模板参数?
- node.js - 在 nextjs 自定义服务器上保存上传的文件
- python - 熊猫与子集的滚动相关性
- javascript - 使用 Javascript 按下按钮时更改 html 中的多个文本
- asp.net-core - 获取“ InvalidOperationException:验证服务描述符'ServiceType:MediatR.IRequestHandler`2时出错”