93 references to ProjectLoadSettings
dotnet (3)
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (3)
236ProjectLoadSettings.IgnoreMissingImports | ProjectLoadSettings.IgnoreEmptyImports | ProjectLoadSettings.IgnoreInvalidImports);
Microsoft.Build (78)
BackEnd\BuildManager\BuildManager.cs (5)
2161ProjectLoadSettings projectLoadSettings = _buildParameters!.ProjectLoadSettings; 2164projectLoadSettings |= ProjectLoadSettings.IgnoreMissingImports | ProjectLoadSettings.IgnoreInvalidImports | ProjectLoadSettings.IgnoreEmptyImports; 2169projectLoadSettings |= ProjectLoadSettings.FailOnUnresolvedSdk;
BackEnd\BuildManager\BuildParameters.cs (3)
228private ProjectLoadSettings _projectLoadSettings = ProjectLoadSettings.Default; 829public ProjectLoadSettings ProjectLoadSettings
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (2)
76bool failOnUnresolvedSdk = !Host.BuildParameters.ProjectLoadSettings.HasFlag(ProjectLoadSettings.IgnoreMissingImports) || Host.BuildParameters.ProjectLoadSettings.HasFlag(ProjectLoadSettings.FailOnUnresolvedSdk);
BackEnd\Shared\BuildRequestConfiguration.cs (5)
496ProjectLoadSettings projectLoadSettings = componentHost.BuildParameters.ProjectLoadSettings; 500projectLoadSettings |= ProjectLoadSettings.IgnoreMissingImports | ProjectLoadSettings.IgnoreInvalidImports | ProjectLoadSettings.IgnoreEmptyImports; 505projectLoadSettings |= ProjectLoadSettings.FailOnUnresolvedSdk;
Definition\Project.cs (37)
231: this(xml, globalProperties, toolsVersion, projectCollection, ProjectLoadSettings.Default) 246/// <param name="loadSettings">The <see cref="ProjectLoadSettings"/> to use for evaluation.</param> 247public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 264/// <param name="loadSettings">The <see cref="ProjectLoadSettings"/> to use for evaluation.</param> 265public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 270private Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, 325: this(xmlReader, globalProperties, toolsVersion, projectCollection, ProjectLoadSettings.Default) 340/// <param name="loadSettings">The <see cref="ProjectLoadSettings"/> to use for evaluation.</param> 341public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 359public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 364private Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, 419: this(projectFile, globalProperties, toolsVersion, projectCollection, ProjectLoadSettings.Default) 436public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 455public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 460private Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, 936/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 958/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 1020/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 1044/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 1074/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 1863private ProjectLoadSettings _loadSettings; 1885/// <param name="loadSettings">The <see cref="ProjectLoadSettings"/> to use for evaluation.</param> 1886public ProjectImpl(Project owner, ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings) 1910public ProjectImpl(Project owner, XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) 1945public ProjectImpl(Project owner, string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) 2283ErrorUtilities.VerifyThrowInvalidOperation((_loadSettings & ProjectLoadSettings.RecordDuplicateButNotCircularImports) != 0, "OM_MustSetRecordDuplicateInputs"); 2501/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 2514/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 2695/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 2709/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 2726/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 2750if (!_loadSettings.HasFlag(ProjectLoadSettings.RecordEvaluatedItemElements)) 2752_loadSettings |= ProjectLoadSettings.RecordEvaluatedItemElements; 3687ProjectLoadSettings loadSettings, 3721ProjectLoadSettings loadSettings, 3776internal void Initialize(IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext, bool interactive) 3806var canEvaluateElementsWithFalseConditions = Traits.Instance.EscapeHatches.EvaluateElementsWithFalseConditionInProjectEvaluation ?? !loadSettings.HasFlag(ProjectLoadSettings.DoNotEvaluateElementsWithFalseCondition);
Definition\ProjectOptions.cs (3)
39/// The <see cref="ProjectLoadSettings"/> to use for evaluation. 41public ProjectLoadSettings LoadSettings { get; set; } = ProjectLoadSettings.Default;
Evaluation\Evaluator.cs (19)
133private readonly ProjectLoadSettings _loadSettings; 205ProjectLoadSettings loadSettings, 307ProjectLoadSettings loadSettings, 323var profileEvaluation = (loadSettings & ProjectLoadSettings.ProfileEvaluation) != 0 || loggingService.IncludeEvaluationProfile; 1672(_loadSettings & ProjectLoadSettings.IgnoreMissingImports) == 0) 1818failOnUnresolvedSdk: !_loadSettings.HasFlag(ProjectLoadSettings.IgnoreMissingImports) || _loadSettings.HasFlag(ProjectLoadSettings.FailOnUnresolvedSdk)); 1829if (_loadSettings.HasFlag(ProjectLoadSettings.IgnoreMissingImports) && !_loadSettings.HasFlag(ProjectLoadSettings.FailOnUnresolvedSdk)) 2029if ((_loadSettings & ProjectLoadSettings.IgnoreInvalidImports) != 0) 2144if ((_loadSettings & ProjectLoadSettings.RejectCircularImports) != 0 || (_loadSettings & ProjectLoadSettings.RecordDuplicateButNotCircularImports) != 0) 2155if ((_loadSettings & ProjectLoadSettings.RejectCircularImports) != 0) 2206if ((_loadSettings & ProjectLoadSettings.RecordDuplicateButNotCircularImports) != 0) 2262if ((_loadSettings & ProjectLoadSettings.IgnoreMissingImports) != 0) 2300if (((_loadSettings & ProjectLoadSettings.IgnoreEmptyImports) != 0 || Traits.Instance.EscapeHatches.IgnoreEmptyImports) && ProjectRootElement.IsEmptyXmlFile(importFileUnescaped)) 2307else if ((_loadSettings & ProjectLoadSettings.IgnoreInvalidImports) != 0) 2513if ((_loadSettings & ProjectLoadSettings.RecordEvaluatedItemElements) == ProjectLoadSettings.RecordEvaluatedItemElements)
Instance\ProjectInstance.cs (4)
302ProjectLoadSettings? projectLoadSettings, EvaluationContext evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive) 544ProjectLoadSettings? projectLoadSettings, EvaluationContext evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive) 645internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, int submissionId, ProjectLoadSettings? projectLoadSettings) 3185ProjectLoadSettings? projectLoadSettings = null,
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
Build\ProjectBuildManager.cs (7)
146var projectLoadSettings = MSB.Evaluation.ProjectLoadSettings.RejectCircularImports 147| MSB.Evaluation.ProjectLoadSettings.IgnoreEmptyImports 148| MSB.Evaluation.ProjectLoadSettings.IgnoreMissingImports 149| MSB.Evaluation.ProjectLoadSettings.IgnoreInvalidImports 150| MSB.Evaluation.ProjectLoadSettings.DoNotEvaluateElementsWithFalseCondition 151| MSB.Evaluation.ProjectLoadSettings.FailOnUnresolvedSdk;
MSBuild (1)
XMake.cs (1)
1544parameters.ProjectLoadSettings |= ProjectLoadSettings.ProfileEvaluation;
NuGet.Build.Tasks.Console (4)
MSBuildStaticGraphRestore.cs (4)
1284LoadSettings = ProjectLoadSettings.IgnoreEmptyImports | ProjectLoadSettings.IgnoreInvalidImports | ProjectLoadSettings.IgnoreMissingImports | ProjectLoadSettings.DoNotEvaluateElementsWithFalseCondition,