Regasm /codebase 失败,提示设置 copylocal=true 时找不到指定的文件
我正在尝试使用 regasm /codebase 注册程序集。一切正常,但我的项目要求迫使我将引用的 dll 的 copylocal 属性设置为 false。完成此操作后,regasm 失败,表示找不到依赖的 dll 文件。当 copylocal 设置为 false 时,一切正常。可能出了什么问题,我该如何修复它?该 dll 始终驻留在共享文件夹中。
I am trying to register an assembly using regasm /codebase.Everything works fine but my project requirements forces me to put the copylocal property of a referenced dll to false.When this is done regasm fails saying it cannot find the dependent dll file. everything works fine when copylocal is set to false.What could be wrong how can i fix it ? The dll always resides on a shared folder.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜测它需要的 DLL 位于它不知道的路径中。如果没有看到您的确切设置和命令行代码,我无法准确地说,但我建议尝试将 DLL 路径设置为绝对路径作为测试,看看是否找到该文件。
I'm guessing the DLL it requires is in a path that it does not know about. Without seeing your exact setup and command line code, I can't say exactly, but I would suggest trying to set your DLL path to something absolute as a test to see if the file is then found.