有些时候,我们可能希望将ASP.NET网站要用到的程序集dll放在除了bin目录的别的地方。

但是如何配置才能做到这一点呢?

其实很简单,只需要在web.config中加上以下的配置就可以了:

<runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
       
            <probing privatePath="bin/Modules"/>

        </assemblyBinding>
    </runtime>

这样设置以后,bin/Modules下的程序集就可以被ASP.NET找到了。

相关文章:

  • 2022-12-23
  • 2021-11-09
  • 2021-09-18
  • 2021-07-09
  • 2021-06-13
  • 2021-10-29
  • 2022-12-23
猜你喜欢
  • 2021-09-27
  • 2022-12-23
  • 2021-12-08
  • 2022-01-25
  • 2021-07-25
  • 2022-01-02
相关资源
相似解决方案