Project.ReevaluateIfNecessary Method

Definition

Overloads

ReevaluateIfNecessary()

Reevaluate the project to get it into a queryable state, if it's dirty. This incorporates all changes previously made to the backing XML by editing this project. Throws InvalidProjectFileException if the evaluation fails.

ReevaluateIfNecessary(EvaluationContext)

See ReevaluateIfNecessary().

ReevaluateIfNecessary()

Source:
Project.cs

Reevaluate the project to get it into a queryable state, if it's dirty. This incorporates all changes previously made to the backing XML by editing this project. Throws InvalidProjectFileException if the evaluation fails.

C#
public void ReevaluateIfNecessary();

Remarks

The project is reevaluated only if it is marked as modified. Reevaluation incorporates all changes made to the project source code.

Throws InvalidProjectFileException if the evaluation fails.

Applies to

.NET Framework 4.8.1 et autres versions
Produit Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ReevaluateIfNecessary(EvaluationContext)

Source:
Project.cs
C#
public void ReevaluateIfNecessary(Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext);

Parameters

evaluationContext
EvaluationContext

The EvaluationContext to use. See EvaluationContext.

Applies to