总是从GAC拿起最新的dll [英] Always picking up the latest dll from the GAC

查看:116
本文介绍了总是从GAC拿起最新的dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有1.0.1版本的DLL。*所使用的whcih自己在不同的机器上运行许多应用程序。这个DLL驻留在运行的应用程序的机器的GAC。该应用程序包括此DLL与特定版本的引用设置为false。我们已经想出了1.0.2版本。*这个dll是向后兼容的。

We have a dll with version 1.0.1.* that is used by many applications whcih themselves run on different machines. This dll resides in the GAC of the machine running the application. The application includes this dll as a reference with "Specific Version" set to false. We have come up with version 1.0.2.* of this dll which is backward compatible.

有没有部署新的DLL,并要求所有的应用程序选路最新的版本,而无需重新编译应用程序。我知道使用Publisher策略程序集重定向。有另一种方式?

Is there a way to deploy the new dll and ask all the applications to pick the latest version without having to recompile the applications. I am aware of assembly redirection using Publisher Policy. Is there another way?

推荐答案

一个出版商政策明确设计要做到这一点,不考虑它来解决你的问题不让有很大的意义。鉴于你的更新是向后兼容,一个没有麻烦的方法是根本无法更改[的AssemblyVersion]但只递增[的AssemblyFileVersion]。

A publisher policy is explicitly designed to do this, not considering it to solve your problem doesn't make a lot of sense. Given that your update is 'backward compatible', a no-hassle approach would be to simply not change the [AssemblyVersion] but only increment the [AssemblyFileVersion].

这篇关于总是从GAC拿起最新的dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆