积极答复者
asp.net 中怎么更改bin目录?或者增加其他目录?

问题
-
我想把一个dll文件放在bin\test\目录下 可以无法找到这个dll
请问如何增加 一个这样的目录?
- 已移动 Sheng Jiang 蒋晟Moderator 2010年8月15日 17:57 (发件人:Visual C#)
答案
-
不需要那么烦吧 不是在启动的时候旁边有个下拉嘛 默认是DEBUG 下面还有二个选择其他的就在你要的地方添加了文件夹和启动项
- 已标记为答案 BoberSongModerator 2010年8月17日 6:59
全部回复
-
你可以使用 probing 具体参考 http://msdn.microsoft.com/en-us/library/15hyw9x3(VS.71).aspx
大概在 web.config 增加如下配置
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin\test"/>
</assemblyBinding>
</runtime>
</configuration>
问题要简单,错误须详细@错误/异常/堆栈信息+操作系统+软件版本+all the context of the issue Hope Helpful | http://www.leoworks.net -
不需要那么烦吧 不是在启动的时候旁边有个下拉嘛 默认是DEBUG 下面还有二个选择其他的就在你要的地方添加了文件夹和启动项
- 已标记为答案 BoberSongModerator 2010年8月17日 6:59