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/property-functions.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,31 +204,29 @@ Here is a list of MSBuild property functions:
204
204
|`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. |
205
205
|`string ConvertToBase64(string toEncode)`|Returns the string after converting all bytes to base 64 (alphanumeric characters plus `+` and `/`), ending in one or two `=`.|
206
206
|`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. |
210
207
|`double Divide(double a, double b)`|Divide two doubles.|
211
208
|`long Divide(long a, long b)`|Divide two longs.|
212
209
|`bool DoesTaskHostExist(string runtime, string architecture)`|Returns whether a task host is currently installed for the specified runtime and architecture values.|
213
210
|`string Escape(string unescaped)`|Escape the string according to MSBuild escaping rules.|
214
211
|`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.|
215
212
|`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)`. |
217
216
|`string GetToolsDirectory32()`| Gets the directory where 32-bit versions of the MSBuild tools are located. |
218
217
|`string GetToolsDirectory64()`| Gets the directory where 64-bit versions of the MSBuild tools are located. |
219
218
|`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.|
220
219
|`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.|
221
220
|`object GetRegistryValue(string keyName, string valueName, object defaultValue)`|Get the value of the registry key and value.|
222
221
|`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.|
223
223
|`bool IsOsPlatform(string platformString)`|Specify whether the current OS platform is `platformString`. `platformString` must be a member of <xref:System.Runtime.InteropServices.OSPlatform>.|
224
224
|`bool IsOsBsdLike()`|True if the current OS is a BSD-style Unix system.|
225
225
|`bool IsOSUnixLike()`|True if current OS is a Unix system.|
226
226
|`int LeftShift(int operand, int count)`| Shift left by `count` bits.|
227
227
|`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`.|
228
228
|`double Modulo(double a, double b)`|Modulo two doubles.|
229
229
|`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.|
232
230
|`double Multiply(double a, double b)`|Multiply two doubles.|
233
231
|`long Multiply(long a, long b)`|Multiply two longs.|
234
232
|`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:
241
239
|`long Subtract(long a, long b)`|Subtract two longs.|
242
240
|`string Unescape(string escaped)`|Unescape the string according to MSBuild escaping rules.|
243
241
|`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.|
0 commit comments