GAC中的DLL相对引用了一个文件...我应该把它放在哪里?

发布于 2024-08-03 00:09:35 字数 127 浏览 1 评论 0原文

我有一个第三方 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

以酷 2024-08-10 00:09:35

好吧,您可以捂住鼻子,导航到 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文