Class WebDeploySettingsExtensions
Used within WebDeployTasks.
Inheritance
Inherited Members
Namespace: Nuke.WebDeploy
Assembly: Nuke.WebDeploy.dll
Syntax
[PublicAPI]
public static class WebDeploySettingsExtensions
Methods
| Improve this Doc View SourceAddParameter(WebDeploySettings, String, String)
Adds a new key-value-pair Parameters.
Additional web deploy sync parameters.
Declaration
[Pure]
public static WebDeploySettings AddParameter(this WebDeploySettings toolSettings, string parameterKey, string parameterValue)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.String | parameterKey | |
System.String | parameterValue |
Returns
Type | Description |
---|---|
WebDeploySettings |
ClearParameters(WebDeploySettings)
Clears Parameters.
Additional web deploy sync parameters.
Declaration
[Pure]
public static WebDeploySettings ClearParameters(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
DisableEnableAppOfflineRule(WebDeploySettings)
Disables EnableAppOfflineRule.
Toggles enabling of the AppOfflineRule. If enabled, WebDeploy will create a file called App_Offline.htm before copying the content and remove it afterwards. This makes IIS suspend the site during the deployment process and frees locked files.
Declaration
[Pure]
public static WebDeploySettings DisableEnableAppOfflineRule(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
DisableEnableDoNotDeleteRule(WebDeploySettings)
Disables EnableDoNotDeleteRule.
Toggles enabling of the DoNotDelete rule
Declaration
[Pure]
public static WebDeploySettings DisableEnableDoNotDeleteRule(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
DisableShowWhatIf(WebDeploySettings)
Disables ShowWhatIf.
If enabled, no actual operations are performed. The output is still printed to the console to display what would have happened.
Declaration
[Pure]
public static WebDeploySettings DisableShowWhatIf(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
DisableWrapAppOffline(WebDeploySettings)
Disables WrapAppOffline.
Azure Web Apps in IIS are case sensitive and only accept all-lowercase app_offline.htm files. If this is toggled, an appropriately named file is created on the destination before deployment and deleted afterwards.
Declaration
[Pure]
public static WebDeploySettings DisableWrapAppOffline(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
EnableEnableAppOfflineRule(WebDeploySettings)
Enables EnableAppOfflineRule.
Toggles enabling of the AppOfflineRule. If enabled, WebDeploy will create a file called App_Offline.htm before copying the content and remove it afterwards. This makes IIS suspend the site during the deployment process and frees locked files.
Declaration
[Pure]
public static WebDeploySettings EnableEnableAppOfflineRule(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
EnableEnableDoNotDeleteRule(WebDeploySettings)
Enables EnableDoNotDeleteRule.
Toggles enabling of the DoNotDelete rule
Declaration
[Pure]
public static WebDeploySettings EnableEnableDoNotDeleteRule(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
EnableShowWhatIf(WebDeploySettings)
Enables ShowWhatIf.
If enabled, no actual operations are performed. The output is still printed to the console to display what would have happened.
Declaration
[Pure]
public static WebDeploySettings EnableShowWhatIf(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
EnableWrapAppOffline(WebDeploySettings)
Enables WrapAppOffline.
Azure Web Apps in IIS are case sensitive and only accept all-lowercase app_offline.htm files. If this is toggled, an appropriately named file is created on the destination before deployment and deleted afterwards.
Declaration
[Pure]
public static WebDeploySettings EnableWrapAppOffline(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
RemoveParameter(WebDeploySettings, String)
Removes a key-value-pair from Parameters.
Additional web deploy sync parameters.
Declaration
[Pure]
public static WebDeploySettings RemoveParameter(this WebDeploySettings toolSettings, string parameterKey)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.String | parameterKey |
Returns
Type | Description |
---|---|
WebDeploySettings |
ResetAppOfflineHtmlTemplate(WebDeploySettings)
Resets AppOfflineHtmlTemplate.
A html string that is used for the content of the App_Offline.htm file. If not specified, a default message is shown.
Declaration
[Pure]
public static WebDeploySettings ResetAppOfflineHtmlTemplate(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ResetEnableAppOfflineRule(WebDeploySettings)
Resets EnableAppOfflineRule.
Toggles enabling of the AppOfflineRule. If enabled, WebDeploy will create a file called App_Offline.htm before copying the content and remove it afterwards. This makes IIS suspend the site during the deployment process and frees locked files.
Declaration
[Pure]
public static WebDeploySettings ResetEnableAppOfflineRule(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ResetEnableDoNotDeleteRule(WebDeploySettings)
Resets EnableDoNotDeleteRule.
Toggles enabling of the DoNotDelete rule
Declaration
[Pure]
public static WebDeploySettings ResetEnableDoNotDeleteRule(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ResetPassword(WebDeploySettings)
Resets Password.
The password used for the deployment via http basic authentication
Declaration
[Pure]
public static WebDeploySettings ResetPassword(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ResetPublishUrl(WebDeploySettings)
Resets PublishUrl.
The PublishUrl should include the site parameter, e.g.: https://appname.scm.azurewebsites.net:443/msdeploy.axd?site=appname
Declaration
[Pure]
public static WebDeploySettings ResetPublishUrl(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ResetRetryAttempts(WebDeploySettings)
Resets RetryAttempts.
Count of retry attempts to perform before giving up. This is useful when sites take a few moments to spin down and release locked files.
Declaration
[Pure]
public static WebDeploySettings ResetRetryAttempts(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ResetRetryInterval(WebDeploySettings)
Resets RetryInterval.
Delay in milliseconds between retry attempts.
Declaration
[Pure]
public static WebDeploySettings ResetRetryInterval(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ResetShowWhatIf(WebDeploySettings)
Resets ShowWhatIf.
If enabled, no actual operations are performed. The output is still printed to the console to display what would have happened.
Declaration
[Pure]
public static WebDeploySettings ResetShowWhatIf(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ResetSiteName(WebDeploySettings)
Resets SiteName.
The name of the site for web deploy.
Declaration
[Pure]
public static WebDeploySettings ResetSiteName(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ResetSourcePath(WebDeploySettings)
Resets SourcePath.
The source folder that should be synced to, e.g. the local publish folder.
Declaration
[Pure]
public static WebDeploySettings ResetSourcePath(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ResetUsername(WebDeploySettings)
Resets Username.
The username used for the deployment via http basic authentication
Declaration
[Pure]
public static WebDeploySettings ResetUsername(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ResetWrapAppOffline(WebDeploySettings)
Resets WrapAppOffline.
Azure Web Apps in IIS are case sensitive and only accept all-lowercase app_offline.htm files. If this is toggled, an appropriately named file is created on the destination before deployment and deleted afterwards.
Declaration
[Pure]
public static WebDeploySettings ResetWrapAppOffline(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetAppOfflineHtmlTemplate(WebDeploySettings, String)
Sets AppOfflineHtmlTemplate.
A html string that is used for the content of the App_Offline.htm file. If not specified, a default message is shown.
Declaration
[Pure]
public static WebDeploySettings SetAppOfflineHtmlTemplate(this WebDeploySettings toolSettings, string appOfflineHtmlTemplate)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.String | appOfflineHtmlTemplate |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetEnableAppOfflineRule(WebDeploySettings, Nullable<Boolean>)
Sets EnableAppOfflineRule.
Toggles enabling of the AppOfflineRule. If enabled, WebDeploy will create a file called App_Offline.htm before copying the content and remove it afterwards. This makes IIS suspend the site during the deployment process and frees locked files.
Declaration
[Pure]
public static WebDeploySettings SetEnableAppOfflineRule(this WebDeploySettings toolSettings, bool? enableAppOfflineRule)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.Nullable<System.Boolean> | enableAppOfflineRule |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetEnableDoNotDeleteRule(WebDeploySettings, Nullable<Boolean>)
Sets EnableDoNotDeleteRule.
Toggles enabling of the DoNotDelete rule
Declaration
[Pure]
public static WebDeploySettings SetEnableDoNotDeleteRule(this WebDeploySettings toolSettings, bool? enableDoNotDeleteRule)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.Nullable<System.Boolean> | enableDoNotDeleteRule |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetParameter(WebDeploySettings, String, String)
Sets a key-value-pair in Parameters.
Additional web deploy sync parameters.
Declaration
[Pure]
public static WebDeploySettings SetParameter(this WebDeploySettings toolSettings, string parameterKey, string parameterValue)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.String | parameterKey | |
System.String | parameterValue |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetParameters(WebDeploySettings, IDictionary<String, String>)
Sets Parameters to a new dictionary.
Additional web deploy sync parameters.
Declaration
[Pure]
public static WebDeploySettings SetParameters(this WebDeploySettings toolSettings, IDictionary<string, string> parameters)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.Collections.Generic.IDictionary<System.String, System.String> | parameters |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetPassword(WebDeploySettings, String)
Sets Password.
The password used for the deployment via http basic authentication
Declaration
[Pure]
public static WebDeploySettings SetPassword(this WebDeploySettings toolSettings, string password)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.String | password |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetPublishUrl(WebDeploySettings, String)
Sets PublishUrl.
The PublishUrl should include the site parameter, e.g.: https://appname.scm.azurewebsites.net:443/msdeploy.axd?site=appname
Declaration
[Pure]
public static WebDeploySettings SetPublishUrl(this WebDeploySettings toolSettings, string publishUrl)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.String | publishUrl |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetRetryAttempts(WebDeploySettings, Nullable<Int32>)
Sets RetryAttempts.
Count of retry attempts to perform before giving up. This is useful when sites take a few moments to spin down and release locked files.
Declaration
[Pure]
public static WebDeploySettings SetRetryAttempts(this WebDeploySettings toolSettings, int? retryAttempts)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.Nullable<System.Int32> | retryAttempts |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetRetryInterval(WebDeploySettings, Nullable<Int32>)
Sets RetryInterval.
Delay in milliseconds between retry attempts.
Declaration
[Pure]
public static WebDeploySettings SetRetryInterval(this WebDeploySettings toolSettings, int? retryInterval)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.Nullable<System.Int32> | retryInterval |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetShowWhatIf(WebDeploySettings, Nullable<Boolean>)
Sets ShowWhatIf.
If enabled, no actual operations are performed. The output is still printed to the console to display what would have happened.
Declaration
[Pure]
public static WebDeploySettings SetShowWhatIf(this WebDeploySettings toolSettings, bool? showWhatIf)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.Nullable<System.Boolean> | showWhatIf |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetSiteName(WebDeploySettings, String)
Sets SiteName.
The name of the site for web deploy.
Declaration
[Pure]
public static WebDeploySettings SetSiteName(this WebDeploySettings toolSettings, string siteName)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.String | siteName |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetSourcePath(WebDeploySettings, String)
Sets SourcePath.
The source folder that should be synced to, e.g. the local publish folder.
Declaration
[Pure]
public static WebDeploySettings SetSourcePath(this WebDeploySettings toolSettings, string sourcePath)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.String | sourcePath |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetUsername(WebDeploySettings, String)
Sets Username.
The username used for the deployment via http basic authentication
Declaration
[Pure]
public static WebDeploySettings SetUsername(this WebDeploySettings toolSettings, string username)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.String | username |
Returns
Type | Description |
---|---|
WebDeploySettings |
SetWrapAppOffline(WebDeploySettings, Nullable<Boolean>)
Sets WrapAppOffline.
Azure Web Apps in IIS are case sensitive and only accept all-lowercase app_offline.htm files. If this is toggled, an appropriately named file is created on the destination before deployment and deleted afterwards.
Declaration
[Pure]
public static WebDeploySettings SetWrapAppOffline(this WebDeploySettings toolSettings, bool? wrapAppOffline)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings | |
System.Nullable<System.Boolean> | wrapAppOffline |
Returns
Type | Description |
---|---|
WebDeploySettings |
ToggleEnableAppOfflineRule(WebDeploySettings)
Toggles EnableAppOfflineRule.
Toggles enabling of the AppOfflineRule. If enabled, WebDeploy will create a file called App_Offline.htm before copying the content and remove it afterwards. This makes IIS suspend the site during the deployment process and frees locked files.
Declaration
[Pure]
public static WebDeploySettings ToggleEnableAppOfflineRule(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ToggleEnableDoNotDeleteRule(WebDeploySettings)
Toggles EnableDoNotDeleteRule.
Toggles enabling of the DoNotDelete rule
Declaration
[Pure]
public static WebDeploySettings ToggleEnableDoNotDeleteRule(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ToggleShowWhatIf(WebDeploySettings)
Toggles ShowWhatIf.
If enabled, no actual operations are performed. The output is still printed to the console to display what would have happened.
Declaration
[Pure]
public static WebDeploySettings ToggleShowWhatIf(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |
ToggleWrapAppOffline(WebDeploySettings)
Toggles WrapAppOffline.
Azure Web Apps in IIS are case sensitive and only accept all-lowercase app_offline.htm files. If this is toggled, an appropriately named file is created on the destination before deployment and deleted afterwards.
Declaration
[Pure]
public static WebDeploySettings ToggleWrapAppOffline(this WebDeploySettings toolSettings)
Parameters
Type | Name | Description |
---|---|---|
WebDeploySettings | toolSettings |
Returns
Type | Description |
---|---|
WebDeploySettings |