Partager via


DeploymentItemAttribute Constructors

Definition

Overloads

DeploymentItemAttribute(String)

Initializes a new instance of the DeploymentItemAttribute class.

DeploymentItemAttribute(String, String)

Initializes a new instance of the DeploymentItemAttribute class

DeploymentItemAttribute(String)

Initializes a new instance of the DeploymentItemAttribute class.

public:
 DeploymentItemAttribute(System::String ^ path);
public DeploymentItemAttribute (string path);
new Microsoft.VisualStudio.TestTools.UnitTesting.DeploymentItemAttribute : string -> Microsoft.VisualStudio.TestTools.UnitTesting.DeploymentItemAttribute
Public Sub New (path As String)

Parameters

path
String

The file or directory to deploy. The path is relative to the build output directory. The item will be copied to the same directory as the deployed test assemblies.

Applies to

DeploymentItemAttribute(String, String)

Initializes a new instance of the DeploymentItemAttribute class

public:
 DeploymentItemAttribute(System::String ^ path, System::String ^ outputDirectory);
public DeploymentItemAttribute (string path, string outputDirectory);
new Microsoft.VisualStudio.TestTools.UnitTesting.DeploymentItemAttribute : string * string -> Microsoft.VisualStudio.TestTools.UnitTesting.DeploymentItemAttribute
Public Sub New (path As String, outputDirectory As String)

Parameters

path
String

The relative or absolute path to the file or directory to deploy. The path is relative to the build output directory. The item will be copied to the same directory as the deployed test assemblies.

outputDirectory
String

The path of the directory to which the items are to be copied. It can be either absolute or relative to the deployment directory. All files and directories identified by path will be copied to this directory.

Applies to