|
-
Oct 16th, 2010, 04:30 PM
#1
Thread Starter
Hyperactive Member
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.
-
Oct 16th, 2010, 04:58 PM
#2
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
-
Oct 16th, 2010, 05:01 PM
#3
Thread Starter
Hyperactive Member
-
Oct 16th, 2010, 09:56 PM
#4
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:
<Assembly: AssemblyVersion("1.0.0.0")> <Assembly: AssemblyFileVersion("1.0.0.0")> <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.
-
Oct 17th, 2010, 01:51 AM
#5
Thread Starter
Hyperactive Member
Re: BETA Version of app
oh thats great
-
Oct 21st, 2010, 01:38 PM
#6
Thread Starter
Hyperactive Member
Re: BETA Version of app
How can I acess the AssemblyVersion now if I use the informationalversion?
-
Oct 21st, 2010, 06:10 PM
#7
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.
-
Oct 21st, 2010, 08:02 PM
#8
Re: BETA Version of app
Just tested and My.Application.Info.Version will give you the AssemblyVersion value regardless.
-
Oct 22nd, 2010, 06:47 PM
#9
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|