อ่านในภาษาอังกฤษ

แชร์ผ่าน


ProjectStartedEventArgs.Properties Property

Definition

List of properties in this project. This is a live, read-only list.

C#
public System.Collections.IEnumerable Properties { get; }
C#
public System.Collections.IEnumerable? Properties { get; }
C#
public System.Collections.IEnumerable Properties { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }

Property Value

The list of properties for the event.

Attributes

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.

หมายเหตุ

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.

Applies to

ผลิตภัณฑ์ เวอร์ชัน
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17