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

MSBuild 17 和其他版本
產品 版本
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

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

MSBuild 17 和其他版本
產品 版本
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17