5

別の構成ファイルを定義しようとしています (redirect.config としましょう)。この個別の構成ファイルには、次のような assemblyBindings が含まれています。

<?xml version="1.0" encoding="utf-8" ?>
<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="NServiceBus.Core" publicKeyToken="9fc386479f8a226c" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="4.5.0.0" />
    </dependentAssembly>
  </assemblyBinding>
</runtime>

app.config で、この redirect.config を参照したい:

<runtime configSource="Redirects.config" />

残念ながら、まったく機能していません。出力ディレクトリへのコピーは「常にコピー」に設定されています。何か案は?前もって感謝します

4

1 に答える 1