.NET Framework Bookmark and Share   
 index > Common Language Runtime > What is Product Version?
 

What is Product Version?

Windows Explorer properties of a .NET executable gives File Version and Product Version. Where does the Product Version come from?

And while we are on Windows Explorer, what has happened to Assembly Version in Vista's version of Windows Explorer? I Googled and it looks like only two other persons have missed this pre-2004 feature.

Thanks
K.Kong
It's in the assembly metadata. You'll find it in your AssemblyInfo.cs (probably in Properties special folder in VS). Also visible in the project properties.

Hmmm... Not so sure now!

According to this post, the product version can be set viaAssemblyInformationalVersionAttribute. I don't know if Windows defaults to the AssemblyFileVersionAttribute when the informational version attribute is not set.
  • Marked As Answer byK.Kong Tuesday, September 15, 2009 1:48 PM
  •  
Wole Ogunremi
It's in the assembly metadata. You'll find it in your AssemblyInfo.cs (probably in Properties special folder in VS). Also visible in the project properties.
Wole Ogunremi
It's in the assembly metadata. You'll find it in your AssemblyInfo.cs (probably in Properties special folder in VS). Also visible in the project properties.

Hmmm... Not so sure now!

According to this post, the product version can be set viaAssemblyInformationalVersionAttribute. I don't know if Windows defaults to the AssemblyFileVersionAttribute when the informational version attribute is not set.
  • Marked As Answer byK.Kong Tuesday, September 15, 2009 1:48 PM
  •  
Wole Ogunremi
Thanks.

Yes, it's different from AssemblyVersion. I tried this in AssemberlInfo.cs:

[

assembly: AssemblyInformationalVersion("2.3.4.5")]

and 2.3.4.5 came out as Product version number in Windows Explorer properties.

K.Kong

You can use google to search for other answers

Custom Search

More Threads

• problem in try - catch - finally block ???????????
• Base Class Versioning Question
• Change Assembly References without recompilation
• Why FileStream.Length alloc memory?
• Dll loading during p/invoke
• visio paper orientation
• Seems a bug of string.IndexOf()
• Peformance Issues
• Data still in memory before Disposing the form !!!
• NullReferenceException for array inside array as stucture