NAntContrib Help Task Reference <deliisdir> | v0.93-nightly-2015-02-12 |
[This is preliminary documentation and subject to change.]
Deletes a virtual directory from a given web site hosted on Internet Information Server.
Attribute | Type | Description | Required |
---|---|---|---|
vdirname | string | Name of the IIS virtual directory. | True |
failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False |
if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False |
iisserver | string | The IIS server, which can be specified using the format [host]:[port] . The default is localhost:80 . |
False |
unless | bool | Opposite of if . If false then the task will be executed; otherwise, skipped. The default is false. |
False |
verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |
website | string | The website on the IIS server. | False |
Delete a virtual directory named Temp
from the web site running on port 80
of the local machine. If more than one web site is running on port 80
, take the web site bound to the hostname localhost
if existent or bound to no hostname otherwise.
<deliisdir vdirname="Temp" />
Delete a virtual directory named Temp
from the website running on port 81
of machine MyHost
.
<deliisdir iisserver="MyHost:81" vdirname="Temp" />