Reserved Properties

MSBuild provides the following reserved properties:
* '''MSBuildProjectDirectory''' — The absolute path of the directory where the project file is located, for example, *C:\MyCompany\MyProduct*
* '''MSBuildProjectFilename''' — The complete file name of the project file, including the file name extension, for example, *MyApp.proj*
* '''MSBuildProjectExtension''' — The file name extension of the project file, including the period, for example, .proj
* '''MSBuildProjectFullPath''' — The absolute path and complete file name of the project file, for example, *C:\MyCompany\MyProduct\MyApp.proj*
* '''MSBuildProjectName''' — The file name of the project file without the file name extension, for example, *MyApp*
* '''MSBuildBinPath''' — The absolute path of the directory where the MSBuild binaries that are currently being used are located, for example, C:\Windows\Microsoft.Net\Framework\v2.0.31230.00. This property is useful if you need to refer to files in the MSBuild directory.
* '''MSBuildProjectDefaultTargets''' — The DefaultTargets of the current project.
* '''MSBuildExtensionsPath''' — The path to the MSBuild folder under the current Program Files folder. Vendors can install their tasks and targets in this location or below, and use this property to find them.
Microsoft Communities