C# Class csscript.Settings

Settings is an class that holds CS-Script application settings.
Afficher le fichier Open project: oleg-shilo/cs-script Class Usage Examples

Private Properties

Свойство Type Description
InitDefaultRefAssemblies string

Méthodes publiques

Méthode Description
AddSearchDir ( string dir ) : void

Add search directory to the search (probing) path Settings.SearchDirs. For example if Settings.SearchDirs = "c:\scripts" then after call Settings.AddSearchDir("c:\temp") Settings.SearchDirs is "c:\scripts;c:\temp"

ExpandCleanupShellCommand ( ) : string

Returns value of the CleanupShellCommand (with expanding environment variables).

ExpandDefaultRefAssemblies ( ) : string

Returns value of the DefaultRefAssemblies (with expanding environment variables).

ExpandUseAlternativeCompiler ( ) : string

Returns value of the UseAlternativeCompiler (with expanding environment variables).

ExpandUsePostProcessor ( ) : string

Returns value of the UsePostProcessor (with expanding environment variables).

Load ( string fileName ) : Settings

Loads CS-Script application settings from a file. Default settings object is returned if it cannot be loaded from the file.

Load ( string fileName, bool createAlways ) : Settings

Loads CS-Script application settings from a file.

Save ( string fileName ) : void

Saves CS-Script application settings to a file (.dat).

Private Methods

Méthode Description
InitDefaultRefAssemblies ( ) : string

Method Details

AddSearchDir() public méthode

Add search directory to the search (probing) path Settings.SearchDirs. For example if Settings.SearchDirs = "c:\scripts" then after call Settings.AddSearchDir("c:\temp") Settings.SearchDirs is "c:\scripts;c:\temp"
public AddSearchDir ( string dir ) : void
dir string Directory path.
Résultat void

ExpandCleanupShellCommand() public méthode

Returns value of the CleanupShellCommand (with expanding environment variables).
public ExpandCleanupShellCommand ( ) : string
Résultat string

ExpandDefaultRefAssemblies() public méthode

Returns value of the DefaultRefAssemblies (with expanding environment variables).
public ExpandDefaultRefAssemblies ( ) : string
Résultat string

ExpandUseAlternativeCompiler() public méthode

Returns value of the UseAlternativeCompiler (with expanding environment variables).
public ExpandUseAlternativeCompiler ( ) : string
Résultat string

ExpandUsePostProcessor() public méthode

Returns value of the UsePostProcessor (with expanding environment variables).
public ExpandUsePostProcessor ( ) : string
Résultat string

Load() public static méthode

Loads CS-Script application settings from a file. Default settings object is returned if it cannot be loaded from the file.
public static Load ( string fileName ) : Settings
fileName string File name of the XML file
Résultat Settings

Load() public static méthode

Loads CS-Script application settings from a file.
public static Load ( string fileName, bool createAlways ) : Settings
fileName string File name of the XML file
createAlways bool Create and return default settings object if it cannot be loaded from the file.
Résultat Settings

Save() public méthode

Saves CS-Script application settings to a file (.dat).
public Save ( string fileName ) : void
fileName string File name of the .dat file
Résultat void