473,803 Members | 3,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.NET VS 2005 Version Number in Application

I have been making changes to my Windows Application and in the
Project/Properties the Publish Version shows the following:

Major: 1
Minor: 0
Build: 0
Revision: 45

I would like to show this information in the "About Screen" and I have:
My.Application. Info.Version
but this shows
Build: 0
Major: 1
MajorRevision: 0
Minor: 0
MinorRevision: 0
Revision: 0

(this was taken at a break point and displayed in the Immediate Window)

How can I display in my application the information regarding the correct
Major, Minor, Build, and Revision?

Thanks in advance

Jan 31 '07 #1
3 1911
t
Same as VS2003...

Assembly * _assembly;
_assembly = Assembly::GetEx ecutingAssembly ();
_assembly->ToString(); // contains the version

"Zim Babwe" <zi******@doyou reallythinkthis isreal.comwrote in message
news:uk******** *****@TK2MSFTNG P05.phx.gbl...
>I have been making changes to my Windows Application and in the
Project/Properties the Publish Version shows the following:

Major: 1
Minor: 0
Build: 0
Revision: 45

I would like to show this information in the "About Screen" and I have:
My.Application. Info.Version
but this shows
Build: 0
Major: 1
MajorRevision: 0
Minor: 0
MinorRevision: 0
Revision: 0

(this was taken at a break point and displayed in the Immediate Window)

How can I display in my application the information regarding the correct
Major, Minor, Build, and Revision?

Thanks in advance

Jan 31 '07 #2
This doesn't look like VB to me. Can you explain it a little better?

In my application I did a messagebox.show (My.Application .Info.Version)

and it gave me the 6 lines of output described below.

Thank you.
"t" <.@..wrote in message news:eR******** *****@TK2MSFTNG P06.phx.gbl...
Same as VS2003...

Assembly * _assembly;
_assembly = Assembly::GetEx ecutingAssembly ();
_assembly->ToString(); // contains the version

"Zim Babwe" <zi******@doyou reallythinkthis isreal.comwrote in message
news:uk******** *****@TK2MSFTNG P05.phx.gbl...
>>I have been making changes to my Windows Application and in the
Project/Properties the Publish Version shows the following:

Major: 1
Minor: 0
Build: 0
Revision: 45

I would like to show this information in the "About Screen" and I have:
My.Application .Info.Version
but this shows
Build: 0
Major: 1
MajorRevisio n: 0
Minor: 0
MinorRevisio n: 0
Revision: 0

(this was taken at a break point and displayed in the Immediate Window)

How can I display in my application the information regarding the correct
Major, Minor, Build, and Revision?

Thanks in advance


Jan 31 '07 #3
t
The code is C++. (I didn't see mention of a specific language in the
original post).
At runtime, you need to use reflection to pull the build information from
your
application's assembly manifest. I don't know the VB syntax for that, look
up
reflection in your help. The names should be the same in VB, try searching
help
for the GetExecutingAss embly function.

-- Tom

"Zim Babwe" <zi******@doyou reallythinkthis isreal.comwrote in message
news:ud******** ******@TK2MSFTN GP06.phx.gbl...
This doesn't look like VB to me. Can you explain it a little better?

In my application I did a messagebox.show (My.Application .Info.Version)

and it gave me the 6 lines of output described below.

Thank you.
"t" <.@..wrote in message news:eR******** *****@TK2MSFTNG P06.phx.gbl...
>Same as VS2003...

Assembly * _assembly;
_assembly = Assembly::GetEx ecutingAssembly ();
_assembly->ToString(); // contains the version

"Zim Babwe" <zi******@doyou reallythinkthis isreal.comwrote in message
news:uk******* ******@TK2MSFTN GP05.phx.gbl...
>>>I have been making changes to my Windows Application and in the
Project/Properties the Publish Version shows the following:

Major: 1
Minor: 0
Build: 0
Revision: 45

I would like to show this information in the "About Screen" and I have:
My.Applicatio n.Info.Version
but this shows
Build: 0
Major: 1
MajorRevision : 0
Minor: 0
MinorRevision : 0
Revision: 0

(this was taken at a break point and displayed in the Immediate Window)

How can I display in my application the information regarding the
correct Major, Minor, Build, and Revision?

Thanks in advance



Feb 3 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1660
by: Jeff | last post by:
Hi, The following is a representative comment from the ACT! User Forum regarding their newest version, 2005. "I didn't say the product was fast enough... I suspect most of those issues are related to .Net and if so, won't be able to be fixed till the version after MS releases .Net V2"
6
2142
by: sathyashrayan | last post by:
Following are the selected thread from the date:30-jan-2005 to 31-jan-2005. I did not use any name because of the subject is important. You can get the original thread by typing the subject "string" in google comp.lang.c archives.Hope this helps.Hope I am not bothering any one. am I? =================================Start=========================== subject: Return to Start of Line? Question: I'd like printf, the next printf, to return...
16
2095
by: Kent | last post by:
We have created several Assemblies that we add to the GAC on our web servers. In an ASP.NET app in VS2003, Adding a reference to strong named GAC'd Assembly meant that the web app would use whatever version was in the GAC. Now in an ASP.NET app in VS 2005, adding a reference to a GAC'd assembly actually adds a version specific reference to the web.config. That means that we would have to change the assembly reference in every single...
2
4957
by: Richard Collette | last post by:
Hi, I have a service, that runs perfectly when executed outside of the web service environment. When called as a web service I get the exception listed below sporadically. A call to the web method may succeed one time and not another. I cannot find any reason why it would work one time and not another. The exception occurs every two or three calls to the web method. The service utilizes a COM component provided by PeopleSoft...
5
5121
by: vul | last post by:
In VB6 there is Auto Increment check box in Project Properties, which allow you have a new version every time you compile the project. Is there any easy way to have this feature in VB 2005? Some of my blocks of code check and compare versions of EXE and DLLs located on the local workstation and the server. So it's very important for me to have an incremented number in case the project was rebuilt. It can be done manually, of course, but I...
4
1554
by: Poldie | last post by:
I'm using Visual Studio 2005 SP1 on a Win2K SP4 system. VS is set up to use "web development settings ". I use VB. If I create a new web application project, then close the project and exit VS I can see many files, including a .sln and a .vbproj file. I can double click on the .vbproj file to load it, or I can load VS and from within VS open the .sln. But if I double click on the .sln from windows explorer I get the error message:
0
9566
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10555
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10317
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10300
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9127
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7607
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2974
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.