473,662 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Assembly versioning and incremental updates

Joe
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.e xe uses MyDllA.dll, MyDllB.dll and MyDllC.dll.
All their versions are written to the manifest for MyApplication.e xe. What
happens if I need to fix a bug in MyDLLB.dll? Isn't the entire solution
rebuilt with a different version now?
I would ideally like to deploy just this assembly to the clients but I don't
think that will be the case because the AssemblyVersion will change and will
no longer match the version in the manifest of the exe.

How can I deploy just the assemblies that needed to be fixed?

I'm also looking for an Auto build application which is tuned toward .NET. I
would like something that can do the obvious like get the source from the
source control application but in addition, change or modify the
AssemblyInfo.cs file to set the AssemblyVersion , AssemblyCompany and the
other attributes used in the AssemblyInfo.cs file

Thanks,
Joe
Feb 1 '06 #1
3 2527
When you update an assembly - as long as you don't change any signatures,
you shouldn't have to rebuild the entire application and thus only deploy
the changed assembly. I typically leave the version number of the file the
same (AssemblyVersio nAttribute) and instead only increment the the
informational version (AssemblyInform ationalVersionA ttribute).

When it comes to building it - I use CruiseControl .NET to build my
application whenever I check something into version control. CruiseControl
recognizes the changes to source control and then it launches NAnt (for VS
2003 Projects) or MSBuild for VS 2005 projects. NAnt has the built in
ability to auto-generate AssemblyInfo files and manipulate the version
information (as well as check the file back in to source control). To the
best of my knowledge - MSBuild can't do this but it wouldn't take much to
write your own class and extend MSBuild to do so. If you want a more
"Visual" way to perform builds you can use MegaBuild but again - it doesn't
have the ability to generate/alter AssemblyInfo files so you would need to
create something that MegaBuild could launch. I would recommend sticking
with NAnt.

Brian Patterson
http://dotnet.redeyepos.com
http://brian.redeyepos.com

"Joe" <jb*******@noem ail.noemail> wrote in message
news:uE******** *****@TK2MSFTNG P15.phx.gbl...
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.e xe uses MyDllA.dll, MyDllB.dll and MyDllC.dll.
All their versions are written to the manifest for MyApplication.e xe. What
happens if I need to fix a bug in MyDLLB.dll? Isn't the entire solution
rebuilt with a different version now?
I would ideally like to deploy just this assembly to the clients but I
don't think that will be the case because the AssemblyVersion will change
and will no longer match the version in the manifest of the exe.

How can I deploy just the assemblies that needed to be fixed?

I'm also looking for an Auto build application which is tuned toward .NET.
I would like something that can do the obvious like get the source from
the source control application but in addition, change or modify the
AssemblyInfo.cs file to set the AssemblyVersion , AssemblyCompany and the
other attributes used in the AssemblyInfo.cs file

Thanks,
Joe

Feb 2 '06 #2

"Joe" <jb*******@noem ail.noemail> wrote in message
news:uE******** *****@TK2MSFTNG P15.phx.gbl...
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.e xe uses MyDllA.dll, MyDllB.dll and MyDllC.dll.
All their versions are written to the manifest for MyApplication.e xe. What
happens if I need to fix a bug in MyDLLB.dll? Isn't the entire solution
rebuilt with a different version now?
I would ideally like to deploy just this assembly to the clients but I
don't think that will be the case because the AssemblyVersion will change
and will no longer match the version in the manifest of the exe.


Version numbers only matter for signed assemblies in the GAC because this
allows you to run two versions side by side.

Version numbers of local assemblies don't matter as they are just assumed to
be what you wanted - different versions would be in different directory
trees.

Feb 2 '06 #3
Hi,

I believe you can use MSBuild to change the Assembly version at compile
time using either the
AssemblyInfoTas k, or MSBuild Community Tasks Project's Version Task.

More info on MSBuild Community Tasks Project
http://msbuildtasks.tigris.org/

More info on AssemblyInfoTas k
http://blogs.msdn.com/msbuild/archiv...04/509308.aspx

Hope this helps.

--
Tod Birdsall, MCSD for .Net
software blog: http://tod1d.net

Feb 2 '06 #4

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

Similar topics

0
1684
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
1010
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)....
3
1503
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...
2
2724
by: Henrik Skak Pedersen | last post by:
Hello, I have a class which is beeing serialized/deserialized using the BinaryFormatter class. That has been working with no problems until I signed all my assemblies. Now I get a SerializationException when I try to Deserialize the class which has been serialized before the signing. So what is best practice in my situation? Do I have to convert all my saved classes or do I write a SerializationBinder to handle it runtime?
5
3596
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
1669
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.
5
3601
by: Joel Matthew | last post by:
My boss was asking about incremental backups. I was scratching my head, thinking that the transaction log and a backup policy (script) for each record set (sorry about the archaic terminology) was the usual solution. But there is a some resistance against writing more code, so I'm wondering what the current state of affairs with postgresql in regards to incremental backup would be. A quick search of the lists produced the following:
6
3684
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
2250
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
8345
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
8857
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
8768
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...
1
6186
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
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
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.