nunit2 タスクを使用してテストを実行しようとすると、このエラーが発生します
テストの実行に失敗しました。アセンブリが NUnit バージョン 2.6.0.12051 を使用してビルドされていない場合は、アセンブリ バインディングがリダイレクトされていることを確認してください。
テスト プロジェクトの nunit バージョンは 2.6.2.12296 です。
テスト プロジェクトの構成ファイルでいくつかのリダイレクト バインディングをテストしましたが、うまくいきませんでした。nunit2 タスクを使用する代わりに nunit.exe を直接実行できることはわかってEXEC
いますが、これを機能させたいと思います。
アップデート
これは、テスト プロジェクトの現在の app.config です。
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="nunit.framework" publicKeyToken="96d0234a77" culture="Neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.6.0.12051" newVersion="2.6.2.12296" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
更新 2
これはビルドファイルの関連部分です
<nunit2>
<test
assemblyname="D:\[the full path]\UnitTests.dll"
appconfig="D:\customTest.config"/>
<formatter type="Plain"/>
</nunit2>