5

在 Visual Studio 2012 RC 中打开或创建单元测试项目时,我总是遇到错误。我在哪里可以找到有关如何解决此问题的答案。我尝试了多次修复安装。我已经尝试卸载并重新安装。除了少数随产品 (NuGet) 附带的扩展外,我已经删除了所有扩展。欢迎任何帮助修复此错误或找出我可以在哪里获得帮助。

The 'Microsoft.VisualStudio.TestTools.Tips.TuipPackage.TuipPackage, Microsoft.VisualStudio.QualityTools.Tips.TuipPackage, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' package did not load correctly.

The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\Me\AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.xml'.

我相信这是该文件中的相关部分:

Entering function CVsPackageInfo::HrInstantiatePackage {52CBD135-1F97-2580-011F-C7CD052E44DE}

Begin package loadBegin package load {52CBD135-1F97-2580-011F-C7CD052E44DE}

ERROR SetSite failed for packageSetSite failed for package {52CBD135-1F97-2580-011F-C7CD052E44DE} 80070057 - E_INVALIDARG

ERROR End package loadEnd package load {52CBD135-1F97-2580-011F-C7CD052E44DE} 80070057 - E_INVALIDARG

Entering function CVsPackageInfo::HrInstantiatePackage {52CBD135-1F97-2580-011F-C7CD052E44DE}

Begin package loadBegin package load {52CBD135-1F97-2580-011F-C7CD052E44DE}

ERROR SetSite failed for packageSetSite failed for package {52CBD135-1F97-2580-011F-C7CD052E44DE} 80070057 - E_INVALIDARG

ERROR End package loadEnd package load {52CBD135-1F97-2580-011F-C7CD052E44DE} 80070057 - E_INVALIDARG
4

2 回答 2

1

我停止收到错误消息的方法是删除 .sln 文件中与此类似的以下部分:

ProjectSection(SolutionItems) = preProject
    SomeName.vsmdi = SomeName.vsmdi
    Local.testsettings = Local.testsettings
    TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings
EndProjectSection

和这个:

GlobalSection(TestCaseManagementSettings) = postSolution
    CategoryFile = SomeName.vsmdi
EndGlobalSection
于 2012-08-29T16:17:18.707 回答
0

遇到同样的问题,我从 2010 年到 2012 年删除了有关 Visual Studio 的所有内容,重新启动并重新安装了 2012 RC,并检查了所有选择。它现在有效。

于 2012-06-05T18:23:58.453 回答