Project.ReevaluateIfNecessary Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) |
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.