Iis6ServiceExtensionFile ClassMSBuild Extension Pack Help 4.0.12.0
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.

Inheritance Hierarchy

SystemObject
  Microsoft.Build.UtilitiesTask
    MSBuild.ExtensionPackBaseTask
      MSBuild.ExtensionPack.WebIis6ServiceExtensionFile

Namespace: MSBuild.ExtensionPack.Web
Assembly: MSBuild.ExtensionPack (in MSBuild.ExtensionPack.dll) Version: 4.0.0.0

The Iis6ServiceExtensionFile type exposes the following members.

Constructors

  NameDescription
Public methodIis6ServiceExtensionFile
Top
Methods

  NameDescription
Public methodDeleteFile
Public methodFileExists
Top
Properties

  NameDescription
Public propertyDeletable
Sets whether the file can be deleted from the Web Service Extension Restriction List.
Public propertyDescription
Sets the Description of the web service extension being added
Public propertyExists
Gets whether the service extension file exists. Output
Public propertyForce
Set to true to delete an existing extension of the same name. Default is false.
Public propertyGroupId
A unique text ID associated with one or more ISAPIs or CGIs required for enabling the group
Public propertyPath
Sets the Path to the web extension service file.
Public propertyPermission
Sets whether the extension is Allowed or Prohibited. Default is Allowed.
Top
Examples

<Project ToolsVersion="4.0" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        <TPath>$(MSBuildProjectDirectory)\..\MSBuild.ExtensionPack.tasks</TPath>
        <TPath Condition="Exists('$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks')">$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks</TPath>
    </PropertyGroup>
    <Import Project="$(TPath)"/>
    <Target Name="Default">
        <!-- Add an extension file -->
        <MSBuild.ExtensionPack.Web.Iis6ServiceExtensionFile TaskAction="Add" Path="C:\Demo1\MyExtensionFile.dll" Description="My Extension Service" Deletable="true" GroupID="myext01" Permission="Allowed"/>
        <!-- Delete an extension file -->
        <MSBuild.ExtensionPack.Web.Iis6ServiceExtensionFile TaskAction="Delete" Path="C:\Demo1\MyExtensionFile.dll"/>
    </Target>
</Project>
See Also

Reference