112 references to BuildRequestDataFlags
Microsoft.Build (81)
AssemblyInfo.cs (1)
41
[assembly: TypeForwardedTo(typeof(Microsoft.Build.Execution.
BuildRequestDataFlags
))]
BackEnd\BuildManager\BuildManager.cs (5)
1296
submission.BuildRequestData.Flags.HasFlag(
BuildRequestDataFlags
.ReplaceExistingProjectInstance));
1898
if (submission.BuildRequestData.Flags.HasFlag(
BuildRequestDataFlags
.IgnoreMissingEmptyAndInvalidImports))
1903
if (submission.BuildRequestData.Flags.HasFlag(
BuildRequestDataFlags
.FailOnUnresolvedSdk))
2728
private void CheckAllSubmissionsComplete(
BuildRequestDataFlags
? flags)
2734
if (flags.HasValue && flags.Value.HasFlag(
BuildRequestDataFlags
.ClearCachesAfterBuild))
BackEnd\BuildManager\BuildRequestData.cs (14)
29
: this(projectInstance, targetsToBuild, null,
BuildRequestDataFlags
.None)
40
: this(projectInstance, targetsToBuild, hostServices,
BuildRequestDataFlags
.None)
51
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices? hostServices,
BuildRequestDataFlags
flags)
64
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices? hostServices,
BuildRequestDataFlags
flags, IEnumerable<string>? propertiesToTransfer)
92
/// <param name="requestedProjectState">A <see cref="Execution.RequestedProjectState"/> describing properties, items, and metadata that should be returned. Requires setting <see cref="
BuildRequestDataFlags
.ProvideSubsetOfStateAfterBuild"/>.</param>
93
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices? hostServices,
BuildRequestDataFlags
flags, IEnumerable<string>? propertiesToTransfer, RequestedProjectState requestedProjectState)
111
: this(projectFullPath, globalProperties, toolsVersion, targetsToBuild, hostServices,
BuildRequestDataFlags
.None)
123
/// <param name="flags">The <see cref="
BuildRequestDataFlags
"/> to use.</param>
124
/// <param name="requestedProjectState">A <see cref="Execution.RequestedProjectState"/> describing properties, items, and metadata that should be returned. Requires setting <see cref="
BuildRequestDataFlags
.ProvideSubsetOfStateAfterBuild"/>.</param>
126
string? toolsVersion, string[] targetsToBuild, HostServices? hostServices,
BuildRequestDataFlags
flags,
143
/// <param name="flags">The <see cref="
BuildRequestDataFlags
"/> to use.</param>
144
public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild, HostServices? hostServices,
BuildRequestDataFlags
flags)
162
private BuildRequestData(string[] targetsToBuild, HostServices? hostServices,
BuildRequestDataFlags
flags, string projectFullPath)
240
public new
BuildRequestDataFlags
Flags => base.Flags;
BackEnd\BuildManager\BuildRequestDataBase.cs (3)
13
BuildRequestDataFlags
flags,
38
public
BuildRequestDataFlags
Flags { get; protected set; }
59
BuildRequestDataFlags
flags,
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (4)
350
if (!request.BuildRequestDataFlags.HasFlag(
BuildRequestDataFlags
.IgnoreExistingProjectState))
1140
BuildRequestDataFlags
buildRequestDataFlags = request.BuildRequestDataFlags;
1142
if (issuingEntry.Request.BuildRequestDataFlags.HasFlag(
BuildRequestDataFlags
.IgnoreMissingEmptyAndInvalidImports))
1145
buildRequestDataFlags |=
BuildRequestDataFlags
.IgnoreMissingEmptyAndInvalidImports;
BackEnd\Components\BuildRequestEngine\FullyQualifiedBuildRequest.cs (3)
36
BuildRequestDataFlags
flags =
BuildRequestDataFlags
.None)
66
public
BuildRequestDataFlags
BuildRequestDataFlags { get; set; }
BackEnd\Components\Caching\ResultsCache.cs (12)
25
private const
BuildRequestDataFlags
FlagsAffectingBuildResults =
26
BuildRequestDataFlags
.IgnoreMissingEmptyAndInvalidImports
27
|
BuildRequestDataFlags
.FailOnUnresolvedSdk;
359
BuildRequestDataFlags
buildRequestDataFlags = buildRequest.BuildRequestDataFlags;
360
BuildRequestDataFlags
buildResultDataFlags = (
BuildRequestDataFlags
)buildResult.BuildRequestDataFlags;
394
static bool HasProvideProjectStateAfterBuild(
BuildRequestDataFlags
flags)
395
=> (flags &
BuildRequestDataFlags
.ProvideProjectStateAfterBuild) ==
BuildRequestDataFlags
.ProvideProjectStateAfterBuild;
397
static bool HasProvideSubsetOfStateAfterBuild(
BuildRequestDataFlags
flags)
398
=> (flags &
BuildRequestDataFlags
.ProvideSubsetOfStateAfterBuild) ==
BuildRequestDataFlags
.ProvideSubsetOfStateAfterBuild;
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
377
?
BuildRequestDataFlags
.SkipNonexistentTargets
378
:
BuildRequestDataFlags
.None);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
149
if (!targetExists && entry.Request.BuildRequestDataFlags.HasFlag(
BuildRequestDataFlags
.SkipNonexistentTargets))
191
if (_requestEntry.Request.BuildRequestDataFlags.HasFlag(
BuildRequestDataFlags
.ProvideProjectStateAfterBuild))
BackEnd\Components\Scheduler\Scheduler.cs (2)
2053
if ((buildRequest.BuildRequestDataFlags &
BuildRequestDataFlags
.SkipNonexistentTargets) !=
BuildRequestDataFlags
.SkipNonexistentTargets)
BackEnd\Shared\BuildRequest.cs (8)
86
private
BuildRequestDataFlags
_buildRequestDataFlags;
107
BuildRequestDataFlags
buildRequestDataFlags,
125
_buildRequestDataFlags |=
BuildRequestDataFlags
.ProvideSubsetOfStateAfterBuild;
146
BuildRequestDataFlags
buildRequestDataFlags =
BuildRequestDataFlags
.None,
181
BuildRequestDataFlags
buildRequestDataFlags =
BuildRequestDataFlags
.None,
362
public
BuildRequestDataFlags
BuildRequestDataFlags
BackEnd\Shared\BuildRequestConfiguration.cs (3)
432
BuildRequestDataFlags
buildRequestDataFlags,
469
if (buildRequestDataFlags.HasFlag(
BuildRequestDataFlags
.IgnoreMissingEmptyAndInvalidImports))
474
if (buildRequestDataFlags.HasFlag(
BuildRequestDataFlags
.FailOnUnresolvedSdk))
BackEnd\Shared\BuildResult.cs (5)
129
/// includes <see cref="
BuildRequestDataFlags
.ProvideProjectStateAfterBuild"/> or
130
/// <see cref="
BuildRequestDataFlags
.ProvideSubsetOfStateAfterBuild"/> for the build request which this object is a result of,
143
private
BuildRequestDataFlags
_buildRequestDataFlags;
419
/// See <see cref="Execution.
BuildRequestDataFlags
"/> for examples of the available flags.
424
public
BuildRequestDataFlags
? BuildRequestDataFlags => (_version > 0) ? _buildRequestDataFlags : null;
Graph\GraphBuildRequestData.cs (15)
33
: this(projectGraph, targetsToBuild, null,
BuildRequestDataFlags
.None)
44
: this(projectGraph, targetsToBuild, hostServices,
BuildRequestDataFlags
.None)
55
public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild, HostServices? hostServices,
BuildRequestDataFlags
flags)
71
: this(new ProjectGraphEntryPoint(projectFullPath, globalProperties).AsEnumerable(), targetsToBuild, hostServices,
BuildRequestDataFlags
.None)
82
/// <param name="flags">The <see cref="
BuildRequestDataFlags
"/> to use.</param>
83
public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild, HostServices? hostServices,
BuildRequestDataFlags
flags)
94
: this(projectGraphEntryPoint.AsEnumerable(), targetsToBuild, null,
BuildRequestDataFlags
.None)
105
: this(projectGraphEntryPoint.AsEnumerable(), targetsToBuild, hostServices,
BuildRequestDataFlags
.None)
116
public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild, HostServices? hostServices,
BuildRequestDataFlags
flags)
127
: this(projectGraphEntryPoints, targetsToBuild, null,
BuildRequestDataFlags
.None)
138
: this(projectGraphEntryPoints, targetsToBuild, hostServices,
BuildRequestDataFlags
.None)
149
public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices? hostServices,
BuildRequestDataFlags
flags)
157
public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices? hostServices,
BuildRequestDataFlags
flags, GraphBuildOptions graphBuildOptions)
168
private GraphBuildRequestData(ICollection<string> targetsToBuild, HostServices? hostServices,
BuildRequestDataFlags
flags, GraphBuildOptions? graphBuildOptions = null)
248
public new
BuildRequestDataFlags
Flags => base.Flags;
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
644
var
flags = (
BuildRequestDataFlags
)ReadInt32();
Microsoft.Build.BuildCheck.UnitTests (1)
TaskInvocationAnalysisDataTests.cs (1)
89
var request = new BuildRequestData(testProject.ProjectFile, new Dictionary<string, string?>(), MSBuildConstants.CurrentToolsVersion, [], null,
BuildRequestDataFlags
.None);
Microsoft.Build.Engine.UnitTests (15)
BackEnd\BuildManager_Tests.cs (4)
506
_projectCollection.HostServices,
BuildRequestDataFlags
.ProvideSubsetOfStateAfterBuild, null,
2321
var data = new BuildRequestData(instance, Array.Empty<string>(), null,
BuildRequestDataFlags
.None, new string[] { "VirtualProp" });
3894
BuildRequestDataFlags
.ReplaceExistingProjectInstance);
4357
flags:
BuildRequestDataFlags
.None,
BackEnd\NodePackets_Tests.cs (1)
80
BuildSubmissionStartedEventArgs buildSubmissionStarted = new(new Dictionary<string, string> { { "Value1", "Value2" } }, ["Path1"], ["TargetName"],
BuildRequestDataFlags
.ReplaceExistingProjectInstance, 123);
BackEnd\ResultsCache_Tests.cs (5)
211
BuildRequestDataFlags
.None);
221
BuildRequestDataFlags
.ProvideProjectStateAfterBuild);
231
BuildRequestDataFlags
.None);
284
BuildRequestDataFlags
.ProvideSubsetOfStateAfterBuild,
299
BuildRequestDataFlags
.ProvideSubsetOfStateAfterBuild,
BackEnd\TargetBuilder_Tests.cs (3)
1458
BuildRequestEntry entry = new BuildRequestEntry(CreateNewBuildRequest(1, target,
BuildRequestDataFlags
.SkipNonexistentTargets), cache[1]);
1560
private BuildRequest CreateNewBuildRequest(int configurationId, (string name, TargetBuiltReason reason)[] targets,
BuildRequestDataFlags
flags =
BuildRequestDataFlags
.None)
BuildEventArgsSerialization_Tests.cs (2)
133
var
flag = Execution.
BuildRequestDataFlags
.FailOnUnresolvedSdk;
Microsoft.Build.Framework (4)
BuildSubmissionStartedEventArgs.cs (4)
24
Flags =
BuildRequestDataFlags
.None;
32
BuildRequestDataFlags
flags,
49
public
BuildRequestDataFlags
Flags { get; set; }
117
Flags = (
BuildRequestDataFlags
)reader.ReadInt32();
Microsoft.Build.Framework.UnitTests (2)
BuildSubmissionStartedEventArgs_Tests.cs (2)
39
var
flag = Execution.
BuildRequestDataFlags
.FailOnUnresolvedSdk;
MSBuild (9)
XMake.cs (9)
1575
BuildRequestDataFlags
flags =
BuildRequestDataFlags
.None;
1578
flags |=
BuildRequestDataFlags
.ProvideProjectStateAfterBuild;
1858
BuildRequestDataFlags
flags =
BuildRequestDataFlags
.ClearCachesAfterBuild |
BuildRequestDataFlags
.SkipNonexistentTargets |
BuildRequestDataFlags
.IgnoreMissingEmptyAndInvalidImports |
BuildRequestDataFlags
.FailOnUnresolvedSdk;
1861
flags |=
BuildRequestDataFlags
.ProvideProjectStateAfterBuild;