List of MSBuild built-in variables

msbuild

Solution

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

Problem

How can I get a list of built-in MSBuild variables? I need to know how to determine the current project's csproj name, and thought it might be useful to know what else I can find out in MSBuild.

Original source