GAC中的DLL相对引用了一个文件...我应该把它放在哪里?
我有一个第三方 dll,需要安装到 GAC。该 dll 需要访问一个 ini 文件,根据文档,该文件需要与 dll 位于同一位置。如果我将 dll 安装到 GAC 中,我应该将 ini 文件复制到什么位置才能让 dll 找到 ini 文件?
I have a third party dll that I need to install to the GAC. The dll needs access to a ini file that according to the documentation needs to be in the same location as the dll. If I install the dll into the GAC, what location should I copy the ini file to in order for the dll to find the ini file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,您可以捂住鼻子,导航到 GAC 中并排程序集结构中文件所在的目录并将其放在那里。它将是类似“C:\windows\ assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089”的路径。执行“开始菜单 -> 运行 -> c:\windows\ assembly\GAC_MSIL” - 这足以让您通过目录结构的 Windows 视图。或者,您可以直接在命令 shell 中导航到它。
Well you can hold your nose, and navigate to the directory within the side-by-side assembly structure in the GAC in which the file is located and put it there. It will be a path something like "C:\windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089". Do "Start menu -> run -> c:\windows\assembly\GAC_MSIL" - this is enough to get you past the windows view on the directory structure. Or, you can navigate to it directly in the command shell.