MSBuild.ExtensionPack.Web Namespace

MSBuild Extension Pack

MSBuild.ExtensionPack.Web Namespace MSBuild Extension Pack Help 4.0.12.0

Overview

This namespace hosts tasks that interact with IIS7

Helpful Links

IIS
Classes

  Class Description
Public class Code example HttpWebRequest
Valid TaskActions are:

GetResponse (Required: Url Optional: ContentType, Timeout, SkipSslCertificateValidation, Retries, RetryInterval, UseIntegratedAuthentication, UserName, UserPassword Output: Response, Status)

Post (Required: Url Optional: ContentType, Timeout, RequestContent, SkipSslCertificateValidation, Retries, RetryInterval, UseIntegratedAuthentication, UserName, UserPassword Output: Response, Status)

Remote Execution Support: NA

Public class Code example Iis6AppPool
Valid TaskActions are:

Create (Required: Name Optional: Properties)

CheckExists (Required: Name Output: Exists)

Delete (Required: Name)

GetMetabasePropertyValue (Required: Name, MetabasePropertyNameOutput: MetabasePropertyValue)

Modify (Required: Name, Properties)

Recycle (Required: Name)

Start (Required: Name)

Stop (Required: Name)

Remote Execution Support: Yes. Please note that the machine you execute from must have IIS installed.

Public class Code example Iis6ServiceExtensionFile
Valid TaskActions are:

Add (Required: Path Optional: Deletable, Force Description, GroupId, Permission)

CheckExists (Required: Path Output: Exists)

Delete (Required: Path

Remote Execution Support: Yes. Please note that the machine you execute from must have IIS installed.

Public class Code example Iis6VirtualDirectory
Valid TaskActions are:

CheckExists (Required: Website Optional: Name

Create (Required: Website Optional: Name, Parent, RequireApplication, DirectoryType, AppPool, Properties)

Delete (Required: Website Optional: Name, Parent

Remote Execution Support: Yes. Please note that the machine you execute from must have IIS installed.

Public class Code example Iis6Website
Valid TaskActions are:

Create (Required: Name Optional: Force, Properties, Identifier OutPut: Identifier)

CheckExists (Required: Name Output: Exists)

Continue (Required: Name)

Delete (Required: Name)

GetMetabasePropertyValue (Required: Name, MetabasePropertyNameOutput: MetabasePropertyValue)

Start (Required: Name)

Stop (Required: Name)

Pause (Required: Name)

Remote Execution Support: Yes. Please note that the machine you execute from must have IIS installed.

Public class Code example Iis7Application
Valid TaskActions are:

CheckExists (Required: Website, Applications Output: Exists)

Delete (Required: Website, Applications)

Remote Execution Support: Yes

Public class Code example Iis7AppPool
Valid TaskActions are:

CheckExists (Required: Name Output: Exists)

Create (Required: Name Optional: Force, IdentityType, UseDefaultIdentity, PoolIdentity, IdentityPassword, ManagedRuntimeVersion, AutoStart, Enable32BitAppOnWin64, PipelineMode, QueueLength, IdleTimeout, PeriodicRestartPrivateMemory, PeriodicRestartTime, MaxProcesses, RecycleRequests, RecycleInterval, RecycleTimes, RapidFailProtection, LoadUserProfile)

Delete (Required: Name)

GetInfo (Required: Name)

Modify (Required: Name Optional: Force, ManagedRuntimeVersion, AutoStart, Enable32BitAppOnWin64, QueueLength, IdleTimeout, PeriodicRestartPrivateMemory, PeriodicRestartTime, MaxProcesses, RecycleRequests, RecycleInterval, RecycleTimes, RapidFailProtection, LoadUserProfile)

Recycle (Required: Name)

SetIdentity (Optional: UseDefaultIdentity, IdentityType, PoolIdentity, IdentityPassword)

SetPipelineMode (Optional: PipelineMode)

Start (Required: Name Optional: RetryCount)

Stop (Required: Name)

Remote Execution Support: Yes

Public class Code example Iis7Binding
Valid TaskActions are:

Add (Required: Name, BindingInformation or (CertificateHash and CertificateStoreName) Optional: BindingProtocol)

CheckExists (Required: Name, BindingInformation Optional: BindingProtocol Output: Exists, BindingProtocol

Modify (Required: Name, BindingInformation, PreviousBindingProtocol, PreviousBindingInformation)

Remove (Required: Name Optional: BindingProtocol)

Remote Execution Support: Yes

Public class Code example Iis7Website
Valid TaskActions are:

AddApplication (Required: Name, Applications Optional: AppPool, EnabledProtocols, AnonymousAuthentication, BasicAuthentication, DigestAuthentication, WindowsAuthentication, sslFlagsForce)

AddMimeType (Required: Name, MimeTypes)

AddResponseHeaders (Required: Name, HttpResponseHeaders)

AddVirtualDirectory (Required: Name, VirtualDirectories Optional: Force)

CheckExists (Required: Name Output: Exists)

CheckVirtualDirectoryExists (Required: Name, VirtualDirectories Output: Exists)

Create (Required: Name, Path, Port Optional: Identifier, Force, Applications, VirtualDirectories, AppPool, EnabledProtocols, LogExtFileFlags, LogDirectory, LogFormat, AnonymousAuthentication, BasicAuthentication, DigestAuthentication, WindowsAuthentication, ServerAutoStart, ConnectAsUser, ConnectAsUserPassword)

Delete (Required: Name)

DeleteVirtualDirectory (Required: Name, VirtualDirectories)

GetInfo (Required: Name Output: SiteInfo, SiteId)

ModifyPath (Required: Name, Path Output: SiteId)

ModifyLogDirectory (Required: Name, LogDirectory)

SetWindowsAuthenticationProviders (Required: Name, Providers Optional: UseKernelMode)

Start (Required: Name)

Stop (Required: Name)

Remote Execution Support: Yes

Public class Code example WebClient
Valid TaskActions are:

DownloadFile (Required: Url, FileName Optional:Proxy, BypassOnLocalOutput: Response)

OpenRead (Required: Url Optional: DisplayToConsole, Proxy, BypassOnLocalOutput: Data)

Remote Execution Support: NA