Version Numbering

M

Miro

Sorry for all the posts today. Just not been a good day.

I cant seem to figure out version numbering.

I click on the MyProject and set up the Major, Minor, MajorRevision,
MinorRevision as 1,2,3,4 respectivly.

But

Debug.WriteLine(My.Application.Info.Version.Major.ToString)
Debug.WriteLine(My.Application.Info.Version.Minor.ToString)
Debug.WriteLine(My.Application.Info.Version.MajorRevision.ToString)
Debug.WriteLine(My.Application.Info.Version.MinorRevision.ToString)

does not return the proper values.
Its as if its grabbing the values from somehwere else.

Im basically trying to throw some versions in a label to display them but
its not grabbing the version from the myporject settings. So where do I get
/ how do I get the settings i setup in there?

Anyideas ?


Miro
 
H

Hoop

Sorry for all the posts today. Just not been a good day.

I cant seem to figure out version numbering.

I click on the MyProject and set up the Major, Minor, MajorRevision,
MinorRevision as 1,2,3,4 respectivly.

But

Debug.WriteLine(My.Application.Info.Version.Major.ToString)
Debug.WriteLine(My.Application.Info.Version.Minor.ToString)
Debug.WriteLine(My.Application.Info.Version.MajorRevision.ToString)
Debug.WriteLine(My.Application.Info.Version.MinorRevision.ToString)

does not return the proper values.
Its as if its grabbing the values from somehwere else.

Im basically trying to throw some versions in a label to display them but
its not grabbing the version from the myporject settings. So where do I get
/ how do I get the settings i setup in there?

Anyideas ?

Miro

Hi Miro,
Is that done by selecting Project/Properties/Assembly Information..
and enter the assembly version numbers?
Jeff
 
M

Miro

No,

I go to my properties and then click on the "Publish Tab", and then there is
a Publish Version in the bottom.
Those dont seem to do anything but the "Publish now" executables.

Miro
 
H

Hoop

No,

I go to my properties and then click on the "Publish Tab", and then there is
a Publish Version in the bottom.
Those dont seem to do anything but the "Publish now" executables.

Miro







- Show quoted text -

Hi,
I have a VB app were in the aboutbox I do this,

lblVersion.Text = "Version " & My.Application.Info.Version.Major _
& "." &
My.Application.Info.Version.Minor _
& "." &
My.Application.Info.Version.Revision

And I set those values like this,
right click on the project name in solution explorer, select
properties from the pop-up menu.
On the Application tab select Assembly Information.. and set the
version via the
Assembly Version.
And that works.
Jeff
 
M

Miro

Thanks,

I was adjusting the "Publish" version and I thougth that was the one used
everywhere.

Miro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top