且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Visual Studio中更改asp.net项目的输出目录

更新时间:2023-11-28 23:29:10

它与asp.net查找网站的dll文件的方式有关,该文件执行后位于bin文件夹中.

It has something to do with the way asp.net looks for the dll files of your website, which it exects to be in the bin folder.

您需要进行一些额外的配置:

You need to make some extra configurations:

在您的web.config中添加:

In your web.config add:

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

我是从较早的帖子中得到的: http://forums.asp.net/t/1303052.aspx .还要检查一下.

I got this from an older post: http://forums.asp.net/t/1303052.aspx. Check that out as well.