dotnet:app_config

アプリケーション構成ファイル

プライベートアセンブリ検索パスの追加

[App.config]

<configuration>
  <configSections />
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <!-- 実行ファイル配下の CommonLib フォルダ、および、Plugin フォルダを
           プライベートアセンブリ検索パスに追加 -->
      <probing privatePath="CommonLib;Plugins" />
    </assemblyBinding>
  </runtime>
</configuration>

configSections 要素よりも後に記述しないと構成ファイルのエラーが発生するので注意!!

参考文献:
アセンブリの場所の指定 - MSDN

  • dotnet/app_config.txt
  • 最終更新: 2019/05/18 02:23
  • by 非ログインユーザー