Export (0) Print
Expand All
Expand Minimize

ApplicationMappings Property

Visual Studio .NET 2003

The semicolon-separated list of file extensions to be associated with the primary project output.

[Visual Basic .NET]
Public Property ApplicationMappings() As String
[Visual Basic 6]
Property Get ApplicationMappings() As String
Property Let ApplicationMappings( _
   ByVal NewValue As String _
HRESULT __stdcall get_ApplicationMappings(
   /* [out, retval] */ BSTR* retVal
HRESULT __stdcall put_ApplicationMappings(
   /* [in] */ BSTR NewValue
public string ApplicationMappings {get; set;}
[JScript .NET]
public function get ApplicationMappings() : String
public function set ApplicationMappings(
   NewValue : String


Each item in the list must include only the period and the extension.

This property should only be set when the primary project output is an Internet Server Application Programming Interface (ISAPI) extension.


The following sample code uses the ApplicationMappings property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1

    Sub Main()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim wdt As VCWebDeploymentTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        wdt = cfg.Tools("VCWebDeploymentTool")
        wdt.ApplicationMappings = "*.srf;*.dll"
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

PrimaryOutput Property

Applies To: VCWebDeploymentTool Object

© 2015 Microsoft