Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Version Number Of Main App Through Control dll

Status
Not open for further replies.

JasGrand

Programmer
Jan 8, 2003
144
CA
Hello, i have a ASP.Net/VB.Net web application with a reference to a footer control. I need to modify the footer control to grab the version number in the AssemblyInfo.vb file in the Main web application folder. I am unable to hardcode any folders into the footer control because that control is used in numerous applications. I have added the following code to the footer control:

AppVersion = System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetEntryAssembly.Location).FileMajorPart().ToString _
& "." & System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetEntryAssembly.Location).FileMinorPart().ToString _
& "." & System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetEntryAssembly.Location).FileBuildPart().ToString


The problem is that the above code is grabbing the version from the footer control and not the main application. Does anyone know how i could grab the version number from the main applications AssemblyInfo.vb file? Let me know.

Thanks,


Jason Grandmaison
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top