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
@@ -190,6 +194,15 @@ In the .NET Framework versions 4 and 4.5, property functions can be used to eval
190
194
|int BitwiseAnd(int first, int second)|Perform a bitwise `AND` on the first and second (first & second).|
191
195
|int BitwiseXor(int first, int second)|Perform a bitwise `XOR` on the first and second (first ^ second).|
192
196
|int BitwiseNot(int first)|Perform a bitwise `NOT` (~first).|
197
+
|bool IsOsPlatform(string platformString)|Specify whether the current OS platform is `platformString`. `platformString` must be a member of `OSPlatform`.|
198
+
|bool IsOSUnixLike|True if current OS is a Unix system.|
199
+
|string NormalizePath(params string[] path)|Gets the canonicalized full path of the provided path and ensures it contains the correct directory separator characters for the current operating system.|
200
+
|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.|
201
+
|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.|
202
+
|string GetPathOfFileAbove(string file, string startingDirectory)|Searches for a file based on the current build file's location, or based on `startingDirectory`, if specified.|
203
+
|GetDirectoryNameOfFileAbove(string startingDirectory, string fileName)|Locate a file in either the directory specified or a location in the directory structure above that directory.|
204
+
|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`.|
205
+
|string ValueOrDefault(string conditionValue, string defaultValue)|Return the string in parameter 'defaultValue' only if parameter 'conditionValue' is empty, else, return the value conditionValue.|
193
206
194
207
## Nested Property Functions
195
208
You can combine property functions to form more complex functions, as the following example shows.
0 commit comments