WebDirectoryScriptMap Class

MSBuild

Sets an application mapping for a filename extension on an existing web directory.


Namespace: MSBuild.Community.Tasks.IIS
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class WebDirectoryScriptMap
    Inherits WebBase
C#
public class WebDirectoryScriptMap : WebBase
C++
ref class WebDirectoryScriptMap : WebBase
J#
public class WebDirectoryScriptMap extends WebBase
JScript
public class WebDirectoryScriptMap extends WebBase

Example

Map the .axd extension to the lastest version of ASP.NET:

 Copy Code
            <WebDirectoryScriptMap VirtualDirectoryName="MyWeb" Extension=".axd" MapToAspNet="True" VerifyFileExists="False" />
            
Map GET requests to the .rss extension to a specific executable:
 Copy Code
            <WebDirectoryScriptMap VirtualDirectoryName="MyWeb" Extension=".rss" Verbs="GET" ExecutablePath="$(WINDIR)\Microsoft.Net\Framework\1.0.3705\aspnet_isapi.dll" />
            

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      MSBuild.Community.Tasks.IIS.WebBase
         MSBuild.Community.Tasks.IIS.WebDirectoryScriptMap

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

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.