Partager via


ProjectStartedEventArgs.Properties Property

Gets the list of properties for the event.

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

Syntax

'Declaration
Public ReadOnly Property Properties As IEnumerable
public IEnumerable Properties { get; }
public:
property IEnumerable^ Properties {
    IEnumerable^ get ();
}
member Properties : IEnumerable with get
function get Properties () : IEnumerable

Property Value

Type: System.Collections.IEnumerable
The list of properties for the event.

Remarks

The property names and values accessed through Properties are kept up-to-date and can be enumerated throughout the build of the project. However, changing a property in this list will not affect the build process.

Note

This property does not work with multi-proc builds. To get proper results, you can either turn off multi-proc building by specifying /m:1 (which is the default), or you can work around the limitation by setting an environment variable. For example, setting MSBuildForwardPropertiesFromChild=configuration;platform forwards the "configuration" and "platform" properties from the child nodes. Unless this environment variable is defined, nothing will be forwarded. For more information, see How To: Use Environment Variables in a Build.

.NET Framework Security

See Also

Reference

ProjectStartedEventArgs Class

Microsoft.Build.Framework Namespace