Conditional beta build

I would like to (somehow) pass a flag into my VS.NET 2008 solution build process to indicate that the build is a beta. I would then like to respond to this flag during compile time so that I can alter the user interface (e.g. append the word "BETA" at the end of the title bar, etc.).

At first I hoped that FinalBuilder could set a #define within my VS.NET 2008 project, but I can't seem to find an option for that. Am I overlooking something there?

Any other thoughts on how I could accomplish this goal?

Hi Mark,

One way would be to have certain build numbers represent beta version (eg. odd numbers are beta, even numbers are release).

Or you could use the Assembly Info Updater action to add extra details to the AssemblyInfo.cs file - which you then can query in your code to determine if it’s “BETA” or not.

hth.
.t8

Hi Mark

Something that is coming in 6.1 (very soon) is the ability to override some configuration settings, including conditional defines. This should make it possible to do what you want.

Thanks very much to both of you for your thoughts.

I hadn't considered using build numbers as a form of beta build flag - thanks for the idea. I may use that until v6.1 comes along with its conditional define feature.

Hi Mark,

FinalBuilder 6.1 has now been released, see here for more info: https://www.finalbuilder.com/forums.aspx?forumid=2&postid=7568&view=topic

Regards,
Paul.