Project.GlobalProperties Property

Definition

Read-write accessor for the project's global properties collection. To set or modify global properties, a caller can hand us an entire new BuildPropertyGroup here, or can simply modify the properties in the BuildPropertyGroup that is already here. Global properties are those defined via the "/p:" switch on the MSBuild.exe command-line, or properties like "Configuration" set by the IDE prior to invoking MSBuild.

C#
public Microsoft.Build.BuildEngine.BuildPropertyGroup GlobalProperties { get; set; }

Property Value

A BuildPropertyGroup containing the global properties for the project.

Remarks

Global properties are properties set with the /property switch on the command line, or properties set by the integrated development environment before invoking MSBuild. For more information, see MSBuild Command-Line Reference.

Applies to

Producto Versiones
MSBuild 17
MSBuild (.NET Core) 17