Aracılığıyla paylaş


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.

public:
 void ReevaluateIfNecessary();
public void ReevaluateIfNecessary ();
member this.ReevaluateIfNecessary : unit -> unit
Public Sub 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

ReevaluateIfNecessary(EvaluationContext)

Source:
Project.cs
public:
 void ReevaluateIfNecessary(Microsoft::Build::Evaluation::Context::EvaluationContext ^ evaluationContext);
public void ReevaluateIfNecessary (Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext);
member this.ReevaluateIfNecessary : Microsoft.Build.Evaluation.Context.EvaluationContext -> unit
Public Sub ReevaluateIfNecessary (evaluationContext As EvaluationContext)

Parameters

evaluationContext
EvaluationContext

The EvaluationContext to use. See EvaluationContext.

Applies to