views:

273

answers:

2

I'm using MSBUILD macros in my .csproj files for AfterBuild events mainly just to copy files. I'm doing this by example, so the only ones I know of are the ones I've seen in use: SolutionDir, ProjectDir, OutputPath, and Configuration. Is there a list or good info page online anywhere so I can read up on what's available, what point in the build they're available, customization, etc? I know that when using post build events in the project properties Build Events tab, the macros and their corresponding values are listed in a dialog...does any such gui exist for MSBUILD? Currently I'm just manually editing the .csproj files.

+3  A: 

There's the MSDN MSBuild Reference.

The landing page has an overview of the different areas, though I must admit I can't find anything on the AfterBuild events at the moment. Even the Targets page itself is a little short of information in this area.

ChrisF
Thanks google. I was kinda hoping for a little bit of discussion to give me some background and maybe a pointer or two before I read the whole book's worth of documentation online.
Rich
Fair enough...documentation is horrendous in this area. Hopefully there's a book on Amazon with better and more complete documentation. Thx
Rich
+2  A: 

These are called Properties, not macros. See:

Reserved Properties

Common project properties

Ankit