在 GAC 中注册同一程序集的多个版本
我需要在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,它们的程序集版本是相同的(这很奇怪)——您正在查看的版本是构建版本(或文件版本)。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.