小编use*_*719的帖子

"无法加载基类" - 没有明确的理由

我正在使用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
Run Code Online (Sandbox Code Playgroud)

我为每一个继承自ThemedWindow的表单和其他几个错误都得到了这个错误,因为项目不会构建得足以让其他一切工作.

就在此之前,我更新了所有表格和子控件上的字体,项目甚至在我做完之后构建并运行,然后发生这种情况绝对没有明确的原因.

我已经尝试过经典重建它,删除构建文件,重新打开Visual Studio等,但目前似乎没有任何工作.

有谁知道如何解决这一问题?

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

1
推荐指数
2
解决办法
6925
查看次数