Click to See Complete Forum and Search --> : Build Version?
tailz
Oct 18th, 2004, 06:28 PM
Can I get the Build version of my app? Same as in VB6 I'd do App.Revision ...
Thanks
Gary
Ideas Man
Oct 23rd, 2004, 09:16 AM
Yes, it is stored under
Application.ProductVersion
If you wish to retrieve just the build, use the following code:
Dim Version As New Version(Application.ProductVersion)
Version.Build 'Gets the applications build number
tailz
Oct 23rd, 2004, 09:22 AM
Thanks for replying.
Maybe its me being thick but I honestly cant see a "ProductVersion" property under the Application object ...
I'm using ASP.NET btw ...
GaZ
Ideas Man
Oct 23rd, 2004, 08:38 PM
You're right, sorry about that, musta tried it in the wrong project type :blush:.
RobDog888
Oct 23rd, 2004, 09:02 PM
Will it be the same as it is in a Windows App?
Dim ainfo As New AssemblyInfo()
MessageBox.Show(String.Format("Version {0}", ainfo.Version), "Version", MessageBoxButtons.OK, MessageBoxIcon.Information)
tailz
Oct 24th, 2004, 04:09 AM
Doesnt appear to be. I can't actually get to the AssemblyInfo member.
ASP.NET produces a DLL so version info would be available right? not on a wild goose chase here :ehh:
Thanks anyway
RobDog888
Oct 24th, 2004, 07:41 PM
If you are using a asp.net web project, there will be an Assembly.vb
module included in the project. If you use the code it will be
accessable.
HTH
tailz
Oct 25th, 2004, 01:39 AM
ok, I see the class/module whatever it is and the AssemblyBuildInfo thingy in it.
Imagine for a second, you are talking to someone who's been doing vb6 for ever and is new to ASP.NET :-))))
How do I 'use' the thing? Creating a new instance just doesnt seem to be an option
GaZ
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.