Hello. Your help is very much appreciated.
I am trying to achieve the following, with VS2005:
1. After building the assembly, deploy it in the GAC.
2. The assembly client(s) will reference the GACed version.
3. If I do minor updates to the assembly, I want the clients to be able to pick it up automatically, without needing to make any change.
4. If I do a major update (breaking one) to the assembly, I want the client to have to change the reference to the assembly explicitly, in order to use it.
The problem:
1. How can I achieve point # 3 ?? (changing the file version doesn’t change a thing, whereas changing the version number, requires the client to explicitly change the reference).
Thank you,
Bin LiPosted Oct 26, 2009, 7:05 PM
I don't think that is anything about delaysigning in your problems.
I would recommend that it is publisher policy control issue. Have you tried to create the publisher policy assembly by running AL.exe like :
AL.exe /out:Policy.1.0.MyAssembly.dll
/verion:1.0.0.0
/keyfile:MyCompany.keys
/linkresource:MyAssembly.config
and create a MyAssembly.config like:
Once you set the direct version of your assembly, the CLR uses the version number so that it knows to pick up the latest version of the publisher policy assembly.
Dusan TkacPosted Dec 4, 2008, 12:24 PM
Hi,
I think that that what you want to do is "Assembly Binding Redirection". Try to read something about Side-by-Side execution, preferably starting here: http://msdn.microsoft.com/en-us/library/8477k21c.aspx
If I understand you well, you do not want to configure each client individually, so you probably do not want to define redirection in clent configuration files.
You would probably either define redirection manually (which you will do by configuring your assembly in GAC) or distribute "Publisher Policy Assembly" together with your GACed assembly.
roy royPosted Oct 23, 2007, 1:54 AM
Thank you, I haven't tried it yet.
I will learn it and see how it can help.
Thank you.
Khilitchandra PrajapatiPosted Oct 22, 2007, 8:42 AM
hi there,
have you tried "Delay Signing" yet?
cheers,
smartkhilit