我使用的是VS2010,如果我在设计器模式下打开窗体并运行我的应用程序,设计器选项卡将不再显示窗体设计器,而是显示一个错误(并且它是只有通过重新启动IDE固定)说:Visual Studio 2010设计器运行出错
"To prevent possible data loss before loading the designer, the following errors must be resolved:"
1 Error:
"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: ##### --- The base class ##### could not be loaded. Ensure the assembly has been referenced and that all projects have been built"
我然后显示了以下调用堆栈:
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)
任何帮助,非常感谢这实在是烦人。
谢谢,
乔尔。
嗨,感谢您的帮助,但我希望在每次发生这种情况时都不用重新启动IDE(这是很多次)。 – Joel 2011-02-20 18:57:29
我同意,但直到比尔盖茨修复错误,我想你(我)必须。 – 2011-02-21 06:53:25