Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7446503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:19:56+00:00 2026-05-29T12:19:56+00:00

There has been confusion a few times with my testers somehow getting old builds

  • 0

There has been confusion a few times with my testers somehow getting old builds of my project to test, and then reporting on fixed bugs.

How can I embed a build ID into my project? Current time of build, or simply starting at 1 and incrementing every time the program is built would work. Then in the game UI, the build number will be printed so there is no ambiguity as to which version of the software the tester is using.

I’ve googled around for an answer and asked on IRC, but everything I’ve found seems to pertain only to C#.

Any ideas? On Unix, I would just modify the Makefile, and have some oneliner insert the value I need into the source.

Right now my best idea is to figure out how the VS build process works, then write a python script to run first and edit the source to update the build number.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T12:19:57+00:00Added an answer on May 29, 2026 at 12:19 pm

    Ok, here is my quick and dirty and ugly solution.

    I have a buildid.txt file, this is a text file with only an integer value for buildid.

    I have increment-buildid.bat

    @echo off
    for /f %%a in (buildid.txt) do (
      echo %%a
      set /a num=%%a
    )
    echo %num%
    set /a num += 1
    echo %num% > buildid.txt
    echo int buildid = %num%; > buildid.c
    

    To muck about with the Visual Studio build process, right click solution in solution explorer, -> properties -> Build Events -> Pre-Build Events.

    Now that I know how do do this, I can put in my zip + scp script in post build events for instant upload! (not sure of that’s blocking or not, will have to test it)

    edit: the upload is indeed blocking. that is, debugging does not start until the upload has finished. I just have another batch to upload using scp as I feel the need to. Double click it, and it is sent to remote server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There has always been a confusion with preg_match in php. I have a string
There has been a lot of confusion and a set of corresponding set of
OK, I know there has been a lot of confusion over the new AAA
There has been a lot of talk around iPad-Apps / Approval / Store-related Questions.
There has been similar questions asked (and answered), but never really together, and I
There has been a flaw on my design for most of .xml files where
I'am aware there has been a generic question about a best IDE in C++
In the Zend Framework Quickstart , there has been a change from models that
Has there been any work done on any hypothetical hardware + OS architecture or
Has there been discussion around how to resolve equivalent openids? Meaning, I personally have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.