skip to Main Content

Visual Studio Code – MSBuild: Update the C++ PreprocessorDefinitions with my custom target

I'm trying to create a custom MSBuild target to automatically fetching the SVN revision number into some define, say MY_VERSION. So, my target file (get-svn-info.targets): <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Target Name="GetSvnRevision" BeforeTargets="PrepareForBuild"> <Exec Command="svn info --show-item revision" ConsoleToMSBuild="true">…

VIEW QUESTION
Back To Top
Search