svn - Visual Studio with SubWCRev auto-build versioning problem -


itemprop = "text">

people,

I am using VS2010 and together to sync the build version of my project trying to use my SubWCRev Sbwarjn repository is doing all it correctly, but I have my head can not get around the one thing my template file contains this:

 < code> #define MAJOR_VERSION 2 #define MINOR_VERSION 2 #define MICRO_VERSION 0 #define BUILD_VERSION $ WCMODS $ WCREV $ + 1: $ WCREV $$ #define QUOTE_ (x) #x #define quotation (x) QUOTE_ (A. S) #define BUILD_VERSION_STRING quotes (MAJOR_VERSION.MINOR_VERSION.MICRO_VERSION.BUILD_VERSION)   

Then your application .RC file I have:

  FILEVERSION MAJOR_VERSION , MINOR_VERSION, MICRO_VERSION, BUILD_VERSION ProductVersion MAJOR_VERSION, MINOR_VERSION, MICRO_VERSION, BUILD_VERSION FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L FILEFLAGS 0x0L #else #endif FILEOS 0x4L FILETYPE 0x1L FILESUBTYPE 0x0L starting block "StringFileInfo" blocks "080004e4" bEGIN VALUE, "FileVersion", BUILD_VERSION_STRING vALUE, "ProductVersion", BUILD_VERSION_STRING END END block "VarFileInfo" BEGIN value "translation", 0x800, 1252 END END   

as you can probably work, I build version Up to 1 I am trying to copy if the modified code to build Warsi when I will check that match Subversion revision number in a release EXE and code. The problem is that BUILD_VERSION x + 1 or x + 0, then as "2.2.0.227 + 1" appears in BUILD_VERSION_STRING which is to be expanded is not quite what I intended

Does anyone with little experience with this know a way to achieve my goal? Thanks in advance

  #define BUILD_VERSION $ WCMODS $ WCREV + 1 $: $ WCREV $ $ < / Code>   

Comments