Guest User

Untitled

a guest
Jul 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. Imports System
  2. Imports System.Reflection
  3. Imports System.Runtime.InteropServices
  4.  
  5. ' General Information about an assembly is controlled through the following
  6. ' set of attributes. Change these attribute values to modify the information
  7. ' associated with an assembly.
  8.  
  9. ' Review the values of the assembly attributes
  10.  
  11. <Assembly: AssemblyTitle("MyWebSite")>
  12. <Assembly: AssemblyDescription("")>
  13. <Assembly: AssemblyCompany("")>
  14. <Assembly: AssemblyProduct("MyWebSite")>
  15. <Assembly: AssemblyCopyright("Copyright © MyCompany 2018")>
  16. <Assembly: AssemblyTrademark("")>
  17.  
  18. <Assembly: ComVisible(False)>
  19.  
  20. ' Version information for an assembly consists of the following four values:
  21. '
  22. ' Major Version
  23. ' Minor Version
  24. ' Build Number
  25. ' Revision
  26. '
  27. ' You can specify all the values or you can default the Build and Revision Numbers
  28. ' by using the '*' as shown below:
  29. ' <Assembly: AssemblyVersion("1.0.*")>
  30.  
  31. <Assembly: AssemblyVersion("1.2.3.4")>
  32. <Assembly: AssemblyFileVersion("1.2.3.4")>
  33.  
  34. <asp:Literal runat="server" ID="Version"></asp:Literal>
  35.  
  36. Dim assembly As Assembly = Assembly.Load("App_Code")
  37. Dim ver As Version = assembly.GetName().Version
  38. Version.Text = "Version: " + ver.Major.ToString() + "." + ver.Minor.ToString() + "." + ver.Revision.ToString() + " build (" + ver.Build.ToString() + ")"
Add Comment
Please, Sign In to add comment