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)
2243ProjectLoadSettings projectLoadSettings = _buildParameters!.ProjectLoadSettings; 2246projectLoadSettings |= ProjectLoadSettings.IgnoreMissingImports | ProjectLoadSettings.IgnoreInvalidImports | ProjectLoadSettings.IgnoreEmptyImports; 2251projectLoadSettings |= ProjectLoadSettings.FailOnUnresolvedSdk;
BackEnd\BuildManager\BuildParameters.cs (3)
222private ProjectLoadSettings _projectLoadSettings = ProjectLoadSettings.Default; 819public 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)
504ProjectLoadSettings projectLoadSettings = componentHost.BuildParameters.ProjectLoadSettings; 508projectLoadSettings |= ProjectLoadSettings.IgnoreMissingImports | ProjectLoadSettings.IgnoreInvalidImports | ProjectLoadSettings.IgnoreEmptyImports; 513projectLoadSettings |= 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, 954/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 976/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 1038/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 1062/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 1092/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 1892private ProjectLoadSettings _loadSettings; 1914/// <param name="loadSettings">The <see cref="ProjectLoadSettings"/> to use for evaluation.</param> 1915public ProjectImpl(Project owner, ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings) 1939public ProjectImpl(Project owner, XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) 1974public ProjectImpl(Project owner, string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) 2324ErrorUtilities.VerifyThrowInvalidOperation((_loadSettings & ProjectLoadSettings.RecordDuplicateButNotCircularImports) != 0, "OM_MustSetRecordDuplicateInputs"); 2542/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 2555/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 2736/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 2750/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 2767/// To avoid reevaluation use <see cref="ProjectLoadSettings.RecordEvaluatedItemElements"/>. 2791if (!_loadSettings.HasFlag(ProjectLoadSettings.RecordEvaluatedItemElements)) 2793_loadSettings |= ProjectLoadSettings.RecordEvaluatedItemElements; 3729ProjectLoadSettings loadSettings, 3763ProjectLoadSettings loadSettings, 3818internal void Initialize(IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext, bool interactive) 3848var 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)
140private readonly ProjectLoadSettings _loadSettings; 217ProjectLoadSettings loadSettings, 321ProjectLoadSettings loadSettings, 338var profileEvaluation = (loadSettings & ProjectLoadSettings.ProfileEvaluation) != 0 || loggingService.IncludeEvaluationProfile; 1721(_loadSettings & ProjectLoadSettings.IgnoreMissingImports) == 0) 1867failOnUnresolvedSdk: !_loadSettings.HasFlag(ProjectLoadSettings.IgnoreMissingImports) || _loadSettings.HasFlag(ProjectLoadSettings.FailOnUnresolvedSdk)); 1878if (_loadSettings.HasFlag(ProjectLoadSettings.IgnoreMissingImports) && !_loadSettings.HasFlag(ProjectLoadSettings.FailOnUnresolvedSdk)) 2078if ((_loadSettings & ProjectLoadSettings.IgnoreInvalidImports) != 0) 2193if ((_loadSettings & ProjectLoadSettings.RejectCircularImports) != 0 || (_loadSettings & ProjectLoadSettings.RecordDuplicateButNotCircularImports) != 0) 2204if ((_loadSettings & ProjectLoadSettings.RejectCircularImports) != 0) 2255if ((_loadSettings & ProjectLoadSettings.RecordDuplicateButNotCircularImports) != 0) 2311if ((_loadSettings & ProjectLoadSettings.IgnoreMissingImports) != 0) 2349if (((_loadSettings & ProjectLoadSettings.IgnoreEmptyImports) != 0 || Traits.Instance.EscapeHatches.IgnoreEmptyImports) && ProjectRootElement.IsEmptyXmlFile(importFileUnescaped)) 2356else if ((_loadSettings & ProjectLoadSettings.IgnoreInvalidImports) != 0) 2562if ((_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)
153var projectLoadSettings = MSB.Evaluation.ProjectLoadSettings.RejectCircularImports 154| MSB.Evaluation.ProjectLoadSettings.IgnoreEmptyImports 155| MSB.Evaluation.ProjectLoadSettings.IgnoreMissingImports 156| MSB.Evaluation.ProjectLoadSettings.IgnoreInvalidImports 157| MSB.Evaluation.ProjectLoadSettings.DoNotEvaluateElementsWithFalseCondition 158| MSB.Evaluation.ProjectLoadSettings.FailOnUnresolvedSdk;
MSBuild (1)
XMake.cs (1)
1787parameters.ProjectLoadSettings |= ProjectLoadSettings.ProfileEvaluation;
NuGet.Build.Tasks.Console (4)
MSBuildStaticGraphRestore.cs (4)
1287LoadSettings = ProjectLoadSettings.IgnoreEmptyImports | ProjectLoadSettings.IgnoreInvalidImports | ProjectLoadSettings.IgnoreMissingImports | ProjectLoadSettings.DoNotEvaluateElementsWithFalseCondition,