How do I set an incoming value to a new value in msbuild?
Lets say I have this
msbuild /t:package /p:revision=2.2
in my msbuild file I want to change the revision to another value in another variable. Let say I have:
$(Version)
I know want my Version value to set Revision value.
revision = Version
How?
Example You get revision 1.0.0.0 in but want to set revision to what you have in your version?
You can do this by using PropertyGroups and Conditions. Save this MsBuild markup as "test.proj".
From a command prompt run
msbuild.exe test.proj
Then run:
msbuild test.proj /p:Revision=1.0.0.0