Utils Module
Types and nested modules
| Type/Module | Description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Functions and values
| Function or value |
Description
|
Full Usage:
x ++ y
Parameters:
'a option
y : 'a option
Returns: 'a option
Modifiers: inline Type parameters: 'a |
|
Full Usage:
CleanDir path
Parameters:
string
|
Cleans a directory by deleting it and recreating it.
|
|
|
|
|
Full Usage:
FindAllFiles (folder, pattern)
Parameters:
string
pattern : string
Returns: FileInfo[]
|
Gets all files with the given pattern, skipping directories whose name starts with a dot (e.g. .git, .vs, .localhistory) since these are not expected to contain relevant project files and can be large or contain unrelated backup/history data (see issue #3250). The directories that are links are skipped too, as they may lead out of the folder.
|
Full Usage:
GetHomeDirectory ()
Parameters:
unit
Returns: string
|
|
Full Usage:
ProgramFiles
Returns: string
|
The path of the "Program Files" folder - might be x64 on x64 machine
|
Full Usage:
ProgramFilesX86
Returns: string
|
The path of Program Files (x86) It seems this covers all cases where PROCESSOR\_ARCHITECTURE may misreport and the case where the other variable PROCESSOR\_ARCHITEW6432 can be null
|
Full Usage:
RunInLockedAccessMode (lockedFolder, lockedAction)
Parameters:
string
lockedAction : unit -> bool
|
|
Full Usage:
SystemRoot
Returns: string
|
The system root environment variable. Typically "C:\Windows"
|
|
|
Full Usage:
acceptJson
Returns: string
|
|
Full Usage:
acceptXml
Returns: string
|
|
Full Usage:
askYesNo question
Parameters:
string
Returns: bool
|
If the guard is true then a [Y]es / [N]o question will be ask. Until the user pressed y or n.
|
Full Usage:
autoAnswer
Returns: bool option
|
|
|
|
|
|
Full Usage:
dirSeparator
Returns: string
|
|
|
|
Full Usage:
endsWith text x
Parameters:
string
x : ^a
Returns: bool
Modifiers: inline Type parameters: ^a (requires (member EndsWith : ^a * Microsoft.FSharp.Core.string -> Microsoft.FSharp.Core.bool)) |
|
Full Usage:
extractZipToDirectory zipFileName directoryName
Parameters:
string
directoryName : string
|
|
Full Usage:
fixDatesInArchive fileName
Parameters:
string
|
|
|
|
Full Usage:
getDirectoryInfoForLocalNuGetFeed pathInfo alternativeProjectRoot root
Parameters:
PathReference
alternativeProjectRoot : string option
root : string
Returns: DirectoryInfo
|
|
|
|
Full Usage:
getSha512File filePath
Parameters:
string
Returns: string
|
|
|
|
|
Whether the file or directory is a symbolic link or a junction, unlike the other reparse points such as a OneDrive or deduplicated file, which have no LinkTarget; a reparse point whose target cannot be read, e.g. when its access is denied, is taken for a link
|
Full Usage:
isLinux
Returns: bool
|
Determines if the current system is a Linux system
|
Full Usage:
isMacOS
Returns: bool
|
Determines if the current system is a MacOs system
|
Full Usage:
isMatchingOperatingSystem operatingSystemFilter
Parameters:
string option
Returns: bool
|
|
Full Usage:
isMatchingPlatform operatingSystemFilter
Parameters:
string option
Returns: bool
|
|
Full Usage:
isNotNull x
Parameters:
'a
Returns: bool
Modifiers: inline Type parameters: 'a |
|
Full Usage:
isUnix
Returns: bool
|
Determines if the current system is an Unix system
|
Full Usage:
isWindows
Returns: bool
|
Determines if the current system is a Windows system
|
Full Usage:
normalizeHomeDirectory path
Parameters:
string
Returns: string
Modifiers: inline |
|
Full Usage:
normalizeLineEndings text
Parameters:
string
Returns: string
|
|
|
|
Full Usage:
normalizePath path
Parameters:
string
Returns: string
Modifiers: inline |
|
Full Usage:
notNullOrEmpty
Returns: string -> bool
|
|
|
|
Full Usage:
readAnswer ()
Parameters:
unit
Returns: string
|
|
Full Usage:
removeComment text
Parameters:
string
Returns: string
|
|
|
|
Full Usage:
rethrowf f inner fmt
Parameters:
string * 'a -> 'b
inner : 'a
fmt : StringFormat<'c, 'd>
Returns: 'c
Type parameters: 'a, 'b, 'c, 'd (requires :> System.Exception) |
|
Full Usage:
runDotnet workingDir arguments
Parameters:
string
arguments : string
|
|
Full Usage:
saveFile fileName contents
Parameters:
string
contents : string
Returns: Result<unit, DomainMessage>
|
|
Full Usage:
saveNormalizedXml fileName doc
Parameters:
string
doc : XmlDocument
Returns: Result<unit, DomainMessage>
|
|
Full Usage:
sndOf3 (arg1, v, arg1)
Parameters:
'a
v : 'b
arg2 : 'c
Returns: 'b
Type parameters: 'a, 'b, 'c |
|
Full Usage:
thirdOf3 (arg1, arg1, v)
Parameters:
'a
arg1 : 'b
v : 'c
Returns: 'c
Type parameters: 'a, 'b, 'c |
|
Full Usage:
toLower str
Parameters:
^a
Returns: string
Modifiers: inline Type parameters: ^a (requires (member ToLower : ^a -> Microsoft.FSharp.Core.string)) |
|
Full Usage:
tryGet key this
Parameters:
^k
this : ^a
Returns: 'v option
Modifiers: inline Type parameters: ^k, ^a, 'v (requires (member TryGetValue : ^a * ^k * Microsoft.FSharp.Core.byref<'v> -> Microsoft.FSharp.Core.bool)) |
|
Full Usage:
windowsPath path
Parameters:
string
Returns: string
Modifiers: inline |
|
Type extensions
| Type extension |
Description
|
Full Usage:
this.AddLine
Parameters:
string
|
Extended Type:
|
Full Usage:
this.AppendLinef
Parameters:
StringFormat<'a, StringBuilder>
Returns: 'a
Type parameters: 'a |
Paket