我在 Visual Studio 2008 (Visual Basic) 中有一个应用程序并安装了 Visual Studio Express 2012,当我尝试将 DataRepeater 添加到现有项目中的新表单时,它说已经存在,当我尝试添加 PrintForm 时也是如此。我不能以任何新的或预先存在的形式添加新的对象。
这是我收到的邮件内容:
---------------------------
Microsoft Visual Studio Express 2012 for Windows Desktop
---------------------------
Failed to create component 'DataRepeater'. The error message follows:
'System.Runtime.InteropServices.COMException (0x8004D745): A reference to the component 'Microsoft.VisualBasic.PowerPacks.Vs' already exists in the project.
at VSLangProj.References.Add(String bstrPath)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.PerformReferenceUpdate(List`1 newReferences)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.ReferenceAssembly(AssemblyName name)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.ReferenceAssembly(AssemblyName name)
at System.Drawing.Design.ToolboxItem.GetType(IDesignerHost host, AssemblyName assemblyName, String typeName, Boolean reference)
at System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost host)
at System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost host, IDictionary defaultValues)
at System.Drawing.Design.ToolboxItem.CreateComponents(IDesignerHost host, IDictionary defaultValues)
...'
---------------------------
OK
---------------------------
它说了一些关于参考更新的内容,我不是 vb.net 的经验丰富的开发人员,所以不知道我应该去哪里修复它以及如何修复它。