PC Review


Reply
Thread Tools Rate Thread

AssemblyVersion <> FileVersion

 
 
Michael Maes
Guest
Posts: n/a
 
      12th Aug 2004
Hi,

Setting the Assembly Version is no problem (<Assembly: AssemblyVersion("1.1.20043.13")>) but how do I set the FileVersion (of the dll)?

TIA,

Michael
 
Reply With Quote
 
 
 
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      12th Aug 2004
Michael,
There are three "versions" you can include in your AssemblyInfo.vb file:

<Assembly: AssemblyVersion("1.0.*")> ' Assembly version
<Assembly: AssemblyInformationalVersion("1.0")> ' Product version
<Assembly: AssemblyFileVersion("1.0.*")> ' File version

If you exclude the AssemblyInformationalVersion & AssemblyFileVersion they
will default to AssemblyVersion.

For details see:

http://msdn.microsoft.com/library/de...assenamesp.asp


Hope this helps
Jay


"Michael Maes" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Hi,

Setting the Assembly Version is no problem (<Assembly:
AssemblyVersion("1.1.20043.13")>) but how do I set the FileVersion (of the
dll)?

TIA,

Michael


 
Reply With Quote
 
Michael Maes
Guest
Posts: n/a
 
      13th Aug 2004
Hi Jay,

Thanks very much.
This is exactly what I needed.

Regards,

Michael

"Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Michael,
> There are three "versions" you can include in your AssemblyInfo.vb file:
>
> <Assembly: AssemblyVersion("1.0.*")> ' Assembly version
> <Assembly: AssemblyInformationalVersion("1.0")> ' Product version
> <Assembly: AssemblyFileVersion("1.0.*")> ' File version
>
> If you exclude the AssemblyInformationalVersion & AssemblyFileVersion they
> will default to AssemblyVersion.
>
> For details see:
>
>

http://msdn.microsoft.com/library/de...assenamesp.asp
>
>
> Hope this helps
> Jay



 
Reply With Quote
 
Michael Maes
Guest
Posts: n/a
 
      13th Aug 2004
The only pitty is that an "auto-increment" (.*) on the AssemblyInformationalVersion-Attribute won't work. :-(

<Assembly: AssemblyVersion("2.0.0.0")>
<Assembly: AssemblyInformationalVersion("2.0")>
<Assembly: AssemblyFileVersion("2.0.0.*")>
This literally set the FileVersion to 2.0.0.* and produces a warning in the IDE (vbc : warning BC40010: Possible problem detected while building assembly 'Stegosoft.Diagnostics': The version '2.0.0.*' specified for the 'file version' is not in the normal 'major.minor.build.revision' format)

Michael


"Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
> Michael,
> There are three "versions" you can include in your AssemblyInfo.vb file:
>
> <Assembly: AssemblyVersion("1.0.*")> ' Assembly version
> <Assembly: AssemblyInformationalVersion("1.0")> ' Product version
> <Assembly: AssemblyFileVersion("1.0.*")> ' File version
>
> If you exclude the AssemblyInformationalVersion & AssemblyFileVersion they
> will default to AssemblyVersion.
>
> For details see:
>
> http://msdn.microsoft.com/library/de...assenamesp.asp
>
>
> Hope this helps
> Jay


 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      13th Aug 2004
Michael,
I would not expect, AssemblyInformationalVersion to auto increment, as that
is the Product version! I would expect it to be a constant during rebuilds.

I would however, expect both AssemblyVersion and AssemblyFileVersion to auto
increment.

I'll check VS.NET 2005 to see if it has the same behavior, I'm not seeing
anything specific that AssemblyFileVersion should auto increment. (Only the
AssemblyVersion is documented to auto increment.)

Hope this helps
Jay

"Michael Maes" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
The only pitty is that an "auto-increment" (.*) on the
AssemblyInformationalVersion-Attribute won't work. :-(

<Assembly: AssemblyVersion("2.0.0.0")>
<Assembly: AssemblyInformationalVersion("2.0")>
<Assembly: AssemblyFileVersion("2.0.0.*")>
This literally set the FileVersion to 2.0.0.* and produces a warning in the
IDE (vbc : warning BC40010: Possible problem detected while building
assembly 'Stegosoft.Diagnostics': The version '2.0.0.*' specified for the
'file version' is not in the normal 'major.minor.build.revision' format)

Michael


"Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Michael,
> There are three "versions" you can include in your AssemblyInfo.vb file:
>
> <Assembly: AssemblyVersion("1.0.*")> ' Assembly version
> <Assembly: AssemblyInformationalVersion("1.0")> ' Product version
> <Assembly: AssemblyFileVersion("1.0.*")> ' File version
>
> If you exclude the AssemblyInformationalVersion & AssemblyFileVersion they
> will default to AssemblyVersion.
>
> For details see:
>
>

http://msdn.microsoft.com/library/de...assenamesp.asp
>
>
> Hope this helps
> Jay



 
Reply With Quote
 
Michael Maes
Guest
Posts: n/a
 
      13th Aug 2004
Hi Jay,

The desired solution I would like (in this case) is the AssemblyVersion &
AssemblyInformationalVersion to be Static and the AssemblyFileVersion to
autoincrement.
The only reason that I don't want to autoincrement the AssemblyVersion is
that these assemblies are our own Framework with also Components placed in
the ToolBox. Since the ToolBox keeps the old references when you renew a
reference, you have to remove and re-add the Components in the ToolBox. This
is a "hell of a job", especially if you're performing many builds in a short
time.

Thus I wanted the AssemblyVersion to be 'Static' and keep track of
versioning through the AssemblyFileVersion.

Maybe there's another solution for the "ToolBox-Version-Issue"?

Regards,

Michael

"Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Michael,
> I would not expect, AssemblyInformationalVersion to auto increment, as

that
> is the Product version! I would expect it to be a constant during

rebuilds.
>
> I would however, expect both AssemblyVersion and AssemblyFileVersion to

auto
> increment.
>
> I'll check VS.NET 2005 to see if it has the same behavior, I'm not seeing
> anything specific that AssemblyFileVersion should auto increment. (Only

the
> AssemblyVersion is documented to auto increment.)
>
> Hope this helps
> Jay
>
> "Michael Maes" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> The only pitty is that an "auto-increment" (.*) on the
> AssemblyInformationalVersion-Attribute won't work. :-(
>
> <Assembly: AssemblyVersion("2.0.0.0")>
> <Assembly: AssemblyInformationalVersion("2.0")>
> <Assembly: AssemblyFileVersion("2.0.0.*")>
> This literally set the FileVersion to 2.0.0.* and produces a warning in

the
> IDE (vbc : warning BC40010: Possible problem detected while building
> assembly 'Stegosoft.Diagnostics': The version '2.0.0.*' specified for the
> 'file version' is not in the normal 'major.minor.build.revision' format)
>
> Michael
>
>
> "Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Michael,
> > There are three "versions" you can include in your AssemblyInfo.vb file:
> >
> > <Assembly: AssemblyVersion("1.0.*")> ' Assembly version
> > <Assembly: AssemblyInformationalVersion("1.0")> ' Product version
> > <Assembly: AssemblyFileVersion("1.0.*")> ' File version
> >
> > If you exclude the AssemblyInformationalVersion & AssemblyFileVersion

they
> > will default to AssemblyVersion.
> >
> > For details see:
> >
> >

>

http://msdn.microsoft.com/library/de...assenamesp.asp
> >
> >
> > Hope this helps
> > Jay

>
>



 
Reply With Quote
 
Peter Huang
Guest
Posts: n/a
 
      16th Aug 2004
Hi Michael,

For the auto increment issue of the AssemblyFileVersion, you may try to
take a look at the link below.
http://home.cfl.rr.com/njfiorello/autofile/

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
Michael Maes
Guest
Posts: n/a
 
      16th Aug 2004
Thanks for the link Peter.
Maybe I'll "donate" the 10 bucks and look into his source-code.....

Regards,

Michael


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FileVersion and Assembly Version perspolis Microsoft C# .NET 1 26th Feb 2007 05:48 PM
Changing FileVersion with build Shikari Shambu Microsoft Dot NET Framework 0 21st Jul 2004 08:49 PM
Inconsistent results from vb,net and propety page fileversion Microsoft Microsoft Dot NET Framework 0 11th Jun 2004 07:26 PM
AssemblyVersion and FileVersion in Managed C++ Microsoft VC .NET 1 16th Feb 2004 10:23 PM
Fileversion Thore Berntsen Microsoft Dot NET Compact Framework 3 5th Feb 2004 07:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:16 PM.