Hello All,
I've been using the subversion Visual Studio Plugin to access code that is stored on a Windows Server. The system itself is working just fine but I was wondering if there is any way to access the version number of the code used in a project as a constant that can be accessed by the code at compile time?
To be more specific, I'm using AVR Studio 5 (which uses the Visual Studio Shell) to write programs in C for a microcontroller. The environment uses GCC as the compiler, and recently, I have become interested in finding a way to access the current version number of the code in my application. I'm wondering if there is a way for me to create a constant variable that holds the current subversion build number of the project. When our code is run on the microcontroller, we can print the build number of the firmware on an LCD screen to keep track of which version of the firmware it's running.
This may sound like a long-shot but just thought I would ask in case anyone has any ideas.
Thanks!
Jason O


Reply With Quote

Bookmarks