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
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