InstallAspNet Class

MSBuild

Installs and register script mappings for ASP.NET


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

Syntax

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

Example

Install the latest version of ASP.NET on the server:

 Copy Code
 <InstallAspNet /> 
Install the latest version of ASP.NET on the server, but do not update script maps:
 Copy Code
 <InstallAspNet ApplyScriptMaps="Never" /> 
Install the script maps for ASP.NET 2.0 on a web directory on the default website:
 Copy Code
 <InstallAspNet Path="MyApplication" Version="Version20" /> 
Install the script maps for ASP.NET 1.1 on a web directory on a non-default website:
 Copy Code
 <InstallAspNet Path="MyApplication" Version="W3SVC/3/Root/Version11" /> 
Install client side script only for the latest version:
 Copy Code
 <InstallAspNet ClientScriptsOnly="True" /> 

Remarks

Uses the aspnet_regiis.exe tool included with the .NET Framework.

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      Microsoft.Build.Utilities.ToolTask
         MSBuild.Community.Tasks.AspNet.InstallAspNet

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.