VCProjectConfigurationProperties.RemoteCommand (Propiedad)

Si Attach es false y Remote especifica la depuración remota, el archivo ejecutable se inicia al invocar el depurador.Si Attach es true y Remote especifica la depuración remota, la propiedad RemoteCommand especifica el proceso al que debe asociarse la depuración al invocar el depurador.

Espacio de nombres:  Microsoft.VisualStudio.VCProject
Ensamblado:  Microsoft.VisualStudio.VCProject (en Microsoft.VisualStudio.VCProject.dll)

Sintaxis

'Declaración
Property RemoteCommand As String
string RemoteCommand { get; set; }
property String^ RemoteCommand {
    String^ get ();
    void set (String^ value);
}
abstract RemoteCommand : string with get, set
function get RemoteCommand () : String
function set RemoteCommand (value : String)

Valor de propiedad

Tipo: System.String
El proceso al que el proceso de depuración debe asociarse.

Comentarios

Vea Cómo: Compilar el código de ejemplo de extensibilidad del modelo de proyecto para obtener información sobre cómo compilar y ejecutar este ejemplo.

Ejemplos

[Visual Basic]

El código de ejemplo siguiente se modifica la propiedad de RemoteCommand en el entorno de desarrollo:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim mystring As String
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCDebugSettings
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.DebugSettings
        tool.Remote = RemoteDebuggerType.DbgRemote
        tool.RemoteCommand = "test.exe"
    End Sub
End Module

Seguridad de .NET Framework

Vea también

Referencia

VCProjectConfigurationProperties Interfaz

Microsoft.VisualStudio.VCProject (Espacio de nombres)