USE DLL安装在GAC中 [英] USE DLL which was installed in GAC
本文介绍了USE DLL安装在GAC中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有使用dll的应用程序。 DLL已安装在GAC中。现在我想用另一个版本更改DLL。
现在我的应用程序应该自动连接新版本的DLL。
有没有办法使用新的dll到现有应用程序,而不修改使用DLL的现有应用程序。
Hi,
I have application that are using a dll. The DLL has installed in GAC. now I want to change the DLL with another version.
Mean now my application should automatic connect with new version of DLL.
is there a way to use new dll to existing application without modifying the existing application which is using the DLL.
推荐答案
您可以签署修改后的程序集并将其推送到GAC,以便引用此程序集的应用程序,将不会意识到差异。
您应该:
- 指定版本号的所有部分,含义为ABCD
指定所有部分(A,B,C和D),而不是AssemblyInfo.cs
文件中的ABC *,
- 使用相同的sn键。
现在版本特定的引用应该达到安全和健全的dll。
请参阅Oren Shwartz关于该主题的精彩CP文章:
程序集:定位,绑定和部署 [ ^ ]
干杯,
Edo
You can sign the modified assembly and push it to the GAC, so that the applications which reference this assembly, will be unaware of the difference.
You should:
- Specify all parts of the version number, meaning in versionA.B.C.D
specify all parts (A, B, C and D), rather than A.B.C.* inAssemblyInfo.cs
file,
- Use the same sn key.
Now version-specific references should reach the dll safe and sound.
See a wonderful CP article on the topic by Oren Shwartz:
Assemblies: locating, binding and deploying[^]
Cheers,
Edo
这篇关于USE DLL安装在GAC中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文