You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/msbuild/msbuild-reserved-and-well-known-properties.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -65,8 +65,8 @@ The table in this section shows the MSBuild predefined properties. The example c
65
65
|`MSBuildProjectFullPath`| Reserved | The absolute path and complete file name of the project file, including the file name extension; for example, *C:\MyCompany\MyProduct\MyApp.proj*. |`c:\Source\Repos\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj`|
66
66
|`MSBuildProjectName`| Reserved | The file name of the project file without the file name extension; for example, *MyApp*. |`ConsoleApp1`|
67
67
|`MSBuildRuntimeType`| Reserved | The type of the runtime that is currently executing. Introduced in MSBuild 15. Value may be undefined (prior to MSBuild 15), `Full` indicating that MSBuild is running on the desktop .NET Framework, `Core` indicating that MSBuild is running on .NET Core (for example in `dotnet build`), or `Mono` indicating that MSBuild is running on Mono. |`Full`|
68
-
|`MSBuildSemanticVersion`| Reserved | The full semver 2.0 version of MSBuild assemblies used to build the project. | 16.11.0-preview-21302-05+5e37cc992 |
69
68
|`MSBuildSDKsPath`| Well-known | The path MSBuild uses to find SDKs. |`C:\Program Files (x86)\Microsoft Visual Studio\2019\MSBuild\Sdks`|
69
+
|`MSBuildSemanticVersion`| Reserved | The full semver 2.0 version of MSBuild assemblies used to build the project. | 16.11.0-preview-21302-05+5e37cc992 |
70
70
|`MSBuildStartupDirectory`| Reserved | The absolute path of the folder where MSBuild is called. By using this property, you can build everything below a specific point in a project tree without creating *\<dirs>.proj* files in every directory. Instead, you have just one project—for example, *c:\traversal.proj*, as shown here:<br /><br /> `<Project ...> <ItemGroup> <ProjectFiles Include="$ (MSBuildStartupDirectory) **\*.csproj"/> </ItemGroup> <Target Name="build"> <MSBuild Projects="@(ProjectFiles)"/> </Target> </Project>`<br /><br /> To build at any point in the tree, type:<br /><br /> `msbuild c:\traversal.proj`<br /><br /> Do not include the final backslash on this property. |`c:\Source\Repos\ConsoleApp1`|
71
71
|`MSBuildThisFile`| Reserved | The file name and file extension portion of `MSBuildThisFileFullPath`. |`ConsoleApp1.csproj`|
72
72
|`MSBuildThisFileDirectory`| Reserved | The directory portion of `MSBuildThisFileFullPath`.<br /><br /> Include the final backslash in the path. |`c:\Source\Repos\ConsoleApp1\ConsoleApp1\`|
@@ -126,8 +126,8 @@ The table in this section shows the MSBuild predefined properties. The example c
126
126
|`MSBuildToolsPath32`| Well-known | The installation path of the 32-bit MSBuild version that's associated with the value of `MSBuildToolsVersion`.<br /><br /> Do not include the final backslash in the path.<br /><br /> This property cannot be overridden. |`C:\Program Files\Microsoft Visual Studio\2022\MSBuild\Current\Bin`|
127
127
|`MSBuildToolsPath64`| Well-known | The installation path of the 64-bit MSBuild version that's associated with the value of `MSBuildToolsVersion`.<br /><br /> Do not include the final backslash in the path.<br /><br /> This property cannot be overridden. |`C:\Program Files\Microsoft Visual Studio\2022\MSBuild\Current\Bin\amd64`|
128
128
|`MSBuildToolsVersion`| Reserved | The version of the MSBuild Toolset that is used to build the project.<br /><br /> Note: An MSBuild Toolset consists of tasks, targets, and tools that are used to build an application. The tools include compilers such as *csc.exe* and *vbc.exe*. For more information, see [Toolset (ToolsVersion)](../msbuild/msbuild-toolset-toolsversion.md), and [Standard and custom Toolset configurations](../msbuild/standard-and-custom-toolset-configurations.md). |`Current`|
129
-
|`MSBuildSemanticVersion`| Reserved | The full semver 2.0 version of MSBuild assemblies used to build the project. | 17.4.0-preview-22465-05+6033e4c95 |
130
129
|`MSBuildSDKsPath`| Well-known | The path MSBuild uses to find SDKs. |`C:\Program Files\Microsoft Visual Studio\2022\MSBuild\Sdks`|
130
+
|`MSBuildSemanticVersion`| Reserved | The full semver 2.0 version of MSBuild assemblies used to build the project. | 17.4.0-preview-22465-05+6033e4c95 |
131
131
|`MSBuildVersion`| Reserved | The version of MSBuild used to build the project. <br /><br/> This property can't be overridden, otherwise the error message `MSB4004 - The 'MSBuildVersion' property is reserved, and can not be modified.` is returned. | 17.4.0 |
132
132
|`MSBuildWarningsAsErrors`| Well-known | A list of warning codes to treat as errors. |`MSB1234;MSB5678`|
133
133
|`MSBuildWarningsAsMessages`| Well-known | A list of warning codes to treat as messages. |`MSB1234;MSB5678`|
0 commit comments