Skip to content

Commit bc7c713

Browse files
committed
Correct list of property functions
1 parent 57341c9 commit bc7c713

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

docs/msbuild/property-functions.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -204,31 +204,29 @@ Here is a list of MSBuild property functions:
204204
|`string CheckFeatureAvailability(string featureName)`| Returns the feature name as a string if and only if the specified feature is supported in this version of MSBuild. |
205205
|`string ConvertToBase64(string toEncode)`|Returns the string after converting all bytes to base 64 (alphanumeric characters plus `+` and `/`), ending in one or two `=`.|
206206
|`string ConvertFromBase64(string toDecode)`|Returns the string after converting from base 64 (alphanumeric characters plus `+` and `/`), ending in one or two `=`.|
207-
|`string CurrentMSBuildConfigurationFile()`|Gets the path to the configuration file used by this instance of MSBuild.|
208-
|`string CurrentMSBuildExePath()` |Gets the path to the executable file for this instance of MSBuild. This path might not be the current running process. For example, if running inside Visual Studio or another host process, the returned path will point to the version of MSBuild found to be associated with the current environment.|
209-
|`string CurrentMSBuildToolsDirectory()`| Gets the full path to the MSBuild tools directory for the current instance of MSBuild. |
210207
|`double Divide(double a, double b)`|Divide two doubles.|
211208
|`long Divide(long a, long b)`|Divide two longs.|
212209
|`bool DoesTaskHostExist(string runtime, string architecture)`|Returns whether a task host is currently installed for the specified runtime and architecture values.|
213210
|`string Escape(string unescaped)`|Escape the string according to MSBuild escaping rules.|
214211
|`string EnsureTrailingSlash(string path)`|If the given path doesn't have a trailing slash then add one. If the path is an empty string, does not modify it.|
215212
|`string GetCurrentToolsDirectory()`| Get the current MSBuild tools directory. |
216-
|`string GetToolsDirectory32()` | Gets the directory where Arm64 versions of the MSBuild tools are located. |
213+
|`GetMSBuildExtensionsPath()`| Gets the MSBuild extensions path. When running *MSBuild.exe*, this is usually the MSBuild executable folder. When running in Visual Studio, this is the MSBuild subfolder under the Visual Studio installation folder. |
214+
|`string GetMSBuildSDKsPath()` | Gets the directory where SDKs are expected, for the current MSBuild instance.|
215+
|`string GetProgramFiles32()` | Gets the filesystem root folder where 32-bit software packages are typically installed. For example, `C:\Program Files (x86)`. |
217216
|`string GetToolsDirectory32()` | Gets the directory where 32-bit versions of the MSBuild tools are located. |
218217
|`string GetToolsDirectory64()` | Gets the directory where 64-bit versions of the MSBuild tools are located. |
219218
|`string GetDirectoryNameOfFileAbove(string startingDirectory, string fileName)`|Locate and return the directory of a file in either the directory specified or a location in the directory structure above that directory.|
220219
|`string GetPathOfFileAbove(string file, string startingDirectory)`|Searches for and returns the full path to a file in the directory structure at and above the current build file's location, or based on `startingDirectory`, if specified.|
221220
|`object GetRegistryValue(string keyName, string valueName, object defaultValue)`|Get the value of the registry key and value.|
222221
|`object GetRegistryValueFromView(string keyName, string valueName, object defaultValue, params object[] views)`|Gets system registry data given the registry key, value, and one or more ordered registry views.|
222+
|`string GetVsInstallRoot()`|Gets the full path to the root of the Visual Studio installation folder associated with the current instance of MSBuild.|
223223
|`bool IsOsPlatform(string platformString)`|Specify whether the current OS platform is `platformString`. `platformString` must be a member of <xref:System.Runtime.InteropServices.OSPlatform>.|
224224
|`bool IsOsBsdLike()`|True if the current OS is a BSD-style Unix system.|
225225
|`bool IsOSUnixLike()`|True if current OS is a Unix system.|
226226
|`int LeftShift(int operand, int count)`| Shift left by `count` bits.|
227227
|`string MakeRelative(string basePath, string path)`|Makes `path` relative to `basePath`. `basePath` must be an absolute directory. If `path` cannot be made relative, it is returned verbatim. Similar to `Uri.MakeRelativeUri`.|
228228
|`double Modulo(double a, double b)`|Modulo two doubles.|
229229
|`long Modulo(long a, long b)`|Modulo two longs.|
230-
|`string MSBuildExtensionsPath()`| Gets the MSBuild extensions path. When running *MSBuild.exe*, this is usually the MSBuild executable folder. When running in Visual Studio, this is the MSBuild subfolder under the Visual Studio installation folder. |
231-
|`string MSBuildSDKsPath()` | Gets the directory where SDKs are expected, for the current MSBuild instance.|
232230
|`double Multiply(double a, double b)`|Multiply two doubles.|
233231
|`long Multiply(long a, long b)`|Multiply two longs.|
234232
|`string NormalizeDirectory(params string[] path)`|Gets the canonicalized full path of the provided directory and ensures it contains the correct directory separator characters for the current operating system while ensuring it has a trailing slash.|
@@ -241,7 +239,6 @@ Here is a list of MSBuild property functions:
241239
|`long Subtract(long a, long b)`|Subtract two longs.|
242240
|`string Unescape(string escaped)`|Unescape the string according to MSBuild escaping rules.|
243241
|`string ValueOrDefault(string conditionValue, string defaultValue)`|Returns the string in parameter `defaultValue` only if parameter `conditionValue` is empty, else, return the value `conditionValue`.|
244-
|`string VisualStudioInstallRootDirectory()`|Gets the full path to the root of the Visual Studio installation folder associated with the current instance of MSBuild.|
245242

246243
## Nested property functions
247244

0 commit comments

Comments
 (0)