473,386 Members | 1,673 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,386 software developers and data experts.

Controlling ProductVersion

Hello - In VB.NET, how do I control product version, and access it for
reporting on my splash form? This is a simple .exe solution with a project
built out of a few forms and modules, and contains a setup project.

My vbproj file contains ProductVersion = "7.10.3077" . When I report
Application.ProductVersion, its value is 1.0.1723.16260 so clearly that
comes from somewhere else. Anyway, I don't want either of these values.

I would like to set the product version to 1.1.0, and report 1.1.0.build# .
So I'm looking for advice on how to set the value, and how to access it at
runtime.

Thanks in advance -- Dick Bixler
Nov 21 '05 #1
2 6589
Checkout the values listed in your AssemblyInfo.vb file.

<Assembly: AssemblyVersion("1.0.*")>

"Richard Bixler" <ne******@earthlink.net> wrote in message
news:e9****************@TK2MSFTNGP15.phx.gbl...
Hello - In VB.NET, how do I control product version, and access it for
reporting on my splash form? This is a simple .exe solution with a project
built out of a few forms and modules, and contains a setup project.

My vbproj file contains ProductVersion = "7.10.3077" . When I report
Application.ProductVersion, its value is 1.0.1723.16260 so clearly that
comes from somewhere else. Anyway, I don't want either of these values.

I would like to set the product version to 1.1.0, and report 1.1.0.build# .. So I'm looking for advice on how to set the value, and how to access it at
runtime.

Thanks in advance -- Dick Bixler

Nov 21 '05 #2
Thanks. Here's what I did:

Imports System.Reflection
'Versioning is set in Scenery_Align\AssemblyInfo.vb
Dim myAssembly As [Assembly]
Dim myAssemblyName As AssemblyName
Dim myAssemblyVersion As String

myAssembly = [Assembly].GetExecutingAssembly()
myAssemblyName = myAssembly.GetName()
myAssemblyVersion = myAssemblyName.Version.ToString
Me.Label1.Text = myAssemblyVersion

Seems to work. Thanks again -- Dick Bixler

"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:eq**************@TK2MSFTNGP10.phx.gbl...
Checkout the values listed in your AssemblyInfo.vb file.

<Assembly: AssemblyVersion("1.0.*")>

"Richard Bixler" <ne******@earthlink.net> wrote in message
news:e9****************@TK2MSFTNGP15.phx.gbl...
Hello - In VB.NET, how do I control product version, and access it for
reporting on my splash form? This is a simple .exe solution with a
project
built out of a few forms and modules, and contains a setup project.

My vbproj file contains ProductVersion = "7.10.3077" . When I report
Application.ProductVersion, its value is 1.0.1723.16260 so clearly that
comes from somewhere else. Anyway, I don't want either of these values.

I would like to set the product version to 1.1.0, and report 1.1.0.build#

.
So I'm looking for advice on how to set the value, and how to access it
at
runtime.

Thanks in advance -- Dick Bixler


Nov 21 '05 #3

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

Similar topics

3
by: yadavindrian01 | last post by:
Hi everybody I am a student of computer engg. I have to make a project - controlling devices through computer using parallel port. I know necessary details of the parallel port. Please guide...
8
by: Andrey Mosienko | last post by:
We are using PostgreSQL about two years beginning from version 7.0. I have one question about starting postmaster: Is there way to detach it from the controlling terminal under FreeBSD? My...
6
by: Mike E | last post by:
How is this set in visual c++. I assumed it was in the AssemblyInfo.cpp file, but the changes are never picked up and Application::ProductVersion keeps coming back empty. Help is appreciated.
2
by: Matthew | last post by:
Is there an easy way to get the ProductVersion in a Module? Matthew
8
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
5
by: Aussie Rules | last post by:
Hi, How do I set the application productversion. I can see in the publish section where I can set it, but no matter what I set this to, the productversion is different Thanks
3
by: UJ | last post by:
Is there an equivalent to Application.ProductVersion for Websites?
1
by: Joachim Hofmann | last post by:
Hallo, - Woher wird diese Eigenschaft ermittelt? - Wenn ich eine Solution mit mehreren Projekten habe, müßte es dann der Eintrag in der Datei AssemblyInfo.vb sein, der da z.B. lautet...
0
by: Gopinath Guna | last post by:
I have in AssemblyInfo.cs file. When i tried printing "Application.ProductVersion", it shows "1.0.0.1", not the "1.00.0.1". Could you guys please help me in getting Application.ProducVersion returns...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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,...

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.