|
-
Oct 18th, 2004, 06:28 PM
#1
Thread Starter
Hyperactive Member
Build Version?
Can I get the Build version of my app? Same as in VB6 I'd do App.Revision ...
Thanks
Gary
-
Oct 23rd, 2004, 09:16 AM
#2
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
I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)
-
Oct 23rd, 2004, 09:22 AM
#3
Thread Starter
Hyperactive Member
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
-
Oct 23rd, 2004, 08:38 PM
#4
You're right, sorry about that, musta tried it in the wrong project type .
I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)
-
Oct 23rd, 2004, 09:02 PM
#5
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)
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 24th, 2004, 04:09 AM
#6
Thread Starter
Hyperactive Member
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 
Thanks anyway
-
Oct 24th, 2004, 07:41 PM
#7
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
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 25th, 2004, 01:39 AM
#8
Thread Starter
Hyperactive Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|