90 references to ProjectLoadSettings
Microsoft.Build (78)
BackEnd\BuildManager\BuildManager.cs (5)
2457
ProjectLoadSettings
projectLoadSettings = _buildParameters!.ProjectLoadSettings;
2460
projectLoadSettings |=
ProjectLoadSettings
.IgnoreMissingImports |
ProjectLoadSettings
.IgnoreInvalidImports |
ProjectLoadSettings
.IgnoreEmptyImports;
2465
projectLoadSettings |=
ProjectLoadSettings
.FailOnUnresolvedSdk;
BackEnd\BuildManager\BuildParameters.cs (3)
222
private
ProjectLoadSettings
_projectLoadSettings =
ProjectLoadSettings
.Default;
832
public
ProjectLoadSettings
ProjectLoadSettings
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (2)
75
bool failOnUnresolvedSdk = !Host.BuildParameters.ProjectLoadSettings.HasFlag(
ProjectLoadSettings
.IgnoreMissingImports) || Host.BuildParameters.ProjectLoadSettings.HasFlag(
ProjectLoadSettings
.FailOnUnresolvedSdk);
BackEnd\Shared\BuildRequestConfiguration.cs (5)
563
ProjectLoadSettings
projectLoadSettings = componentHost.BuildParameters.ProjectLoadSettings;
567
projectLoadSettings |=
ProjectLoadSettings
.IgnoreMissingImports |
ProjectLoadSettings
.IgnoreInvalidImports |
ProjectLoadSettings
.IgnoreEmptyImports;
572
projectLoadSettings |=
ProjectLoadSettings
.FailOnUnresolvedSdk;
Definition\Project.cs (37)
220
: this(xml, globalProperties, toolsVersion, projectCollection,
ProjectLoadSettings
.Default)
235
/// <param name="loadSettings">The <see cref="
ProjectLoadSettings
"/> to use for evaluation.</param>
236
public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings)
253
/// <param name="loadSettings">The <see cref="
ProjectLoadSettings
"/> to use for evaluation.</param>
254
public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings)
259
private Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings,
314
: this(xmlReader, globalProperties, toolsVersion, projectCollection,
ProjectLoadSettings
.Default)
329
/// <param name="loadSettings">The <see cref="
ProjectLoadSettings
"/> to use for evaluation.</param>
330
public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings)
348
public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings)
353
private Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings,
408
: this(projectFile, globalProperties, toolsVersion, projectCollection,
ProjectLoadSettings
.Default)
425
public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings)
444
public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings)
449
private Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings,
943
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
965
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
1027
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
1051
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
1081
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
1881
private
ProjectLoadSettings
_loadSettings;
1903
/// <param name="loadSettings">The <see cref="
ProjectLoadSettings
"/> to use for evaluation.</param>
1904
public ProjectImpl(Project owner, ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectLoadSettings
loadSettings)
1928
public ProjectImpl(Project owner, XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectLoadSettings
loadSettings, EvaluationContext evaluationContext)
1963
public ProjectImpl(Project owner, string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectLoadSettings
loadSettings, EvaluationContext evaluationContext)
2313
ErrorUtilities.VerifyThrowInvalidOperation((_loadSettings &
ProjectLoadSettings
.RecordDuplicateButNotCircularImports) != 0, "OM_MustSetRecordDuplicateInputs");
2531
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
2544
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
2567
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
2581
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
2598
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
2622
if (!_loadSettings.HasFlag(
ProjectLoadSettings
.RecordEvaluatedItemElements))
2624
_loadSettings |=
ProjectLoadSettings
.RecordEvaluatedItemElements;
3563
ProjectLoadSettings
loadSettings,
3597
ProjectLoadSettings
loadSettings,
3652
internal void Initialize(IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectLoadSettings
loadSettings, EvaluationContext evaluationContext, bool interactive)
3682
var canEvaluateElementsWithFalseConditions = Traits.Instance.EscapeHatches.EvaluateElementsWithFalseConditionInProjectEvaluation ?? !loadSettings.HasFlag(
ProjectLoadSettings
.DoNotEvaluateElementsWithFalseCondition);
Definition\ProjectOptions.cs (3)
40
/// The <see cref="
ProjectLoadSettings
"/> to use for evaluation.
42
public
ProjectLoadSettings
LoadSettings { get; set; } =
ProjectLoadSettings
.Default;
Evaluation\Evaluator.cs (19)
153
private readonly
ProjectLoadSettings
_loadSettings;
234
ProjectLoadSettings
loadSettings,
338
ProjectLoadSettings
loadSettings,
369
var profileEvaluation = (loadSettings &
ProjectLoadSettings
.ProfileEvaluation) != 0 || loggingService.IncludeEvaluationProfile;
1823
(_loadSettings &
ProjectLoadSettings
.IgnoreMissingImports) == 0)
1967
failOnUnresolvedSdk: !_loadSettings.HasFlag(
ProjectLoadSettings
.IgnoreMissingImports) || _loadSettings.HasFlag(
ProjectLoadSettings
.FailOnUnresolvedSdk));
1978
if (_loadSettings.HasFlag(
ProjectLoadSettings
.IgnoreMissingImports) && !_loadSettings.HasFlag(
ProjectLoadSettings
.FailOnUnresolvedSdk))
2178
if ((_loadSettings &
ProjectLoadSettings
.IgnoreInvalidImports) != 0)
2293
if ((_loadSettings &
ProjectLoadSettings
.RejectCircularImports) != 0 || (_loadSettings &
ProjectLoadSettings
.RecordDuplicateButNotCircularImports) != 0)
2304
if ((_loadSettings &
ProjectLoadSettings
.RejectCircularImports) != 0)
2355
if ((_loadSettings &
ProjectLoadSettings
.RecordDuplicateButNotCircularImports) != 0)
2411
if ((_loadSettings &
ProjectLoadSettings
.IgnoreMissingImports) != 0)
2449
if (((_loadSettings &
ProjectLoadSettings
.IgnoreEmptyImports) != 0 || Traits.Instance.EscapeHatches.IgnoreEmptyImports) && ProjectRootElement.IsEmptyXmlFile(importFileUnescaped))
2456
else if ((_loadSettings &
ProjectLoadSettings
.IgnoreInvalidImports) != 0)
2662
if ((_loadSettings &
ProjectLoadSettings
.RecordEvaluatedItemElements) ==
ProjectLoadSettings
.RecordEvaluatedItemElements)
Instance\ProjectInstance.cs (4)
310
ProjectLoadSettings
? projectLoadSettings, EvaluationContext evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive,
554
ProjectLoadSettings
? projectLoadSettings, EvaluationContext evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive,
656
internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, int submissionId,
ProjectLoadSettings
? projectLoadSettings)
3253
ProjectLoadSettings
? projectLoadSettings = null,
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
Build\ProjectBuildManager.cs (7)
166
var
projectLoadSettings = MSB.Evaluation.
ProjectLoadSettings
.RejectCircularImports
167
| MSB.Evaluation.
ProjectLoadSettings
.IgnoreEmptyImports
168
| MSB.Evaluation.
ProjectLoadSettings
.IgnoreMissingImports
169
| MSB.Evaluation.
ProjectLoadSettings
.IgnoreInvalidImports
170
| MSB.Evaluation.
ProjectLoadSettings
.DoNotEvaluateElementsWithFalseCondition
171
| MSB.Evaluation.
ProjectLoadSettings
.FailOnUnresolvedSdk;
MSBuild (1)
XMake.cs (1)
1903
parameters.ProjectLoadSettings |=
ProjectLoadSettings
.ProfileEvaluation;
NuGet.Build.Tasks.Console (4)
MSBuildStaticGraphRestore.cs (4)
1314
LoadSettings =
ProjectLoadSettings
.IgnoreEmptyImports |
ProjectLoadSettings
.IgnoreInvalidImports |
ProjectLoadSettings
.IgnoreMissingImports |
ProjectLoadSettings
.DoNotEvaluateElementsWithFalseCondition,