473,387 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Assembly versioning and product updates

I have an application that is comprised of multiple dll's and exe's, all with
strong names. Let's say that all of these applications use a utility library
Utility.dll, and let's say the version of Utility.dll is 1.0.0.0.

I then make a small change to the Utility library, which I want to push out
to uses in the form of a patch. Since it's a minor change, I increment the
version of the Utility assembly to 1.0.0.1.

What I'd like to do is simply push out a fresh copy of Utility.dll.
However, because everything is strong-named, none of the other assemblies
that depend on Utility.dll will accept it, because their manifests all say
they depend on version 1.0.0.0. So instead of pushing out a single file, I
have to push out the whole darn bag o' bits.

Is there some way I can specify that I only want the .NET dependency checker
to look at the major and minor rev in the assembly version number, so that I
can push out minor fixes without needing to push out everything?
Jul 21 '05 #1
3 1471
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to assemblies reference to
newer build of you assembly instead of the old one. If there is any
misunderstanding, please feel free to let me know.

As far as I know, if your project reference to an assembly which is not
available, the .NET framework will look for the nearest version. Also you
could add some settings in app.config file to make some version to be the
default version your assembly references. For example:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="MyAssembly2" culture="neutral"
publicKeyToken="307041694a995978"/>
<codeBase version="1.0.1524.23149"
href="FILE://C:/Myassemblies/MyAssembly2.dll"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

For more information, you can try to check the following link:

http://support.microsoft.com/default...b;en-us;837908

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #2
Hi,

You can also try Assembly Versions Redirection. Please check the following
links:

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconassemblyversionredirection.asp

http://msdn.microsoft.com/library/de...us/cpgenref/ht
ml/gngrfAssemblyIdentity.asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #3
Dathon wrote:
I then make a small change to the Utility library, which I want to
push out to uses in the form of a patch. Since it's a minor change,
I increment the version of the Utility assembly to 1.0.0.1.

What I'd like to do is simply push out a fresh copy of Utility.dll.
However, because everything is strong-named, none of the other
assemblies that depend on Utility.dll will accept it, because their
manifests all say they depend on version 1.0.0.0. So instead of
pushing out a single file, I have to push out the whole darn bag o'
bits.
Yup, that's the way its designed to work!
Is there some way I can specify that I only want the .NET dependency
checker to look at the major and minor rev in the assembly version
number, so that I can push out minor fixes without needing to push
out everything?


Well, sort of. If the utility.dll assembly is installed in the GAC you can
install a publisher policy file into the GAC which will redirect all
requests for 1.0.0.0 to 1.0.0.1 for all applications. Publisher policy files
are really only intended for critical changes like security updates. See
http://www.grimes.demon.co.uk/workshops/fusWSSix.htm for details.

For individual applications you can redirect versions through the
application's config file
(http://www.grimes.demon.co.uk/workshops/fusWSThree.htm).

However, the intended way to update assemblies is as you say to "push out
the whole darn bag o' bits"

Richard
--
www.richardgrimes.com
my email ev******@zicf.bet is encrypted with ROT13 (www.rot13.org)
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ken Durden | last post by:
I'm working on a client-server application where the client is controlling two devices (aka servers) which both implement the same interface contract. We have a set of about 4 assemblies which...
0
by: Mike Jansen | last post by:
We're doing .NET development for PocketPC, BizTalk, and miscellaneous other things. One of the difficulties has been keeping references to assemblies intact in a project when the referenced...
5
by: mekim | last post by:
Hello....I am trying to System.Reflection.Assembly.GetExecutingAssembly ().GetName ().Version.ToString () ; to display the version of the app...but it remains static and therefore does not...
6
by: Nak | last post by:
Hi there, I was wondering if anyone knew of a way to maintain compatability with assemblies providing the interfaces remains the same? At the moment if I re-compile an assembly without actually...
3
by: Dathon | last post by:
I have an application that is comprised of multiple dll's and exe's, all with strong names. Let's say that all of these applications use a utility library Utility.dll, and let's say the version of...
3
by: Joe | last post by:
Hi All! I'm working on putting together our build process and incremental updates. I understand the way AssemblyVersion works but I'm not too clear as to how I can do incremental updates to the...
0
by: Faris Ahmed | last post by:
Dear ASP newsgroup, I have the following environment: 1) VS2005 ASP.NET 2.0 WebApplication called MyApp. 2) MyApp contains Strings.resx, Strings.en.resx and Strings.de.resx in...
6
by: Gavin Sullivan | last post by:
I've been using the date (in YMMDD) format for the build number in the AssemblyVersion attribute. However, it appears that numbers 65534 are invalid!! Bit of a bummer for 2007!!! Is there a...
1
by: Coaster | last post by:
orig ref here http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/ff29cc370678911d/c0db5b7e3da283b9?lnk=st&q=gac+assembly+new+version&rnum=7#c0db5b7e3da283b9...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.