title: How do I dump a list of imported property sheets from MSBuild
body: <p>I am constructing a hierarchy of property sheets (many that are conditionally included according to Platform and Configuration) and I am attempting to write a set of targets that can help diagnose any errors that may sneak in.</p>
  
  <p>What I would like is a list of property sheets that have been included.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;ImportGroup Condition="$(Configuration.Contains('Debug'))"&gt;
    &lt;Import Project="ps.cpp.config.debug.props"/&gt;
  &lt;/ImportGroup&gt;
  &lt;ImportGroup Condition="$(Configuration.Contains('Release'))"&gt;
    &lt;Import Project="ps.cpp.config.release.props"/&gt;
  &lt;/ImportGroup&gt;
  
  &lt;ImportGroup Condition="'$(Platform)' == 'x64'"&gt;
    &lt;Import Project="ps.cpp.plat.x64.props"/&gt;
  &lt;/ImportGroup&gt;
  &lt;ImportGroup Condition="'$(Platform)' == 'Win32'"&gt;
    &lt;Import Project="ps.cpp.plat.win32.props"/&gt;
  &lt;/ImportGroup&gt;
  </code></pre>
  
  <p>And a target like this:</p>
  
  <pre><code>&lt;Target Name="DumpPropertySheets"&gt;
    &lt;!-- This doesn't work! --&gt;
    &lt;!-- &lt;Message Text="%(Import.Project)"/&gt; --&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>Which should result in console output like this when built with <code>msbuild test.vcxproj /t:DumpPropertySheets /p:Platform=x64 /p:Configuration:Debug</code></p>
  
  <pre><code>DumpPropertySheets:
    ps.cpp.config.debug.props
    ps.cpp.plat.x64.props
  </code></pre>