Skip to content

Instantly share code, notes, and snippets.

@pckujawa
Created May 25, 2012 16:53
Show Gist options
  • Save pckujawa/2789170 to your computer and use it in GitHub Desktop.
Save pckujawa/2789170 to your computer and use it in GitHub Desktop.
msbuild target for printing reserved properties
<Project DefaultTargets="PrintReservedProperties" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="PrintReservedProperties">
<Message Text="MSBuildProjectDirectory $(MSBuildProjectDirectory)" />
<Message Text="MSBuildProjectFile $(MSBuildProjectFile)" />
<Message Text="MSBuildProjectExtension $(MSBuildProjectExtension)" />
<Message Text="MSBuildProjectFullPath $(MSBuildProjectFullPath)" />
<Message Text="MSBuildProjectName $(MSBuildProjectName)" />
<Message Text="MSBuildBinPath $(MSBuildBinPath)" />
<Message Text="MSBuildProjectDefaultTargets $(MSBuildProjectDefaultTargets)" />
<Message Text="MSBuildExtensionsPath $(MSBuildExtensionsPath)" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment