Winforms VS2012 Winform设计器错误

Winforms VS2012 Winform设计器错误,winforms,visual-studio-2010,visual-studio,visual-studio-2012,Winforms,Visual Studio 2010,Visual Studio,Visual Studio 2012,我不断收到错误“集合已修改;枚举操作可能无法执行” 处于winform的设计模式时。项目运行良好,只是设计时间有问题 在X次打开和关闭项目后(目前为止,在1到10+之间),这会消失,但总是在随机时间返回(即使项目或其任何依赖项没有更改) System.ThrowHelper.ThrowInvalidOperationException(异常资源) 在System.Collections.Generic.List1.Enumerator.MoveNextRare()中 位于System.Colle

我不断收到错误“集合已修改;枚举操作可能无法执行”

处于winform的设计模式时。项目运行良好,只是设计时间有问题

在X次打开和关闭项目后(目前为止,在1到10+之间),这会消失,但总是在随机时间返回(即使项目或其任何依赖项没有更改)

System.ThrowHelper.ThrowInvalidOperationException(异常资源) 在System.Collections.Generic.List
1.Enumerator.MoveNextRare()中
位于System.Collections.Generic.List
1.Enumerator.MoveNext() 在Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblySpecFound(列出
1个程序集,字符串assemblyFullName)
位于Microsoft.VisualStudio.Design.VSTypeResolutionService.AddDependencies(程序集a,字符串文件名)
在Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly()上
在Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblySpecFound(列出
1个程序集,字符串assemblyFullName) 在Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project)上 在Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly()上 位于Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(字符串全名、字符串类型名、布尔ignoreTypeCase、布尔allowPrivate、程序集和程序集、字符串描述) 在Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(字符串全名、字符串类型名、布尔型ignoreTypeCase、程序集和程序集、字符串描述)中 在Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName AssemblyName、String typeName、Boolean ignoreTypeCase、Assembly和Assembly) 在Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName AssemblyName、String typeName、Boolean ignoreCase、Assembly&Assembly、ReferenceType refType) 在Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName AssemblyName、String typeName、Boolean ignoreTypeCase、Assembly和Assembly) 在Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITTypeResolutionService.GetAssembly(AssemblyName,布尔错误) 位于Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITTypeResolutionService.GetAssembly(AssemblyName名称) 位于Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(对象发送方,ResolveEventArgs e) 位于System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly程序集,字符串assemblyFullName) 在System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly程序集、字符串名称、布尔throwOnError、布尔ignoreCase、ObjectHandleOnStack类型) 在System.Reflection.RuntimeAssembly.GetType(字符串名称、布尔throwOnError、布尔ignoreCase) 位于Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(字符串全名、字符串类型名、布尔ignoreTypeCase、布尔allowPrivate、程序集和程序集、字符串描述) 在Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(字符串全名、字符串类型名、布尔型ignoreTypeCase、程序集和程序集、字符串描述)中 在Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName AssemblyName、String typeName、Boolean ignoreTypeCase、Assembly和Assembly) 在Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName AssemblyName、String typeName、Boolean ignoreCase、Assembly&Assembly、ReferenceType refType) 在Microsoft.VisualStudio.Design.VSTypeResolutionService.GetType(字符串typeName、布尔throwOnError、布尔ignoreCase、引用类型refType) 位于Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTyperSolutionService.GetType(字符串名称、布尔throwOnError、布尔ignoreCase) 位于Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTyperSolutionService.GetType(字符串名称) 位于System.ComponentModel.Design.Serialization.DesignerSerializationManager.GetRuntimeType(字符串类型名称) 位于System.ComponentModel.Design.Serialization.DesignerSerializationManager.GetType(字符串typeName) 位于System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.GetType(字符串typeName) 位于System.ComponentModel.Design.Serialization.CodeDomainSerializerBase.GetType(IDesignerSerializationManager管理器,字符串名称,字典
2个名称)
位于System.ComponentModel.Design.Serialization.CodeDomainSerializerBase.FillStatementTable(IDesignerSerializationManager管理器,IDictionary表,字典
2名称,CodeStatementCollection语句,字符串类名称) 在System.ComponentModel.Design.Serialization.TypeCodeDomainSerializer.Deserialize(IDesignerSerializationManager,CodeTypeDeclaration)中 位于System.ComponentModel.Design.Serialization.CodeDomainDesignerLoader.PerformLoad(IDesignerSerializationManager) 位于Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager序列化管理器) 在Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32-fReload)


我认为这是一个修复了的错误:

Windows窗体

  • 您可能会在Windows窗体设计器中收到以下错误消息:

  • 收集被修改;枚举操作不能执行


转到获取更新。

谢谢,我以为我有最新的补丁。