How to programmatically list all properties defined while executing MSBuild?
Asked Answered
T

1

12

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?

Thrasonical answered 15/5, 2009 at 9:10 Comment(1)
Are you talking about MSBuild $(prop) properties or elements within your custom XML configuration file?Ayn
P
6

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

Piste answered 15/5, 2009 at 9:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.