Can I get the Build version of my app? Same as in VB6 I'd do App.Revision ...
Thanks
Gary
Printable View
Can I get the Build version of my app? Same as in VB6 I'd do App.Revision ...
Thanks
Gary
Yes, it is stored under
VB Code:
Application.ProductVersion
If you wish to retrieve just the build, use the following code:
VB Code:
Dim Version As New Version(Application.ProductVersion) Version.Build 'Gets the applications build number
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
You're right, sorry about that, musta tried it in the wrong project type :blush:.
Will it be the same as it is in a Windows App?
VB Code:
Dim ainfo As New AssemblyInfo() MessageBox.Show(String.Format("Version {0}", ainfo.Version), "Version", MessageBoxButtons.OK, MessageBoxIcon.Information)
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
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
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