Partilhar via


Project.EvaluationCounter Property

Gets a number that is incremented every time that project is re-evaluated.

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

Syntax

'Declaration
Public ReadOnly Property EvaluationCounter As Integer
public int EvaluationCounter { get; }
public:
property int EvaluationCounter {
    int get ();
}
member EvaluationCounter : int with get
function get EvaluationCounter () : int

Property Value

Type: System.Int32
Returns the incremented value.

Remarks

This value should be compared with previous values to see if the project has been re-evaluated. It should not be used to determine how many times the project has been re-evaluated since it may be incremented by more than one for a given re-evaluation.

.NET Framework Security

See Also

Reference

Project Class

Microsoft.Build.Evaluation Namespace