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)
2272
ProjectLoadSettings
projectLoadSettings = _buildParameters!.ProjectLoadSettings;
2275
projectLoadSettings |=
ProjectLoadSettings
.IgnoreMissingImports |
ProjectLoadSettings
.IgnoreInvalidImports |
ProjectLoadSettings
.IgnoreEmptyImports;
2280
projectLoadSettings |=
ProjectLoadSettings
.FailOnUnresolvedSdk;
BackEnd\BuildManager\BuildParameters.cs (3)
222
private
ProjectLoadSettings
_projectLoadSettings =
ProjectLoadSettings
.Default;
827
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)
509
ProjectLoadSettings
projectLoadSettings = componentHost.BuildParameters.ProjectLoadSettings;
513
projectLoadSettings |=
ProjectLoadSettings
.IgnoreMissingImports |
ProjectLoadSettings
.IgnoreInvalidImports |
ProjectLoadSettings
.IgnoreEmptyImports;
518
projectLoadSettings |=
ProjectLoadSettings
.FailOnUnresolvedSdk;
Definition\Project.cs (37)
219
: this(xml, globalProperties, toolsVersion, projectCollection,
ProjectLoadSettings
.Default)
234
/// <param name="loadSettings">The <see cref="
ProjectLoadSettings
"/> to use for evaluation.</param>
235
public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings)
252
/// <param name="loadSettings">The <see cref="
ProjectLoadSettings
"/> to use for evaluation.</param>
253
public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings)
258
private Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings,
313
: this(xmlReader, globalProperties, toolsVersion, projectCollection,
ProjectLoadSettings
.Default)
328
/// <param name="loadSettings">The <see cref="
ProjectLoadSettings
"/> to use for evaluation.</param>
329
public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings)
347
public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings)
352
private Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings,
407
: this(projectFile, globalProperties, toolsVersion, projectCollection,
ProjectLoadSettings
.Default)
424
public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings)
443
public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings)
448
private Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
ProjectLoadSettings
loadSettings,
942
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
964
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
1026
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
1050
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
1080
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
1880
private
ProjectLoadSettings
_loadSettings;
1902
/// <param name="loadSettings">The <see cref="
ProjectLoadSettings
"/> to use for evaluation.</param>
1903
public ProjectImpl(Project owner, ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectLoadSettings
loadSettings)
1927
public ProjectImpl(Project owner, XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectLoadSettings
loadSettings, EvaluationContext evaluationContext)
1962
public ProjectImpl(Project owner, string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectLoadSettings
loadSettings, EvaluationContext evaluationContext)
2312
ErrorUtilities.VerifyThrowInvalidOperation((_loadSettings &
ProjectLoadSettings
.RecordDuplicateButNotCircularImports) != 0, "OM_MustSetRecordDuplicateInputs");
2530
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
2543
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
2566
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
2580
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
2597
/// To avoid reevaluation use <see cref="
ProjectLoadSettings
.RecordEvaluatedItemElements"/>.
2621
if (!_loadSettings.HasFlag(
ProjectLoadSettings
.RecordEvaluatedItemElements))
2623
_loadSettings |=
ProjectLoadSettings
.RecordEvaluatedItemElements;
3559
ProjectLoadSettings
loadSettings,
3593
ProjectLoadSettings
loadSettings,
3648
internal void Initialize(IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectLoadSettings
loadSettings, EvaluationContext evaluationContext, bool interactive)
3678
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;
230
ProjectLoadSettings
loadSettings,
335
ProjectLoadSettings
loadSettings,
352
var profileEvaluation = (loadSettings &
ProjectLoadSettings
.ProfileEvaluation) != 0 || loggingService.IncludeEvaluationProfile;
1751
(_loadSettings &
ProjectLoadSettings
.IgnoreMissingImports) == 0)
1897
failOnUnresolvedSdk: !_loadSettings.HasFlag(
ProjectLoadSettings
.IgnoreMissingImports) || _loadSettings.HasFlag(
ProjectLoadSettings
.FailOnUnresolvedSdk));
1908
if (_loadSettings.HasFlag(
ProjectLoadSettings
.IgnoreMissingImports) && !_loadSettings.HasFlag(
ProjectLoadSettings
.FailOnUnresolvedSdk))
2108
if ((_loadSettings &
ProjectLoadSettings
.IgnoreInvalidImports) != 0)
2223
if ((_loadSettings &
ProjectLoadSettings
.RejectCircularImports) != 0 || (_loadSettings &
ProjectLoadSettings
.RecordDuplicateButNotCircularImports) != 0)
2234
if ((_loadSettings &
ProjectLoadSettings
.RejectCircularImports) != 0)
2285
if ((_loadSettings &
ProjectLoadSettings
.RecordDuplicateButNotCircularImports) != 0)
2341
if ((_loadSettings &
ProjectLoadSettings
.IgnoreMissingImports) != 0)
2379
if (((_loadSettings &
ProjectLoadSettings
.IgnoreEmptyImports) != 0 || Traits.Instance.EscapeHatches.IgnoreEmptyImports) && ProjectRootElement.IsEmptyXmlFile(importFileUnescaped))
2386
else if ((_loadSettings &
ProjectLoadSettings
.IgnoreInvalidImports) != 0)
2592
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)
1815
parameters.ProjectLoadSettings |=
ProjectLoadSettings
.ProfileEvaluation;
NuGet.Build.Tasks.Console (4)
MSBuildStaticGraphRestore.cs (4)
1314
LoadSettings =
ProjectLoadSettings
.IgnoreEmptyImports |
ProjectLoadSettings
.IgnoreInvalidImports |
ProjectLoadSettings
.IgnoreMissingImports |
ProjectLoadSettings
.DoNotEvaluateElementsWithFalseCondition,