views:

525

answers:

2

Hi,

I'm looking for a way to access all the Build properties defined while executing MSBuild. I have a configuration file. I want to modify the Properties in the configuration file and copy it to a new location. Is there a way to do it?

+1  A: 

If you run the build with /verbosity:detailed or /verbosity:diagnostic you will get very detailed output of all the properties that was used during your build process. However I suspect you want to change a config type file after/before you copy the builded files to another location? In that case there is several mechanismes to do that, what we have found to work pretty good, is the MSBuildCommunity tasks that can be found here on code plex

If you would like to see some samples of this I would be glad to post them

Rihan Meij
A: 

I don't know the answer to this, but the Detokenise class in the MSBuild Extensions can grab all the currently defined properties so I would suggest looking at that code.

Vaccano