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