c# - "Base class could not be loaded"- 没有明确的原因

标签 c# compiler-errors windows-forms-designer visual-studio-express

我正在使用 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/

相关文章:

c# - Azure Functions - 表存储绑定(bind)不起作用

c# - 两个程序员在 Visual C# 程序上工作

haskell - 无法完成 Haskell 教程

c# - Windows 窗体 | MenuStrip 子项 (ToolStripMenuItem) 更改光标不起作用

c# - Windows .NET Core的Windows窗体设计器和WPF设计器

c# - 命名参数规范必须在指定所有固定参数之后出现

python - 为安装编译 pyglpk 时出错(Ubuntu 14.04)

Scala 使用 () 应用 PartialFunction 与 .apply() 不同

c# - 限制向 ToolStrip 添加控件

c# - 非静态方法需要一个目标