Iis6ServiceExtensionFile Class | MSBuild 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
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
Name | Description | |
---|---|---|
Iis6ServiceExtensionFile |
Methods
Name | Description | |
---|---|---|
DeleteFile | ||
FileExists |
Properties
Name | Description | |
---|---|---|
Deletable |
Sets whether the file can be deleted from the Web Service Extension Restriction List.
| |
Description |
Sets the Description of the web service extension being added
| |
Exists |
Gets whether the service extension file exists. Output
| |
Force |
Set to true to delete an existing extension of the same name. Default is false.
| |
GroupId |
A unique text ID associated with one or more ISAPIs or CGIs required for enabling the group
| |
Path |
Sets the Path to the web extension service file.
| |
Permission |
Sets whether the extension is Allowed or Prohibited. Default is Allowed.
|
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