DeploymentItemAttribute Constructor (String, String)

Initializes a new instance of the DeploymentItemAttribute class. An object that is created with this constructor will be initialized with a path to a deployment item and an output directory.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Sub New ( _
    path As String, _
    outputDirectory As String _
)
public DeploymentItemAttribute(
    string path,
    string outputDirectory
)
public:
DeploymentItemAttribute(
    String^ path, 
    String^ outputDirectory
)
new : 
        path:string * 
        outputDirectory:string -> DeploymentItemAttribute
public function DeploymentItemAttribute(
    path : String, 
    outputDirectory : String
)

Parameters

  • path
    Type: System.String
    The relative or absolute path to the deployment item or directory to deploy.
  • outputDirectory
    Type: System.String
    The path to the output directory. This contains all items and directories identified by path. This directory will be relative to the directory that contains the deployed test assemblies.

Remarks

The relative path setting is found in the RelativePathRoot setting found in the .testsettings file.

.NET Framework Security

See Also

Reference

DeploymentItemAttribute Class

DeploymentItemAttribute Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Test Deployment