View Single Post
  #1  
Old 06-16-2004, 10:57 AM
shuttledude shuttledude is offline
Registered User
 
Join Date: 06-16-2004
Posts: 3
Question Assigning File Version of .NET Assembly

How do I use Visual Build Pro to (1) obtain the Assembly Version of a .NET assembly, and (2) assign that value to the same assembly's "File Version" property.

When we build our .NET programs the Assembly version is always automatically updated. But, the File Version is "stuck" at 1.0.0.3 . This is causing problems with our installation program, which is now set to update existing files by version. Unfortunately, it's an older installation product that cannot discern between Assembly version and File version.

I suppose I could change the install program to force an overwrite of every file regardless of version or date, but I'm wondering if there's a less forceful way.

An alternative approach is to somehow get the Visual Studio compiler to assign the File Version value, but I'm not sure how to do that either.

It would be best to know how to do this both ways (Visual BuildPro and Visual Studio .NET).

Thanks in advance for any suggestions.
Reply With Quote