共用方式為


Project.EvaluatedProperties Property

Gets a collection of the properties evaluated during the build.

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 ReadOnly Property EvaluatedProperties As BuildPropertyGroup
public BuildPropertyGroup EvaluatedProperties { get; }
public:
property BuildPropertyGroup^ EvaluatedProperties {
    BuildPropertyGroup^ get ();
}
member EvaluatedProperties : BuildPropertyGroup with get
function get EvaluatedProperties () : BuildPropertyGroup

Property Value

Type: Microsoft.Build.BuildEngine.BuildPropertyGroup
A BuildPropertyGroup containing the properties evaluated during the build.

Remarks

The returned BuildPropertyGroup contains all the evaluated properties in the project after performing condition evaluation and property expansion. The properties in this collection include global properties, environment variables, reserved properties, and imported properties. Changes to existing properties in this collection will be reflected the next time the project is saved, but adding or deleting properties will not impact the project.

Note

Cloning a BuildPropertyGroup can negatively impact performance. Only use a copy of this property when it is strictly necessary.

.NET Framework Security

See Also

Reference

Project Class

Microsoft.Build.BuildEngine Namespace