List of MSBuild built-in variables

These properties can also be defined by 3rd-party tools so to get the complete list I just use (in a C++ project for example): Properties -> Configuration Properties -> General -> then on the Output or Intermediate Directory drop down choose Edit... and you should see a list of all defined properties.


http://msdn.microsoft.com/en-us/library/c02as0cs(loband).aspx


This seems like a pretty thorough list: Common macros for MSBuild commands and properties


Comprehensive lists from Microsoft Docs (New Docs):

  • Common macros for MSBuild commands and properties
  • MSBuild reference for .NET SDK projects

Comprehensive lists from MSDN (Legacy Docs):

  • MSBuild reserved properties
  • Common MSBuild properties
  • Macros for Build Commands and Properties

Other useful lists:

  • Well-known item metadata
  • MSBuild special characters

First link shows the MSBuild property for project name:

MSBuildProjectName The file name of the project file without the file name extension

Tags:

Msbuild