Code Property

MSBuild

The code to compile and execute


Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Property Code As String
C#
public string Code { get; set; }
C++
public property string Code sealed  {
    String get();
    void set(String value);
}
J#
/** property */
public string get_Code();

/** property */
public void set_Code(string value);
JScript
public function get Code() : String

public function set Code(value : String);

Remarks

The code must include a static (Shared in VB) method named ScriptMain. It cannot accept any parameters. If you define the method return a String, the returned value will be available in the ReturnValue output property.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.