在 GAC 中注册同一程序集的多个版本

发布于 2024-09-11 05:09:12 字数 364 浏览 2 评论 0原文

我需要在 GAC 中注册同一程序集的两个版本。

据我了解,应该可以注册这两个版本,但是当我尝试使用 gacutil.exe 注册第二个版本时,我收到以下消息:

程序集已存在于缓存中。使用 /f 选项强制覆盖

我尝试注册的程序集是 Microsoft.AnalysisServices,我需要注册的两个版本是 10.0.1600.22 (SQL Server 2008) 和 10.50.1600.1 (SQL Server 2008 R2) 。

当我在 Windows 资源管理器中查看 GAC 时,该 DLL 的“版本”列显示“10.0.0.0”,而不是完整的版本号。

有什么方法可以注册这两个程序集吗?

I need to register two versions of the same assembly in the GAC.

From what I understand, it should be possible to register both versions, however when I try to register the second one using gacutil.exe I get the following message:

Assembly already exists in cache. Use /f option to force overwrite

The assembly I'm trying to register is Microsoft.AnalysisServices and the two versions I need to register are 10.0.1600.22 (SQL Server 2008) and 10.50.1600.1 (SQL Server 2008 R2).

When I view the GAC in windows explorer the "version" column for this DLL says "10.0.0.0" rather than the full version number.

Is there some way to register both of these assemblies?

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

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

发布评论

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

评论(1

别把无礼当个性 2024-09-18 05:09:12

不,它们的程序集版本是相同的(这很奇怪)——您正在查看的版本是构建版本(或文件版本)。GAC 在评估身份时仅考虑程序集版本。在 MSDN/TECHNET 中查找 AssemblyVersionAttribute 和 AssemblyFileVersionAttribute 以了解更多信息。

No, their assembly versions are the same (which is strange tbh) - the versions you are looking at are build (or file versions.) The GAC only takes the assembly version into account when evaluating the identity. Look up AssemblyVersionAttribute and AssemblyFileVersionAttribute in MSDN/TECHNET to learn more.

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