473,406 Members | 2,208 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,406 software developers and data experts.

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.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 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 2512
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 (AssemblyVersionAttribute) and instead only increment the the
informational version (AssemblyInformationalVersionAttribute).

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*******@noemail.noemail> wrote in message
news:uE*************@TK2MSFTNGP15.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.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 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*******@noemail.noemail> wrote in message
news:uE*************@TK2MSFTNGP15.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.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 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
AssemblyInfoTask, or MSBuild Community Tasks Project's Version Task.

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

More info on AssemblyInfoTask
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
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...
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...
2
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...
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...
5
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)...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...

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.