Results 1 to 9 of 9

Thread: BETA Version of app

  1. #1

    Thread Starter
    Hyperactive Member Cyb3rH4Xter's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    449

    BETA Version of app

    What's the best way to store that the app is beta?
    You can't enter letters in the assembly info version (a "b" would be great).
    So is a setting who is set to Beta = True the best? I don't want to hardcode it, I want it to be at one place in the program.

  2. #2
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: BETA Version of app

    not saying its the best way, but I have a My.Settings.ReleaseLevel value, that progress from "Alpha" to "Beta" then on the final release it is simple blank.
    kevin
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  3. #3

    Thread Starter
    Hyperactive Member Cyb3rH4Xter's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    449

    Re: BETA Version of app

    okay thx.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: BETA Version of app

    In the Solution Explorer, click the Show All Files button, expand the My Project node and then open the AssemblyInfo.vb file. At the bottom you will see the AssemblyVersion and AssemblyFileVersion attributes, which are the values you can set in the project properties. Below that, add another entry for the AssemblyInformationalVersion, e.g.
    vb.net Code:
    1. <Assembly: AssemblyVersion("1.0.0.0")>
    2. <Assembly: AssemblyFileVersion("1.0.0.0")>
    3. <Assembly: AssemblyInformationalVersion("1.0.0.0 beta")>
    Now, in code, the Application.ProductVersion property will return that informational version. If the informational version is not found then it will return the file version. If that's not found it will return the assembly version.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Hyperactive Member Cyb3rH4Xter's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    449

    Re: BETA Version of app

    oh thats great

  6. #6

    Thread Starter
    Hyperactive Member Cyb3rH4Xter's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    449

    Re: BETA Version of app

    How can I acess the AssemblyVersion now if I use the informationalversion?

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: BETA Version of app

    Blah, blah, blah read the documentation blah, blah blah. This is from the documentation for the AssemblyVersionAttribute:
    To get the name of an assembly you have loaded, call GetName on the assembly to get an AssemblyName, and then get the Version property.
    Assembly.GetEntryAssembly will get an Assembly object for your EXE.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: BETA Version of app

    Just tested and My.Application.Info.Version will give you the AssemblyVersion value regardless.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  9. #9

    Thread Starter
    Hyperactive Member Cyb3rH4Xter's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    449

    Re: BETA Version of app

    thx

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