어제 이전 버전 인 Visual Studio 2012를 릴리스 후보가 나왔을 때까지 사용했습니다. 출시 후보를 설치 한 후 테스트 창 (테스트/Windows/테스트 탐색기)에 연결할 수 없습니다.VS 2012의 테스트 창으로 가져 오는 중 오류가 발생했습니다. RC
수동으로 여기에 복사 한 다음 오랜 오류가 발생합니다. (이것은 내 첫 번째 질문이기 때문에, 나는 그림을 게시 할 수 없습니다, 화면이 나 클립 보드에 텍스트를 복사 할 수 없습니다. 희망 오타가 없습니다.)
The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
1) Value cannot be null.
Parameter name: testPlatform
Resulting in: An exception occurred while trying to create an instance of type 'Microsoft.VisualStudio.TestWindow.Model.ReqeustConfigurationFactory'.
Resulting in: Cannot activate part
'Microsoft.VisualStudio.TestWindow.Model.ReqeustConfigurationFactory'.
Element: Microsoft.VisualStudio.TestWindow.Model.ReqeustConfigurationFactory -->
Microsoft.VisualStudio.TestWindow.Model.ReqeustConfigurationFactory --> CachedAssemblyCatalog
Resulting in: Cannot get export
Microsoft.VisualStudio.TestWindow.Model.ReqeustConfigurationFactory
(ContractName="Microsoft.VisualStudio.TestWindow.Model.RequestConfigurationFactory")' from part
'Microsoft.VisualStudio.TestWindow.Model.ReqeustConfigurationFactory'.
Element:
Microsoft.VisualStudio.TestWindow.Model.ReqeustConfigurationFactory
(ContractName="Microsoft.VisualStudio.TestWindow.Model.RequestConfigurationFactory") --> CachedAssemblyCatalog
은 오류에 관계없이 발생 내가 솔루션을 열 었는지 여부. 창을 여는 두 번째 시도 "도구 창을 만들 수 없습니다." Visual Studio를 다시 시작한 후 테스트 창으로 이동하면 긴 메시지가 다시 나타납니다. 내가 릴리스 후보에 비주얼 스튜디오를 업그레이드시
은, 내가 설치 한 :- NUnit과를
- SpecFlow
- ReSharper에서 (베타)
- 코드 계약 - 마지막 일은 내가했다 Visual Studio를 업그레이드하기 전에 설치해야합니다. 테스트 창을 설치 한 후에도 테스트 창이 작동하고 있다고 보장 할 수 없습니다.
웹에서 오류 문구의 핵심 구문을 검색했지만 도움이되지 않았습니다.
- 수리 비주얼 (필자는 확장 관리자에 점점 가지고 있던 문제를 해결 있지만 테스트 창 문제) 스튜디오
- 제거해야 Visual Studio를하고 그것을
- 을 다시 설치 :
는 또한이 위에 나열된 각 Extensions/packages (NUnit, SpecFlow, ReSharper, Code Contracts)를 제거했습니다. 제거가 도움이되지 않았으므로 한 번에 하나씩 을 모두 다시 설치했습니다. 또한 ReSharper 테스트 창에서 테스트를 실행할 수 있음을 확인했습니다.
- C : \ Users \\ Documents \ Visual Studio 11 \ Settings에서 currentsettings.vssettings 파일을 삭제했습니다. 문제가 포함되어 있고 올바르게 다시 작성되기를 기대합니다. "IDE가이 세션에 가장 최근의 설정을 사용합니다"라는 메시지가 나타납니다. 해당 위치를 찾을 수있는 곳을 모르겠습니다 ...
- 설정 가져 오기 및 내보내기 옵션에서 설정을 원래대로 설정합니다.
이 작업 중 도움이되지 않았습니다.
그것은 어딘가에 testPlatform에 대한 요소가 누락 설정 파일처럼 나에게 보이는,하지만 난 더 그 것이다 생각이 없다 (또는 어떤 형식으로, 또는 어떤 옵션 페이지 항목을 설정할 것입니다.)
모든 도움은 대단히 감사하겠습니다.
USERDIR \ AppData \ Local \ Microsoft \ VisualStudio \ 11.0 \ ComponentModelCache \ Microsoft.VisualStudio.Default.cache를 삭제하고 VS를 다시 시작하면 같은 오류가 발생했습니다. – GertGregers
ComponentModelCache 디렉터리를 삭제하고 Visual Studio를 다시 시작하면 Visual Studio Premium 2013에서도 같은 문제가 해결되었습니다. –