Solved

VB.Net dll files not displaying the file version

Posted on 2014-10-28
1
338 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

685 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