2017-12-14 4 views
7

Visual Studio 2017을 15.5로 업데이트 한 후 더 이상 단위 테스트를 디버깅 할 수 없습니다. 테스트를 제대로 실행할 수 있으며 비 테스트 프로그램을 디버깅 할 수 있습니다. 제가 확인했습니다BadImageException : '파일 또는 어셈블리'Microsoft.VisualStudio.QualityTools.VideoRecorderEngine '또는 해당 종속성 중 하나를로드 할 수 없습니다.'

Exception thrown: 'System.BadImageFormatException' in mscorlib.dll 
Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.VideoRecorderEngine' or one of its dependencies. The module was expected to contain an assembly manifest. 

Exception thrown: 'System.BadImageFormatException' in mscorlib.dll 
Could not load file or assembly 'VSTestVideoRecorder' or one of its dependencies. An attempt was made to load a program with an incorrect format. 

Exception thrown: 'System.BadImageFormatException' in mscorlib.dll 
Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.VideoRecorderEngine' or one of its dependencies. The module was expected to contain an assembly manifest. 

Exception thrown: 'System.BadImageFormatException' in mscorlib.dll 
Could not load file or assembly 'VSTestVideoRecorder' or one of its dependencies. An attempt was made to load a program with an incorrect format. 

Exception thrown: 'System.ArgumentException' in System.dll 
FrameworkName cannot have less than two components or more than three components. 

각 프로젝트가 지속적으로 (/ 부 버전 w 7+) 같은 컴파일러 설정을 사용하고, 모든 닷넷 4.7를 대상으로하는 :

나는 다음과 같은 예외를 점점 계속. VS를 15.5로 업데이트하는 것을 제외하고는 문제가되는 일부 파일의 코드가 전혀 변경되지 않았습니다.

나는 이러한 예외 사항이나 해결 방법에 관해 도움이되는 어떤 것도 발견하지 못했습니다. VS 업데이트로 인한 것 같습니다.

아이디어가 있으십니까? VS를 유일한 솔루션으로 재설치하고 있습니까?

+0

관련 버그 입력이 '고정 - 보류 중 릴리스'입니다. https://developercommunity.visualstudio.com/content/problem/168116/badimageformatexml-microstvisualstudioquality.html – notso

답변

0

같은 문제가 발생했습니다.

해결책을 찾기 위해 검색을 시작하고 문제를 해결 한 후에 문제가 해결되었습니다. 내가 무슨 짓을했다 :

  • 내 모든 % temp % 폴더를 삭제 (insane hum?) 댓글
  • 내 모든 bindingRedirect 및 테스트 솔루션의 app.config가 (내가 필요)
  • 내 패키지의 내용을 삭제 폴더
  • 는 마녀 단계는 그것이 작동되도록 몰라 최신 버전 (15.5.2)

내 비주얼 스튜디오 2017 업데이트 (또는 단계의 조합). 많은 시도를했습니다.

그리고 보일이 효과가있었습니다.

희망이 도움이됩니다.

+0

제안 해 주셔서 감사합니다. 내 테스트 프로젝트의 app.config는 EF만으로도 매우 가볍다. % temp % 폴더를 삭제해도 예외가 해결되지 않았습니다. 다른 곳에서이 문제에 대해 언급 한 사실을 알았 기 때문에 귀하의 제안이 도움이되기를 바랍니다. –

+0

슬픈 이야기. 내 패키지 폴더도 삭제했습니다. 시도해 봐. 답변을 업데이트했습니다. 또한 모든 솔루션을 정리하고 다시 빌드하십시오. –

+1

나는 15.5.2에 있는데, 패키지 폴더를 삭제해도 불행히도 도움이되지 못했다. 그래도 감사합니다; 제안에 감사드립니다. –