質問

私はUnit-2.5.5.10112を使用しています。それはNUnitの?

の古いバージョンに依存しているかどうかはどのように、またNBehaveを使用することができます

万一、私は無視NBehave?

役に立ちましたか?

解決

あなたはNBehave 0.4.5は、次の作業を実行して、NUnitの2.5.5.10112を使用して取得することができます:

まず、以下を含むNBehave-Console.exe.configを作成

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="nunit.framework"
                          culture="neutral"
                          publicKeyToken="96d09a1eb7f44a77" />
        <bindingRedirect oldVersion="2.5.2.9222" newVersion="2.5.5.10112" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

このはNBehave-CONSOLE.EXEはnunit.frameworkの2.5.2.9222を探すとき、それは代わりに2.5.5.10112を使用する必要があることをCLRローダーを伝えます。

第二には、古いバージョンを置き換え、C:\Program Files\NBehave\0.4.5.183ディレクトリにnunit.framework.dllバージョン2.5.5.10112を入れます。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top