単体テストでローカルにエラーが発生している間:
Mixed mode assembly is built against version 'v2.0.50727' of
the runtime and cannot be loaded in the 4.0 runtime without
additional configuration information
そして解決策は追加することです
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>
にある構成ファイルに
c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
\CommonExtensions\Microsoft\TestWindow\vstest.executionengine.x86.exe.config
これは、TFS2012 ビルド サーバーではまだうまくいきません。TFS2012 のファイルにスタートアップ タグも追加しましたが、ビルド サーバーからエラーが報告されます。
ビルド定義の単体テスト プロジェクト (VS2012 および TFS2012 の新しい単体テスト フレームワークを使用) でこれを機能させるにはどうすればよいですか?