Note: This API documentation is for FAKE version 4. The migration API documentation can be found
here. The API documentation for the new fake 5 modules can be found
here
ConfigurationHelper
Contains functions which allow to read and write config files.
Functions and values
Function or value | Description | ||
applyXslOnConfig xsl fileName
Signature: xsl:string -> fileName:string -> unit
|
Applies a Xsl Stylesheet to a config file and writes it back. Parameters
Sample
|
||
readConfig(fileName)
Signature: fileName:string -> XmlDocument
|
Reads a config file into an XmlDocument. Parameters
|
||
updateApplicationSetting(...)
Signature: fileName:string -> settingName:string -> value:string -> unit
|
Reads a config file from the given file name, replaces the Application Setting (as opposed to AppSetting) value and writes it back. Parameters
Sample
|
||
updateAppSetting key value fileName
Signature: key:string -> value:string -> fileName:string -> unit
|
Reads a config file from the given file name, replaces the app setting value and writes it back. Parameters
Sample
|
||
updateConfig(...)
Signature: xpath:string -> attribute:string -> value:string -> config:XmlDocument -> XmlDocument
|
Reads a config file from the given file name, replaces an attribute using the given xPath and writes it back. Parameters
|
||
updateConfigSetting(...)
Signature: fileName:string -> xpath:string -> attribute:string -> value:string -> unit
|
Reads a config file from the given file name, replaces an attribute using the given xPath and writes it back. Parameters
|
||
updateConnectionString(...)
Signature: connectionStringKey:string -> value:string -> fileName:string -> unit
|
Reads a config file from the given file name, replaces the connection string value and writes it back. Parameters
|
||
writeConfig fileName config
Signature: fileName:string -> config:XmlDocument -> unit
|
Writes an XmlDocument to a config file. Parameters
|