我正在使用 Visual C# 2008 Express。这是多年来我第一次遇到这个错误,上一次遇到这个错误是在我开始编程的时候。
我不知道它到底是什么意思,也不知道为什么突然出现,错误消息的内容似乎很含糊。我所知道的是,在我的整个应用程序中,我从我想出的 ThemedWindow 类继承了很多主窗口,为它们提供自定义外观,该代码没有错误,20 分钟前一切都 100% 完美。
完整的错误:
Warning 12 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:
InheritingWindow --- The base class 'ThemedWindow' could not be loaded. Ensure the assembly has been referenced and that all projects have been built. 0 0
对于从 ThemedWindow 继承的每个表单,我都得到了这个错误,还有一些其他错误,因为该项目构建得不够远,其他一切都无法正常工作。
就在这发生之前,我更新了所有表单和子控件上的字体,甚至在我这样做之后构建并运行了项目,然后发生这种情况完全没有明确的原因。
我已经尝试过经典的重建它、删除构建文件、重新打开 Visual Studio 等,但目前似乎没有任何效果。
有人知道如何解决这个问题吗?
最佳答案
关于c# - "Base class could not be loaded"- 没有明确的原因,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13184674/