forked from dotnet/msbuild
/
ProjectLoadSettings.cs
68 lines (58 loc) · 2.35 KB
/
ProjectLoadSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System;
using System.Diagnostics.CodeAnalysis;
namespace Microsoft.Build.Evaluation
{
/// <summary>
/// Flags for controlling the project load.
/// </summary>
/// <remarks>
/// This is a "flags" enum, allowing future settings to be added
/// in an additive, non breaking fashion.
/// </remarks>
[Flags]
[SuppressMessage("Microsoft.Design", "CA1008:EnumsShouldHaveZeroValue", Justification = "Public API. 'Default' is roughly equivalent to 'None'. ")]
public enum ProjectLoadSettings
{
/// <summary>
/// Normal load. This is the default.
/// </summary>
Default = 0,
/// <summary>
/// Ignore nonexistent targets files when evaluating the project
/// </summary>
IgnoreMissingImports = 1,
/// <summary>
/// Record imports including duplicate, but not circular, imports on the ImportsIncludingDuplicates property
/// </summary>
RecordDuplicateButNotCircularImports = 2,
/// <summary>
/// Throw an exception and stop the evaluation of a project if any circular imports are detected
/// </summary>
RejectCircularImports = 4,
/// <summary>
/// Record the item elements that got evaluated
/// </summary>
RecordEvaluatedItemElements = 8,
/// <summary>
/// Ignore empty targets files when evaluating the project
/// </summary>
IgnoreEmptyImports = 16,
/// <summary>
/// By default, evaluations performed via <see cref="Project"/> evaluate and collect elements whose conditions were false (e.g. <see cref="Project.ItemsIgnoringCondition"/>).
/// This flag turns off this behaviour. <see cref="Project"/> members that collect such elements will throw when accessed.
/// </summary>
DoNotEvaluateElementsWithFalseCondition = 32,
/// <summary>
/// Ignore invalid target files when evaluating the project
/// </summary>
IgnoreInvalidImports = 64,
/// <summary>
/// Whether to profile the evaluation
/// </summary>
ProfileEvaluation = 128,
/// <summary>
/// Used in combination with <see cref="IgnoreMissingImports" /> to still treat an unresolved MSBuild project SDK as an error.
/// </summary>
FailOnUnresolvedSdk = 256,
}
}