Solved

VB.Net dll files not displaying the file version

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

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now