473,406 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

AssemblyVersion <> FileVersion

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
Nov 21 '05 #1
7 16313
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" <mi*****@merlot.com> wrote in message
news:OU**************@TK2MSFTNGP12.phx.gbl...
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
Nov 21 '05 #2
Hi Jay,

Thanks very much.
This is exactly what I needed.

Regards,

Michael

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Nov 21 '05 #3
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]" <Ja************@msn.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
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


Nov 21 '05 #4
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" <mi*****@merlot.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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]" <Ja************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Nov 21 '05 #5
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]" <Ja************@msn.com> wrote in message
news:ei*************@TK2MSFTNGP11.phx.gbl...
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" <mi*****@merlot.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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]" <Ja************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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


Nov 21 '05 #6
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.

Nov 21 '05 #7
Thanks for the link Peter.
Maybe I'll "donate" the 10 bucks and look into his source-code.....

Regards,

Michael
Nov 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
1
by: RJN | last post by:
Hi I'm using XMLTextReader to parse the contents of XML. I have issues when the xml content itself has some special characters like & ,> etc. <CompanyName>Johnson & Jhonson</CompanyName>...
1
by: JezB | last post by:
I'm binding a DataGrid web-control to data fetched from a database. However some of my data fields contain text that is within <...> characters - I notice that everything between the <> is...
1
by: RJN | last post by:
Hi I'm using XMLTextReader to parse the contents of XML. I have issues when the xml content itself has some special characters like & ,> etc. <CompanyName>Johnson & Jhonson</CompanyName>...
1
by: mike | last post by:
I've got some code like this: gametype_id = Request.Form("gametype_id") response.write "<br>gametype_id from form>" & gametype_id & "<" response.write "<br>gametype_id from database>" &...
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
14
by: Michael | last post by:
Since the include function is called from within a PHP script, why does the included file have to identify itself as a PHP again by enclosing its code in <?php... <?> One would assume that the...
3
by: Josh Valino | last post by:
Hi, I have a client that has our product and in one of the aspx files, there is code like this: <%= SomePublicProperty %> where the public property returns a string. In the test...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.