Solved

VB.Net dll files not displaying the file version

Posted on 2014-10-28
1
325 Views
Last Modified: 2014-10-28
I have a web site project that is not updating the file version information when I build and publish. The modified date is updating, but the other information that I have in the AssemblyInfo.vb file is not showing at all. All of the dll files in the bin folder show the version 0.0.0.0 instead of the 1.0.0.0 I have in the file.

This is causing me issues because the app_code.dll file is copied to the GAC and since the version doesn't change I have to get the web server group to manually overwrite the copy in the GAC. I only have access to the folder where my site resides and cannot make any changes on the web server.

I have seen lots of places where it says that the file version is pulled from the AssemblyInfo.vb, but in my case that does not seem to be the case.

Any ideas on how I can get the file version to populate on my dll files?

Thanks,
Jerry
0
Comment
Question by:Jerry Miller
1 Comment
 
LVL 33

Accepted Solution

by:
it_saige earned 500 total points
ID: 40409483
Here is an example AssemblyInfo.vb -
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices

' General Information about an assembly is controlled through the following 
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.

' Review the values of the assembly attributes

<Assembly: AssemblyTitle("Example")> 
<Assembly: AssemblyDescription("")> 
<Assembly: AssemblyCompany("Fabrikam")> 
<Assembly: AssemblyProduct("Example")> 
<Assembly: AssemblyCopyright("Copyright © Fabrikam 2014")> 
<Assembly: AssemblyTrademark("")> 

<Assembly: ComVisible(False)>

'The following GUID is for the ID of the typelib if this project is exposed to COM
<Assembly: Guid("00000000-0000-0000-0000-000000000000")> 

' Version information for an assembly consists of the following four values:
'
'      Major Version
'      Minor Version 
'      Build Number
'      Revision
'
' You can specify all the values or you can default the Build and Revision Numbers 
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")> 

<Assembly: AssemblyVersion("1.0.0.0")> 
<Assembly: AssemblyFileVersion("1.0.0.0")> 

Open in new window

Ensure that your Assembly version and Assembly file version attributes are properly formatted.

Are you using a ClickOnce deployment?  If so make sure that your publish tab is configured properly.Capture.JPG
-saige-
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question