共用方式為


Engine.GlobalProperties Property

Gets or sets a collection of the global properties for the project.

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.BuildEngine
Assembly:  Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)

Syntax

'Declaration
Public Property GlobalProperties As BuildPropertyGroup
public BuildPropertyGroup GlobalProperties { get; set; }
public:
property BuildPropertyGroup^ GlobalProperties {
    BuildPropertyGroup^ get ();
    void set (BuildPropertyGroup^ value);
}
member GlobalProperties : BuildPropertyGroup with get, set
function get GlobalProperties () : BuildPropertyGroup 
function set GlobalProperties (value : BuildPropertyGroup)

Property Value

Type: Microsoft.Build.BuildEngine.BuildPropertyGroup
A BuildPropertyGroup that contains the global properties for the project.

Remarks

Global properties are properties that are set by using the /property switch on the command line, or properties that are set by the integrated development environment (IDE) before a project is built. These global properties are applied to all projects that are built by using this Engine.

.NET Framework Security

See Also

Reference

Engine Class

Microsoft.Build.BuildEngine Namespace