Class WebDeploySettings
Used within WebDeployTasks.
Inheritance
Implements
Inherited Members
Namespace: Nuke.WebDeploy
Assembly: Nuke.WebDeploy.dll
Syntax
[PublicAPI]
[Serializable]
public class WebDeploySettings : ToolSettings, ISettingsEntity
Properties
| Improve this Doc View SourceAppOfflineHtmlTemplate
A html string that is used for the content of the App_Offline.htm file. If not specified, a default message is shown.
Declaration
public virtual string AppOfflineHtmlTemplate { get; }
Property Value
Type | Description |
---|---|
System.String |
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
public virtual bool? EnableAppOfflineRule { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
EnableDoNotDeleteRule
Toggles enabling of the DoNotDelete rule
Declaration
public virtual bool? EnableDoNotDeleteRule { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Parameters
Additional web deploy sync parameters.
Declaration
public virtual IReadOnlyDictionary<string, string> Parameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<System.String, System.String> |
Password
The password used for the deployment via http basic authentication
Declaration
public virtual string Password { get; }
Property Value
Type | Description |
---|---|
System.String |
PublishUrl
The PublishUrl should include the site parameter, e.g.: https://appname.scm.azurewebsites.net:443/msdeploy.axd?site=appname
Declaration
public virtual string PublishUrl { get; }
Property Value
Type | Description |
---|---|
System.String |
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
public virtual int? RetryAttempts { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
RetryInterval
Delay in milliseconds between retry attempts.
Declaration
public virtual int? RetryInterval { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ShowWhatIf
If enabled, no actual operations are performed. The output is still printed to the console to display what would have happened.
Declaration
public virtual bool? ShowWhatIf { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
SiteName
The name of the site for web deploy.
Declaration
public virtual string SiteName { get; }
Property Value
Type | Description |
---|---|
System.String |
SourcePath
The source folder that should be synced to, e.g. the local publish folder.
Declaration
public virtual string SourcePath { get; }
Property Value
Type | Description |
---|---|
System.String |
Username
The username used for the deployment via http basic authentication
Declaration
public virtual string Username { get; }
Property Value
Type | Description |
---|---|
System.String |
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
public virtual bool? WrapAppOffline { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Methods
| Improve this Doc View SourceAssertValid()
Declaration
protected override void AssertValid()