我尝试使用 Visual Studio 2012 在 TFS 2012 上开发 SharePoint 2010 解决方案,我在我的机器上创建了项目并将其添加到 TFS。但是当我的一个团队获得最新版本并签入解决方案时,任何人都尝试获得最新版本并打开包得到以下错误(出现在巨大的消息框中):
微软视觉工作室
合成产生了一个单一的合成错误。下面提供了根本原因。查看 CompositionException.Errors 属性以获取更多详细信息。
1) 对象引用未设置为对象的实例。
导致:在类型“Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.PackageViewModel”上调用“OnImportsSatisfied”方法时发生异常。
导致:无法激活部件“Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.PackageViewModel”。
元素:Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.PackageViewModel --> Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.PackageViewModel --> AssemblyCatalog (Assembly="Microsoft.VisualStudio.SharePoint.Designers.Package, 版本=11.0.0.0,文化=中立,PublicKeyToken=b03f5f7f11d50a3a")
导致:无法从部件 'Microsoft.VisualStudio.SharePoint.Designers 导出'Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.PackageViewModel (ContractName="Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.IPackageViewModel")' .Package.ViewModels.PackageViewModel'。
元素:Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.PackageViewModel (ContractName="Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.IPackageViewModel") --> Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.PackageViewModel --> AssemblyCatalog (Assembly="Microsoft.VisualStudio.SharePoint.Designers.Package, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
导致:无法在部件 'Microsoft.VisualStudio.SharePoint 上设置导入'Microsoft.VisualStudio.SharePoint.Designers.Package.ViewProviders.PackageDesignViewProvider.ViewModel (ContractName="Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.IPackageViewModel")' .Designers.Package.ViewProviders.PackageDesignViewProvider'。
元素:Microsoft.VisualStudio.SharePoint.Designers.Package.ViewProviders.PackageDesignViewProvider.ViewModel (ContractName="Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.IPackageViewModel") --> Microsoft.VisualStudio.SharePoint.Designers.Package.ViewProviders .PackageDesignViewProvider --> AssemblyCatalog (Assembly="Microsoft.VisualStudio.SharePoint.Designers.Package, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
导致:无法从“Microsoft.VisualStudio.SharePoint.Designers”部分导出“Microsoft.VisualStudio.SharePoint.Designers.Package.ViewProviders.PackageDesignViewProvider (ContractName="Microsoft.VisualStudio.SharePoint.Designers.Package.ViewProviders.IViewProvider")” .Package.ViewProviders.PackageDesignViewProvider'。
元素:Microsoft.VisualStudio.SharePoint.Designers.Package.ViewProviders.PackageDesignViewProvider (ContractName="Microsoft.VisualStudio.SharePoint.Designers.Package.ViewProviders.IViewProvider") --> Microsoft.VisualStudio.SharePoint.Designers.Package.ViewProviders.PackageDesignViewProvider --> AssemblyCatalog (Assembly="Microsoft.VisualStudio.SharePoint.Designers.Package, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
导致:在类型 'Microsoft.VisualStudio.SharePoint.Designers.Package.Hosts.DslHost`1[[Microsoft.VisualStudio.SharePoint.Designers.Models.Packages.Package, Microsoft.VisualStudio] 上调用 'OnImportsSatisfied' 方法时发生异常.SharePoint.Designers.Models.Packages,版本=11.0.0.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a]]'。
导致:无法激活部件“Microsoft.VisualStudio.SharePoint.Designers.Package.Hosts.DslHost(Microsoft.VisualStudio.SharePoint.Designers.Models.Packages.Package)”。
元素:Microsoft.VisualStudio.SharePoint.Designers.Package.Hosts.DslHost(Microsoft.VisualStudio.SharePoint.Designers.Models.Packages.Package) --> Microsoft.VisualStudio.SharePoint.Designers.Package.Hosts.DslHost(Microsoft.VisualStudio .SharePoint.Designers.Models.Packages.Package)