ASP.NET DLL 目录
我正在尝试将 IIS 配置为在 bin\Debug 目录(而不是 bin 目录)中查找 DLL。我尝试使用以下行更新我的 machine.config (以及 web.config):
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin\Debug" />
</assemblyBinding>
但是,它仍然看不到该目录。我还缺少其他东西吗?
I am trying to configure IIS to look for DLLs in the bin\Debug directory (as opposed to the bin directory). I tried updating my machine.config (as well as the web.config), with the following line:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin\Debug" />
</assemblyBinding>
However, it still doesn't see that directory. Is there something else I am missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也不确定你为什么要这样做,但我的猜测可能对你有帮助。您可以在 Visual Studio 中设置 dll 的输出文件夹。右键单击您的项目并选择属性,您将进入下面的屏幕。然后选择构建选项卡。
将输出路径从 bin\ 更改为 bin\Debug。或者,如果我正确地猜测了您的实际问题,并且您有项目输出到 bin\Debug 并且不知道如何更改它,您可以将其从 bin\Debug 更改回 bin\。
I'm not sure exactly why you're doing this either, but I have a guess that may help you. You can set the output folder for dlls within Visual Studio. You get to the screen below by right clicking on your project and selecting Properties. Then select the Build tab.
Change the output path from bin\ to bin\Debug. Or, if I'm guessing correctly at your real problem and you have projects outputting to bin\Debug and don't know how to change that, you can change it back from bin\Debug to just bin\.