J
jnoody
My environment is such that I have multiple assembly versions in the
GAC on multiple servers. Different applications use different versions
of the assemblies which is no problem with the GAC. I use VSS to track
my source code so I can roll back changes if I need to edit the source
code behind an older DLL version and redeploy it as necessary.
The challenge I have run into is that sometimes I need to make the same
changes to a method across multiple DLL versions. A good example is
when I find a bug or needed algorithm improvement that came about a
couple of versions back. Now I have to fix my code, roll back, fix my
code, roll back, fix my code, and so on, then redeploy all of the
DLL's. Another good example is when I add a new method to the newest
assembly, but want to make that method available to an application that
is using an older version of the assembly.
What would be great, is if I could have methods with the same
signature, but specify an attribute that would tell the compiler what
assembly version to use. Then, multiple versions of the DLL would be
created and I could just drop them all in the GAC.
Does anyone have any ideas of how to accomplish this best? Do I need
to use a special compiler or some tools? Can VS.NET accomplish this?
I was thinking that maybe I could define some identifiers and then use
the post-build events to create multiple assemblies or something? Can
that be accomplished?
Thank you in advance for any help.
GAC on multiple servers. Different applications use different versions
of the assemblies which is no problem with the GAC. I use VSS to track
my source code so I can roll back changes if I need to edit the source
code behind an older DLL version and redeploy it as necessary.
The challenge I have run into is that sometimes I need to make the same
changes to a method across multiple DLL versions. A good example is
when I find a bug or needed algorithm improvement that came about a
couple of versions back. Now I have to fix my code, roll back, fix my
code, roll back, fix my code, and so on, then redeploy all of the
DLL's. Another good example is when I add a new method to the newest
assembly, but want to make that method available to an application that
is using an older version of the assembly.
What would be great, is if I could have methods with the same
signature, but specify an attribute that would tell the compiler what
assembly version to use. Then, multiple versions of the DLL would be
created and I could just drop them all in the GAC.
Does anyone have any ideas of how to accomplish this best? Do I need
to use a special compiler or some tools? Can VS.NET accomplish this?
I was thinking that maybe I could define some identifiers and then use
the post-build events to create multiple assemblies or something? Can
that be accomplished?
Thank you in advance for any help.