views:

146

answers:

1

Hello everyone,

We could use msbuild to build project from command line. My question is about -p option. This option is used to specify property key/value pairs. My question is, besides the key/value pair assigned by -p option from command line, any other already existing defined options? If there are such existing defined options, where are the existing options defined and how such key/value pairs are used during build process?

For example, command like msbuild foo.sln /p:Configuration=Debug, besides option Configuration (whose value is Debug), are there any already defined existing options?

thanks in advance, George

+2  A: 

See MSBuild Reserved Properties and How To: Use Environment Variables in a Build, since these are kinda properties too.

Anton Gogolev
@Anton, I take some time to learn from your recomended documents. Two more questions, 1. how to list all the current property key/value pairs? 2. (about your recommended 2nd document) my question is about how to use property, but how to use environment variable in msbuild. 3. Could you recommend me some dedicated books for msbuild or similar topics?
George2