DCSIMG

 Subscribe in a reader

AssemblyVersion Vs AssemblyFileVersion - Guy kolbis
Thursday, January 24, 2008 4:14 PM kolbis

AssemblyVersion Vs AssemblyFileVersion

During a nightly build operation I was planning and constructing for a customer, I needed to automatically change the AsseblyVersion. When finished, the customer asked me whether they also need to change the AssemblyFileVersion.

So, what is the different between the two?

Well the difference lies in their name itself. One is the version of the assembly the other is version of the file, wait, am I making it complex? Ok let me explain.

In short, the AsseblyVersion is used by the GAC and  AssemblyFileVersion shows up in Windows Explorer file properties. 

My way of looking at it is as follows:

The AssemblyVersion is what other assemblies that reference your namespace will look at. If that number changes, then the referencing assembly blows up.

But you as the developer still need to know what version of the assembly is deployed, and for that you use the AssemblyFileVersion attribute. Increment it every time a new version of the assembly is deployed.

kick it on DotNetKicks.com תגים:, ,

תוכן התגובה

# AssemblyVersion Vs AssemblyFileVersion

DotNetKicks.com כתב/ה

You've been kicked (a good thing) - Trackback from DotNetKicks.com

Thursday, December 04, 2008 5:01 PM

שלח תגובה

(שדה חובה) 
(שדה חובה) 
(אופציונלי)
(שדה חובה) 

Enter the numbers above: