List of MSBuild built-in variables

msbuild

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.

Best Answer

Comprehensive lists from Microsoft Docs (New Docs):

Comprehensive lists from MSDN (Legacy Docs):

Other useful lists:

First link shows the MSBuild property for project name:

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