我正在使用VS 2008使用C ++ CLI / CLR开发winforms应用程序。在我控制其中一个控件的名称后,我开始收到以下错误。即使我删除了控件并添加了新的,我仍然会得到同样的错误。
此错误的实例(1)
1. Hide Call Stack
at EnvDTE.CodeFunction.GetStartPoint(vsCMPart Part)
at Microsoft.VisualC.CppCodeParser.OnMethodPopulateStatements(Object sender, EventArgs e)
at System.CodeDom.CodeMemberMethod.get_Statements()
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
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)
答案 0 :(得分:1)
我在VS2008中遇到了同样的问题,我设法摆脱了它。我删除了所有VS2008生成的文件:
Solution\Project\app.aps
Solution\Project\Project.vcproj.mymachine.myuser.user
Solution\Solution.suo
Solution\Solution.ncb
嘿,所有问题都消失了。