<bindingRedirect />
完全な.NETFrameworkの外部でサポートされていますか?たとえば、次は通常の.NETアプリ(app.config
またはweb.config
)でサポートされています。
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="PostSharp" publicKeyToken="b13fd38b8f9c99d7" culture="neutral" />
<bindingRedirect oldVersion="3.0.0.0-3.1.1.1" newVersion="3.1.1.1"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
サポートされていない場合、間接アセンブリ参照の問題はどのように対処されますか?つまり、コンポーネントAがコンポーネントBとCを参照し、BがD v1.0、CからD v1.1を参照している場合、D v1.1のみを出荷する場合、Bが依存関係を確実に検出するにはどうすればよいでしょうか。