The designer could not be shown for this file because none of the classes within it can be designed.

Visual Studio报错:The designer could not be shown for this file because none of the classes within it can be designed.

导致界面设计器无法打开。

出现问题之前,刚添加了一个新的窗体。

查询了一段时间,无果。

不过一个stackoverflow上的问答给出了提示。

解决办法:把刚添加的窗体删掉,然后对项目右击->rebuild,问题解决。

参考:https://stackoverflow.com/questions/7765538/how-to-resolve-vs2010-windows-form-designer-issue-base-class-could-not-be-loade

 

你可能感兴趣的:(Windows桌面开发)