我无法在Visual Studio 2012 RC中创建或打开单元测试项目

时间:2012-06-04 12:57:33

标签: unit-testing visual-studio-2012

在Visual Studio 2012 RC中打开或创建单元测试项目时,我一直遇到错误。我在哪里可以找到有关如何解决此问题的答案。我尝试过多次维修。我尝试过卸载并重新安装。我删除了产品附带的所有扩展(NuGet)。任何帮助修复这个bug或找到我可以获得帮助的地方都是受欢迎的。

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

2 个答案:

答案 0 :(得分: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

答案 1 :(得分:0)

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