现在所有继承一个自定义基类窗口的界面都会出现这个错,也确定是基类的问题,但打开基类没有任何问题,所以搞不清楚这个基类有什么问题. 全部的错误信息提示: 加载设计器时遇到一个或多个错误。这些错误在下面列出。一些错误可通过重新生成项目来修复,而另一些错误则需要更改代码。 路径的形式不合法。 隐藏 在 System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) 在 System.IO.Path.GetFullPathInternal(String path) 在 System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile) 在 Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project project) 在 Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly() 在 Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, String description) 在 Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly) 在 Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly) 在 Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError) 在 Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name) 在 Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e) 在 System.AppDomain.OnAssemblyResolveEvent(String assemblyFullName)  解决方法: 在public 基类名() {           InitializeComponent();//此处回车 }网上都是说,找开文件,回车一下,再选择“查看设计器”,难道就没有根本的解决办法吗???