来自 GAC 的程序集未在 Monodevelop 的“编辑引用”对话框中列出

发布于 2024-09-28 14:29:57 字数 434 浏览 0 评论 0原文

我正在尝试将一个小型控制台应用程序从 Windows/.NET 移植到 Ubuntu/Mono。我在添加对 NLog 单声道版本的引用时遇到问题,我已将其添加到 GAC 中。

已确认将 NLog.dll 添加到程序集中:已将 NLog.dll 安装到 gac (/usr/lib/mono/gac)

我还在 GAC 下找到它:/usr/lib/mono/gac/NLog/2.0.0.0 __5120e14c03d0593c

首先我认为这是由于我的 umask 027 造成的。但我将文件更改为 644,将目录更改为 755。问题仍然存在。

我正在使用:Ubuntu 10.04、Monodevelop 2.2.1、Mono 版本 2.4.4 (Debian 2.4.4~svn151842-1ubuntu4)、Nlog NLog2.mono2-Beta1

你有什么想法吗?

I am trying to port a small console application from Windows/.NET to Ubuntu/Mono. I have problems to add a reference to the mono version of NLog, which I added to the GAC.

Adding NLog.dll to the assembly was confirmed: Installed NLog.dll into the gac (/usr/lib/mono/gac)

I also find it in the GAC under: /usr/lib/mono/gac/NLog/2.0.0.0__5120e14c03d0593c

First I thought that it was due to my umask 027. But I changed files to 644 and directories to 755. The problem persists.

I am working with: Ubuntu 10.04, Monodevelop 2.2.1, Mono version 2.4.4 (Debian 2.4.4~svn151842-1ubuntu4), Nlog NLog2.mono2-Beta1

Do you have any idea?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

离旧人 2024-10-05 14:29:57

“编辑引用”对话框不显示在 GAC 中注册的程序集,而是显示使用 .pc 文件的包注册的程序集。 MonoDevelop 常见问题解答中对此进行了解释。

GAC 是一个程序集注册表,旨在在运行时而不是在开发时使用。如果您的应用程序依赖于另一个程序集,则该程序集必须由程序包提供(并通过 .pc 文件进行公布),或者必须与您的应用程序捆绑在一起。在后一种情况下,您可以仅使用对程序集的项目或“文件”引用。

The Edit References dialog does not show assemblies registered in the GAC, but assemblies registered by packages using a .pc file. That's explained in the MonoDevelop FAQ.

The GAC is an assembly registry meant to be used at run-time, not at development time. If your application depends on another assembly, that assembly either has to be provided by a package (and advertised through a .pc file) or has to be bundled together with your application. In the later case, you can just use a project or 'file' reference to the assembly.

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