Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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("MyWebSite")>
- <Assembly: AssemblyDescription("")>
- <Assembly: AssemblyCompany("")>
- <Assembly: AssemblyProduct("MyWebSite")>
- <Assembly: AssemblyCopyright("Copyright © MyCompany 2018")>
- <Assembly: AssemblyTrademark("")>
- <Assembly: ComVisible(False)>
- ' 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.2.3.4")>
- <Assembly: AssemblyFileVersion("1.2.3.4")>
- <asp:Literal runat="server" ID="Version"></asp:Literal>
- Dim assembly As Assembly = Assembly.Load("App_Code")
- Dim ver As Version = assembly.GetName().Version
- Version.Text = "Version: " + ver.Major.ToString() + "." + ver.Minor.ToString() + "." + ver.Revision.ToString() + " build (" + ver.Build.ToString() + ")"
Add Comment
Please, Sign In to add comment