Environment Module
This module contains functions which allow to read and write environment variables and build parameters
Types and nested modules
Type/Module | Description |
Functions and values
Function or value | Description |
Full Usage:
Environment.ProgramFiles
Returns: string
|
|
Full Usage:
Environment.ProgramFilesX86
Returns: string
|
The path of Program Files (x86)
It seems this covers all cases where
|
Full Usage:
Environment.SystemRoot
Returns: string
|
|
Full Usage:
Environment.clearEnvironVar name
Parameters:
string
-
The name of the environment variable
|
|
Full Usage:
Environment.environVar name
Parameters:
string
-
The environment variable name
Returns: string
|
|
Full Usage:
Environment.environVarAsBool varName
Parameters:
string
-
The name of the environment variable
Returns: bool
|
|
Full Usage:
Environment.environVarAsBoolOrDefault varName defaultValue
Parameters:
string
defaultValue : bool
-
The default value to return if no value was set
Returns: bool
|
Retrieves the environment variable with the given name or returns the default bool if no value was set
|
Full Usage:
Environment.environVarOrDefault name defaultValue
Parameters:
string
-
The name of the environment variable
defaultValue : string
-
The default value to return if no value was set
Returns: string
|
|
Full Usage:
Environment.environVarOrFail name
Parameters:
string
-
The name of the environment variable
Returns: string
|
|
Full Usage:
Environment.environVarOrNone name
Parameters:
string
-
The name of the environment variable
Returns: string option
|
|
Full Usage:
Environment.environVars ()
Parameters:
unit
Returns: (string * string) list
|
|
|
Contains the IO encoding which is given via build parameter "encoding" or the default encoding if no encoding was specified.
|
Full Usage:
Environment.getNewestTool possibleToolPaths
Parameters:
seq<'a>
Returns: 'a
|
|
Full Usage:
Environment.getNuGetPackagesCacheFolder ()
Parameters:
unit
Returns: string
|
|
Full Usage:
Environment.getTargetPlatformDir platformVersion
Parameters:
string
Returns: string
|
|
Full Usage:
Environment.hasEnvironVar name
Parameters:
string
-
The name of the environment variable
Returns: bool
Modifiers: inline |
|
Full Usage:
Environment.isDotNetCore
Returns: bool
|
|
Full Usage:
Environment.isLinux
Returns: bool
|
|
Full Usage:
Environment.isMacOS
Returns: bool
|
|
Full Usage:
Environment.isMono
Returns: bool
|
Determines if the current FAKE runner is being run via mono. With the FAKE 5 or above runner, this will always be false
|
Full Usage:
Environment.isUnix
Returns: bool
|
|
Full Usage:
Environment.isWindows
Returns: bool
|
|
Full Usage:
Environment.monoPath
Returns: string
|
|
|
Required sometimes to workaround mono crashes
see this link
|
Full Usage:
Environment.pathDirectories
Returns: seq<string>
|
|
Full Usage:
Environment.sdkBasePath
Returns: string
|
|
Full Usage:
Environment.setEnvironVar name value
Parameters:
string
-
The name of the environment variable to set
value : string
-
The value of the environment variable to set
|
|
Full Usage:
Environment.splitEnvironVar name
Parameters:
string
-
The name of the environment variable
Returns: string list
|
|