p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   Assembly Versioning (http://p2p.wrox.com/showthread.php?t=62740)

balesh.mind October 9th, 2007 01:41 AM

Assembly Versioning
 
Hello All,

I was working with asp.net 2.0 some time back. Now i start working on asp.net 2.0. But i am very much confused in deploying web application in asp.net 2.0. And offcourse i dont have any idea how to play with different version of assemblies. In which scenerio we should change assembly version and which portion we should change(major or minor or build). I search on web a lot... but did not find any good article. Plz help me out..
Thanks in advance.


planoie October 9th, 2007 09:38 AM

This seems to usually be a matter of personal preference.

Typically the major and minor version numbers easy to dictate. You simply need to decide what they are based on the release of your software.

From what I've read Microsoft applies the build number as a date. For example, v2 of the framework is this version:

   2.0.50727

It's major version 2, minor 0, built on 2005 July(07) 27th. Using this method makes it easy to see when a particular assembly was created.

I've yet to find any explanations as to what the revision number represents. I've used CruiseControl.NET to fire off release builds of software. If that case I've set up the build system to set the revision number to the incremental build number that comes from CruiseControl. This provides an association between a given assembly and a particular build that is logged and archived.

Unfortunately there isn't a cut and dried standard for versioning. Like everything else in software, there are lots of ways of doing it, and it's up to the individual or organization to decide what's best. The important thing is to be consistent with all your systems.

-Peter

Imar October 9th, 2007 10:29 AM

Quote:

quote:I've yet to find any explanations as to what the revision number represents
AFAIK, the revision number with .NET assemblies is the number of seconds since midnight for the day of the built....

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004

planoie October 9th, 2007 10:43 AM

Quote:

quote:Originally posted by Imar
 AFAIK, the revision number with .NET assemblies is the number of seconds since midnight for the day of the built....

This is true when you use this as your assembly version in the AssemblyInfo file:

     x.x.*

The * tells VS to fill in the build and revision numbers. However, if you set it explicitly (1.2.0.0) the 0.0 will remain.

-Peter

Imar October 9th, 2007 10:47 AM

Right; I thought you were referring to the fixed revision number in assemblies deployed by the .NET Framework. e.g. the .1378 in 2.0.50727.1378

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004

planoie October 9th, 2007 10:59 AM

Oh right. In that case, yes, I think you are correct.

-Peter


All times are GMT -4. The time now is 12:14 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.