473,394 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Accessing ProductBuild at runtime

Tim
I would like to display version and build in the Help>About menu for my
users during the beta-testing phase. When VisualStudio publishes the
application, it knows this information, even though I have not updated
the AssemblyInfo file; it still reads

<Assembly: AssemblyVersion("1.0,0,0")>

What object is the Publish wizard accessing to get this info?

Thanks
Tim
Oct 24 '07 #1
2 975
On Oct 24, 1:34 pm, Tim <a...@anon.comwrote:
I would like to display version and build in the Help>About menu for my
users during the beta-testing phase. When VisualStudio publishes the
application, it knows this information, even though I have not updated
the AssemblyInfo file; it still reads

<Assembly: AssemblyVersion("1.0,0,0")>

What object is the Publish wizard accessing to get this info?

Thanks
Tim
In your main executable you can do something like:

Dim v As Version = Assembly.GetExecutingAssembly().GetName().Version

HTH,

--
Tom Shelton


Oct 24 '07 #2
On Oct 24, 1:34 pm, Tim <a...@anon.comwrote:
I would like to display version and build in the Help>About menu for my
users during the beta-testing phase. When VisualStudio publishes the
application, it knows this information, even though I have not updated
the AssemblyInfo file; it still reads

<Assembly: AssemblyVersion("1.0,0,0")>

What object is the Publish wizard accessing to get this info?

Thanks
Tim
Oh... I should also mention the whole My thing. You can also use:

My.Application.Info.Version

--
Tom Shelton

Oct 24 '07 #3

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

Similar topics

0
by: Svenn-Ivar Svendsen | last post by:
I'm implementing a windows application with generic support for scripting, and I'm using the microsoft script control (msscript). For vbscript/jscript I'm happy, but with python I got problems...
2
by: wan2tri | last post by:
hello, good day to all of you, hi, im am new in .net , how can i access two or more object remotely , because currently im only accessing one object, windows services is the host, i have a...
6
by: Alfred B. Thordarson | last post by:
I have a problem accessing a DLL using C#. I'm using C/FRONT with Navision's CFRONT.DLL, which contains the method: DBL_S32* DBL_NextKey(DBL_HTABLE hTable, DBL_S32* Key); typedef signed long...
3
by: AdamM | last post by:
Hi all, When I run my VbScript, I get the error: "ActiveX component can't create object: 'getobject'. Error 800A01AD". Any ideas what I did wrong? Here's my VBScript: dim o set...
2
by: Mike M | last post by:
Hello, I created a simple C# library assembly that exposes general facilities I would like to use in my ASP.NET web applications. If I added the assembly into the bin directory of my asp.net...
3
by: Jeff | last post by:
Hey asp.net 2.0 In the source I posted below, there is a GridView (look at the bottom of the script): <asp:GridView ID="gvwOnline" runat="server"> </asp:GridView> I'm trying to assign a...
1
by: zumbo | last post by:
I'm accessing MSOutlook via Microsoft.Office.Interop.Outlook. It works fine if I add a reference to either version 11 (Outlook 2003) or version 12 (Outlook 2007) of the interop assembly to my...
0
by: sachins5 | last post by:
Hi everyone, I am facing a problem here... my build was working fine till yesterday and then out of the blue every debug operation resulted in An unhandled exception of type occured in the...
2
by: anujzcool | last post by:
Is there any way of accessing and modifying configuration properties at runtime.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.