473,799 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1516
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
misunderstandin g, 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:

<configuratio n>
<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="MyAssembl y2" culture="neutra l"
publicKeyToken= "307041694a9959 78"/>
<codeBase version="1.0.15 24.23149"
href="FILE://C:/Myassemblies/MyAssembly2.dll "/>
</dependentAssemb ly>
</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/cpconassemblyve rsionredirectio n.asp

http://msdn.microsoft.com/library/de...us/cpgenref/ht
ml/gngrfAssemblyId entity.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.b et 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
1698
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 specify the interfaces and the data types which flow through the interfaces. Initially, we thought this would be enough for the client to talk with the server. In general it is, but when an exception is generated by the server it fails to...
0
1022
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 assemblies are under development as well. For example, I am developing AppA that uses ComponentB and ComponentC, which are both being developed by two other developers (or in BizTalk, MapA that uses SchemaB and SchemaC, all in different assemblies)....
5
3606
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 increment...it's AssemblyInfo.vb looks like this
6
1674
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 changing an interface it breaks compatability, forcing all of my consuming assemblies to need recompiling. I know this could be done with VB6, what about .NET? Nick.
3
311
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 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...
3
2541
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 application. For example: MyApplication.exe uses MyDllA.dll, MyDllB.dll and MyDllC.dll. All their versions are written to the manifest for MyApplication.exe. What happens if I need to fix a bug in MyDLLB.dll? Isn't the entire solution rebuilt...
0
1500
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 'App_GlobalResources' folder. 3) MyApp contains standard AssemblyVersion and AssemblyInformationalVersion
6
3693
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 reason for this? 65535 would make sense!? Is there a work around, patch, etc?? Regards
1
2262
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 I have pasted the part I'm interested in below. My company doesn't use versioning or the gac and I'd like to. We're on vs.net 2005 & .net 2., is this still true or has it changed since then? thanks That article is not entirely accurate. ...
0
9546
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10490
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10260
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10030
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9078
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7570
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.