VCWebDeploymentTool.AdditionalFiles Property

Gets or sets the semicolon-separated list of additional files to be deployed.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
Property AdditionalFiles As String
'Usage
Dim instance As VCWebDeploymentTool 
Dim value As String 

value = instance.AdditionalFiles

instance.AdditionalFiles = value
string AdditionalFiles { get; set; }
property String^ AdditionalFiles {
    String^ get ();
    void set (String^ value);
}
function get AdditionalFiles () : String 
function set AdditionalFiles (value : String)

Property Value

Type: System.String
The semicolon-separated list of additional files to be deployed.

Remarks

The primary project output and files in the project marked as deployable content do not need to be listed here. You can use the DeploymentContent property exposed by the VCFile to mark files as deployable content.

Files beneath the project directory that are marked as deployable content or as additional files are copied to a location relative to the virtual directory directly corresponding to their location relative to the project directory. Files not in the project directory or a subdirectory under the project are placed directly in the virtual directory.

Examples

See How to: Compile Example Code for Project Model Extensibility for information on how to compile and run this sample.

The following example uses the AdditionalFiles property in the integrated development environment (IDe):

' 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.AdditionalFiles = "newFile.txt"
      MsgBox(wdt.AdditionalFiles())
   End Sub
End Module

.NET Framework Security

See Also

Reference

VCWebDeploymentTool Interface

VCWebDeploymentTool Members

Microsoft.VisualStudio.VCProjectEngine Namespace