Partilhar via


ProjectLoadSettings Enum

Definition

Flags for controlling the project load.

This enumeration supports a bitwise combination of its member values.

public enum class ProjectLoadSettings
[System.Flags]
public enum ProjectLoadSettings
[<System.Flags>]
type ProjectLoadSettings = 
Public Enum ProjectLoadSettings
Inheritance
ProjectLoadSettings
Attributes

Fields

Name Value Description
Default 0

Normal load. This is the default.

IgnoreMissingImports 1

Ignore nonexistent targets files when evaluating the project

RecordDuplicateButNotCircularImports 2

Record imports including duplicate, but not circular, imports on the ImportsIncludingDuplicates property

RejectCircularImports 4

Throw an exception and stop the evaluation of a project if any circular imports are detected

RecordEvaluatedItemElements 8

Record the item elements that got evaluated

IgnoreEmptyImports 16

Ignore empty targets files when evaluating the project

DoNotEvaluateElementsWithFalseCondition 32

By default, evaluations performed via Project evaluate and collect elements whose conditions were false (e.g. ItemsIgnoringCondition). This flag turns off this behaviour. Project members that collect such elements will throw when accessed.

IgnoreInvalidImports 64

Ignore invalid target files when evaluating the project

ProfileEvaluation 128

Whether to profile the evaluation

FailOnUnresolvedSdk 256

Used in combination with IgnoreMissingImports to still treat an unresolved MSBuild project SDK as an error.

Remarks

This is a "flags" enum, allowing future settings to be added in an additive, non breaking fashion.

Applies to