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