Creates a new web directory on a local or remote machine with IIS installed. The default is to create the new web directory on the local machine. The physical path is required to already exist on the target machine. If connecting to a remote machine, you can specify the
Namespace: MSBuild.Community.Tasks.IIS
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)
Syntax
Example
Create a new web directory on the local machine.
Copy Code | |
---|---|
<WebDirectoryCreate VirtualDirectoryName="MyVirDir" VirtualDirectoryPhysicalPath="C:\Inetpub\MyWebDir" /> |
Inheritance Hierarchy
System.Object
Microsoft.Build.Utilities.Task
MSBuild.Community.Tasks.IIS.WebBase
MSBuild.Community.Tasks.IIS.WebDirectoryCreate
Microsoft.Build.Utilities.Task
MSBuild.Community.Tasks.IIS.WebBase
MSBuild.Community.Tasks.IIS.WebDirectoryCreate
Thread Safety
Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
See Also
Documentation version 1.0.0.0.