Export (0) Print
Expand All
Expand Minimize

AdditionalFiles Property

Visual Studio .NET 2003

The semicolon-separated list of additional files to be deployed.

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

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 object 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.

Example

The following sample code uses the AdditionalFiles 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.AdditionalFiles = "newFile.txt"
      MsgBox(wdt.AdditionalFiles())
   End Sub
End Module

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

See Also

DeploymentContent Property | PrimaryOutput Property

Applies To: VCWebDeploymentTool Object

Show:
© 2015 Microsoft