我最近(从to )更改了两个文件(GuiMenu.cs
和)中的名称空间,但直到现在我才收到这样的警告:GuiMenu.Designer.cs
MyProject.GuiMenu
GUI
Warning 1 The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file:
PropetiesWindow --- The base class 'MyProject.GuiMenu' could not be loaded.
Ensure the assembly has been referenced and that all projects have been built.
Line 0 Column 0
看起来视觉工作室不喜欢这个命名空间,并试图使用旧的。怎么了 ?顺便说一句,最近我有这样的警告:找不到课程MyProject.GuiMenu.MyClass
。但是这个类存在于 中GUI.MyClass
,幸运的是这个警告已经消失了。PS:我试图从对象中删除 bin 和 obj 文件夹,没有帮助。