Results 1 to 6 of 6

Thread: Application Version

  1. #1

    Thread Starter
    Addicted Member Dmyze's Avatar
    Join Date
    Mar 2002
    Location
    Seattle
    Posts
    160

    Application Version

    Ok, this must be a dumb question but I can't find where you set the application version on my VB.NET Project.

    I have tried right clicking on my project and clicking on Properties. That brings up a window called '[My project] Property Pages" Under "Common Properties" I only have 5 Options: General, Build, Imports, Reference Path, and Designer Defaults. I read one online tutorial that showed Version on this list, but I do not see it.

    What am I doing wrong?

    When I call a Application.ProductVersion I get 1.0.853.13092
    Whe I create a System.Version object and do a oVer.ToString I get 0.0

    This VB.NET Project should be ver 4.0 as 3.0 was written in VB6
    -Daryl
    "Two More Rolls of Duct tape, and the world is mine!"
    VB.NET Guru

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    I believe when you create a new project in Visual Studio, there will be an AssemblyInfo.vb xml looking file. i beleive you set that stuff in there.. One of those things I can be sure on as i dont use Microsofts IDE to write .NET apps.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Addicted Member Dmyze's Avatar
    Join Date
    Mar 2002
    Location
    Seattle
    Posts
    160

    That worked

    Ahh.. That worked.

    Now when I do Application.ProductVersion it works fine, how do I connectect the System.Version object to it? I still get version 0.0 from this:

    Dim oVer As New System.Version()

    'lblVer.Text = "Ver: " & Application.ProductVersion
    lblVer.Text = "Ver: " & oVer.ToString
    -Daryl
    "Two More Rolls of Duct tape, and the world is mine!"
    VB.NET Guru

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    it looks like System.Version is for setting the application version in code

    System.Version(major,minor,revision)


    I think..I couldnt really find much explanation info on its usage over Application.ProductVersion
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5

    Thread Starter
    Addicted Member Dmyze's Avatar
    Join Date
    Mar 2002
    Location
    Seattle
    Posts
    160

    I got it

    Ok, I see now


    This is how you do it:

    Dim oVer As New System.Version(Application.ProductVersion)
    -Daryl
    "Two More Rolls of Duct tape, and the world is mine!"
    VB.NET Guru

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    oh.. ok ..coolness
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width