13 writes to Project
Microsoft.Build (4)
BackEnd\BuildManager\BuildManager.cs (3)
1489
config.
Project
= instances[0];
1529
existingConfiguration.
Project
= newInstance;
2237
existingConfiguration.
Project
= newConfiguration.Project;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
504
Project
= loadProjectFromFile.Invoke();
Microsoft.Build.Engine.UnitTests (9)
BackEnd\BuildRequestConfiguration_Tests.cs (1)
189
config1.
Project
= projectInstance;
BackEnd\BuildRequestEngine_Tests.cs (1)
101
_entry.RequestConfiguration.
Project
= CreateStandinProject();
BackEnd\IntrinsicTask_Tests.cs (2)
3959
entry.RequestConfiguration.
Project
= projectInstance;
3994
entry.RequestConfiguration.
Project
= projectInstance;
BackEnd\TargetBuilder_Tests.cs (1)
1680
config.
Project
= project.CreateProjectInstance();
BackEnd\TargetEntry_Tests.cs (2)
1027
config.
Project
= project;
1045
config.
Project
= project;
BackEnd\TaskBuilder_Tests.cs (1)
1245
config.
Project
= project.CreateProjectInstance();
BackEnd\TaskHost_Tests.cs (1)
78
configuration.
Project
= new ProjectInstance(ProjectRootElement.Create());
67 references to Project
Microsoft.Build (57)
BackEnd\BuildManager\BuildManager.cs (11)
858
ErrorUtilities.VerifyThrow(configuration.
Project
!= null, "Configuration should have been loaded.");
859
return configuration.
Project
!;
2209
else if (unresolvedConfiguration.
Project
!= null && replaceProjectInstance)
2213
else if (unresolvedConfiguration.
Project
!= null && resolvedConfiguration.
Project
!= null && !ReferenceEquals(unresolvedConfiguration.
Project
, resolvedConfiguration.
Project
))
2218
else if (unresolvedConfiguration.
Project
!= null && resolvedConfiguration.
Project
== null)
2237
existingConfiguration.Project = newConfiguration.
Project
;
2438
: new BuildEventContext(result.SubmissionId, node, configuration.
Project
?.EvaluationId ?? BuildEventContext.InvalidEvaluationId, configuration.ConfigurationId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
352
resultToReport.ProjectStateAfterBuild = config.
Project
;
BackEnd\Components\Logging\NodeLoggingContext.cs (2)
85
int evaluationId = (configuration != null && !configuration.IsCached && configuration.
Project
!= null) ? configuration.
Project
.EvaluationId : BuildEventContext.InvalidEvaluationId;
BackEnd\Components\Logging\ProjectLoggingContext.cs (6)
41
requestEntry.RequestConfiguration.
Project
.PropertiesToBuildWith,
42
requestEntry.RequestConfiguration.
Project
.ItemsToBuildWith,
44
requestEntry.RequestConfiguration.
Project
.EvaluationId,
88
requestEntry.RequestConfiguration.
Project
.PropertiesToBuildWith,
89
requestEntry.RequestConfiguration.
Project
.ItemsToBuildWith,
91
requestEntry.RequestConfiguration.
Project
.EvaluationId,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (8)
421
return GetProjectCacheDescriptors(buildRequestConfiguration.
Project
).Any();
456
cacheRequest.Configuration.
Project
,
460
evaluationId: cacheRequest.Configuration.
Project
.EvaluationId,
462
projectFile: cacheRequest.Configuration.
Project
.FullPath);
495
configuration.
Project
.TranslateEntireState = true;
711
ErrorUtilities.VerifyThrowInternalNull(requestConfiguration.
Project
, nameof(requestConfiguration.
Project
));
725
List<ProjectCacheDescriptor> projectCacheDescriptors = GetProjectCacheDescriptors(requestConfiguration.
Project
).ToList();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (6)
1168
if (_requestEntry.RequestConfiguration.
Project
.UsingDifferentToolsVersionFromProjectFile)
1172
_requestEntry.RequestConfiguration.
Project
.OriginalProjectToolsVersion,
1173
_requestEntry.RequestConfiguration.
Project
.ToolsVersion);
1183
_requestEntry.RequestConfiguration.
Project
.ProjectFileLocation, "NoTargetSpecified");
1386
ProjectInstance project = _requestEntry?.RequestConfiguration?.
Project
;
1426
ProjectInstance project = _requestEntry?.RequestConfiguration?.
Project
;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (5)
130
_projectInstance = configuration.
Project
;
417
_requestEntry.RequestConfiguration.
Project
.Targets.ContainsKey(currentTargetEntry.Name),
431
IList<TargetSpecification> afterTargets = _requestEntry.RequestConfiguration.
Project
.GetTargetsWhichRunAfter(currentTargetEntry.Name);
452
IList<TargetSpecification> beforeTargets = _requestEntry.RequestConfiguration.
Project
.GetTargetsWhichRunBefore(currentTargetEntry.Name);
797
IList<TargetSpecification> targetsWhichRunAfter = _requestEntry.RequestConfiguration.
Project
.GetTargetsWhichRunAfter(targetToCheck);
BackEnd\Components\RequestBuilder\TargetEntry.cs (3)
481
TargetUpToDateChecker dependencyAnalyzer = new TargetUpToDateChecker(requestEntry.RequestConfiguration.
Project
, _target, targetLoggingContext.LoggingService, targetLoggingContext.BuildEventContext);
936
_requestEntry.RequestConfiguration.
Project
.Targets.TryGetValue(_targetSpecification.TargetName, out _target);
940
_targetSpecification.ReferenceLocation ?? _requestEntry.RequestConfiguration.
Project
.ProjectFileLocation,
BackEnd\Components\RequestBuilder\TaskBuilder.cs (9)
167
_taskHostObject = requestEntry.Request.HostServices.GetHostObject(requestEntry.RequestConfiguration.
Project
.FullPath, loggingContext.Target.Name, _taskNode.Name);
170
_projectFullPath = requestEntry.RequestConfiguration.
Project
.FullPath;
308
_taskExecutionHost.InitializeForTask(taskHost, _targetLoggingContext, _buildRequestEntry.RequestConfiguration.
Project
, _taskNode.Name, _taskNode.Location, _taskHostObject, _continueOnError != ContinueOnError.ErrorAndStop,
639
_buildRequestEntry.RequestConfiguration.
Project
,
802
using (FullTracking.Track(taskLoggingContext.TargetLoggingContext.Target.Name, _taskNode.Name, _buildRequestEntry.ProjectRootDirectory, _buildRequestEntry.RequestConfiguration.
Project
.PropertiesToBuildWith))
832
bucket.Lookup.SetProperty(ProjectPropertyInstance.Create(ReservedPropertyNames.lastTaskResult, taskResult ? "true" : "false", true/* may be reserved */, _buildRequestEntry.RequestConfiguration.
Project
.IsImmutable));
1028
var projectReferenceItems = _buildRequestEntry.RequestConfiguration.
Project
.GetItems(ItemTypeNames.ProjectReference);
1191
ProjectItemInstanceFactory itemFactory = new ProjectItemInstanceFactory(_buildRequestEntry.RequestConfiguration.
Project
, itemName);
1209
lookup.SetProperty(ProjectPropertyInstance.Create(propertyName, taskParameterValue, taskPropertyInstance.TaskParameterLocation, _buildRequestEntry.RequestConfiguration.
Project
.IsImmutable));
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1183
propertyDictionaries[i] = new PropertyDictionary<ProjectPropertyInstance>(_requestEntry.RequestConfiguration.
Project
.GlobalPropertiesDictionary);
BackEnd\Shared\BuildRequestConfiguration.cs (5)
594
_baseLookup = new Lookup(
Project
.ItemsToBuildWith,
Project
.PropertiesToBuildWith);
811
ErrorUtilities.VerifyThrowInternalNull(
Project
);
831
var items =
Project
.GetItems(ItemTypeNames.GraphIsolationExemptReference);
841
.Select(s => MSBuildGlob.Parse(
Project
.Directory, s)));
Microsoft.Build.Engine.UnitTests (10)
BackEnd\BuildRequestConfiguration_Tests.cs (6)
184
Assert.Null(config1.
Project
);
190
Assert.Same(config1.
Project
, projectInstance);
300
deserializedConfig.
Project
.ShouldNotBeNull();
303
deserializedConfig.
Project
.Directory.ShouldNotBeEmpty();
304
deserializedConfig.
Project
.Directory.ShouldBe(configuration.
Project
.Directory);
BackEnd\MockTaskBuilder.cs (2)
102
lookupForInference.AddNewItem(new ProjectItemInstance(requestEntry.RequestConfiguration.
Project
, taskInstance.Name + "_Item", "Item", task.Location.File));
106
lookupForExecution.AddNewItem(new ProjectItemInstance(requestEntry.RequestConfiguration.
Project
, taskInstance.Name + "_Item", "Item", task.Location.File));
BackEnd\TargetBuilder_Tests.cs (1)
1683
return config.
Project
;
BackEnd\TaskBuilder_Tests.cs (1)
1248
return config.
Project
;