Debugging properties in msbuild

Posted on Mon 21 November 2011 in Technology • 1 min read

1
<p>One liner, we could just use

Message task.

Where to dump the variables/properties?

The Project

task defines an interesting entrypoint called InitialTargets, it is

run before actually building the project (defined in DefaultTargets

attribute). Modify the csproj file to something like:

1
12  3  4  5  6  7  

\](http://schemas.microsoft.com/developer/msbuild/2003”>);
  \
  \
    \
  \
\

That will dump AssemblySearchPaths before your actual project is built.