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