在 VS2010 的 GAC 中引用 .Net 4.0 程序集

发布于 2024-09-09 22:17:23 字数 312 浏览 1 评论 0原文

有人这样做过吗?

我创建了一个程序集并将其安装到 GAC。它列在 gacutil 中,我可以在 c:\windows\microsoft.net\ assembly 文件夹中看到它。

我发现有人说添加注册表项,但他们指定的文件夹不存在,当我创建它们时,我的程序集仍然没有出现在列表中。

我尝试过 Muse VSExtensions 但它也找不到程序集,我认为它没有找到 .net 4 程序集文件夹。

我已成功通过手动编辑项目文件来添加引用来添加对程序集的引用。这工作得很好,但远非理想。

任何帮助将不胜感激。

谢谢

Has anyone done this?

I have created an assembly and installed it to the GAC. It's listed in gacutil and I can see it in c:\windows\microsoft.net\assembly folder.

I have found people saying to add registry keys, but the folders they specify don't exist, and when I create them, my assembly is still not appearing in the list.

I have tried Muse VSExtensions but it doesn't find the assembly either, I don't think it picks up the .net 4 assembly folder.

I have managed to add a reference to my assembly by manually editing the project file to add the reference. This worked fine but is far from ideal.

Any help would be appreciated.

Thanks

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

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

发布评论

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

评论(1

℉絮湮 2024-09-16 22:17:23

如果您只想在添加引用对话框中看到它,则只需将文件安装到然后

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0

人们可以从那里添加引用,而您无需担心 GAC 或注册表。

If you just want to see it in the add referances dialog you only need to install the file into the

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0

then people can add referances from there and you do not need to worry about the GAC or the registry.

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