2017-12-14 2 views
7

Visual Studio 2017を15.5にアップデートした後、私は単体テストをデバッグすることができなくなりました(私はテストをうまく実行でき、非テストプログラムもデバッグできます)。BadImageException: 'ファイルまたはアセンブリ' Microsoft.VisualStudio.QualityTools.VideoRecorderEngine 'またはその依存関係の1つを読み込めませんでした。

私は次の例外を得続ける:

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. 

私は各プロジェクトが一貫(7+ワット/マイナーバージョン)同じコンパイラ設定を使用して、すべての.NET 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)

への私のVisual Studio 2017を更新しました(またはステップの組み合わせ)。たくさんの試みをしました。

そして、それはうまくいった。

希望すると、これが役立ちます。

+0

ありがとうございました!私のテストプロジェクトのapp.configは、EFのものだけでかなり素朴でした。 %temp%フォルダを削除しても、例外は解決されませんでした。私は他のところでこの問題について言及していますので、あなたの提案は誰かに役立つことを願っています。 –

+0

悲しいことに聞いてください。パッケージフォルダも削除しました。それを試してください。答えを更新しました。また、すべてのソリューションをきれいにして再構築してください。 –

+1

私は15.5.2にあります。残念なことに、パッケージフォルダを削除しても役に立たなかった。ありがとう、結構です;私は提案を感謝します。 –

関連する問題