Partager via


Exec.Command Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets the command to run.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
<RequiredAttribute> _
Public Property Command As String
[RequiredAttribute]
public string Command { get; set; }
[RequiredAttribute]
public:
property String^ Command {
    String^ get ();
    void set (String^ value);
}
[<RequiredAttribute>]
member Command : string with get, set
function get Command () : String 
function set Command (value : String)

Property Value

Type: System.String
The command to run.

Remarks

The command to run can be a system command, such as attrib, or an executable, such as program.exe.

.NET Framework Security

See Also

Reference

Exec Class

Microsoft.Build.Tasks Namespace