1 write to _data
Microsoft.Build (1)
Evaluation\Evaluator.cs (1)
244
_data
= data;
83 references to _data
Microsoft.Build (83)
Evaluation\Evaluator.cs (83)
261
_isRunningInVisualStudio = String.Equals("true",
_data
.GlobalPropertiesDictionary.GetProperty("BuildingInsideVisualStudio")?.EvaluatedValue, StringComparison.OrdinalIgnoreCase);
265
_interactive = interactive || String.Equals("true",
_data
.GlobalPropertiesDictionary.GetProperty("NuGetInteractive")?.EvaluatedValue, StringComparison.OrdinalIgnoreCase);
348
globalProperties = evaluator.
_data
.GlobalPropertiesDictionary;
349
properties = Traits.LogAllEnvironmentVariables ? evaluator.
_data
.Properties : evaluator.FilterOutEnvironmentDerivedProperties(evaluator.
_data
.Properties);
350
items = evaluator.
_data
.Items;
619
ErrorUtilities.VerifyThrow(
_data
.EvaluationId == BuildEventContext.InvalidEvaluationId, "There is no prior evaluation ID. The evaluator data needs to be reset at this point");
620
_data
.EvaluationId = _evaluationLoggingContext.BuildEventContext.EvaluationId;
647
ErrorUtilities.VerifyThrow(
_data
.EvaluationId != BuildEventContext.InvalidEvaluationId, "Evaluation should produce an evaluation ID");
666
_data
.InitialTargets = initialTargets;
686
lazyEvaluator = new LazyItemEvaluator<P, I, M, D>(
_data
, _itemFactory, _evaluationLoggingContext, _evaluationProfiler, _evaluationContext);
706
_data
.AddItem(itemData.Item);
708
if (
_data
.ShouldEvaluateForDesignTime)
710
_data
.AddToAllEvaluatedItemsList(itemData.Item);
714
if (
_data
.ShouldEvaluateForDesignTime)
716
_data
.AddItemIgnoringCondition(itemData.Item);
734
_data
.TaskRegistry,
743
if (
_data
.DefaultTargets == null)
745
_data
.DefaultTargets = new List<string>(1);
749
if (
_data
.DefaultTargets.Count == 0 && targetElementsCount > 0)
751
_data
.DefaultTargets.Add(_targetElements[0].Name);
781
_data
.BeforeTargets = targetsWhichRunBeforeByTarget;
782
_data
.AfterTargets = targetsWhichRunAfterByTarget;
796
ProjectPropertyInstance configurationData =
_data
.GlobalPropertiesDictionary["currentsolutionconfigurationcontents"];
800
foreach (var entry in
_data
.GlobalPropertiesDictionary)
810
string output = String.Format(CultureInfo.CurrentUICulture, "###: MSBUILD: Evaluating or reevaluating project {0} with {1} global properties and {2} tools version, child count {3}, CurrentSolutionConfigurationContents hash {4} other properties:\n{5}", _projectRootElement.FullPath, globalPropertiesCount,
_data
.Toolset.ToolsVersion, _projectRootElement.Count, hash, propertyDump);
816
_data
.FinishEvaluation();
846
foreach (var item in
_data
.GetItems(ItemTypeNames.ProjectCachePlugin))
848
string pluginPath = FileUtilities.NormalizePath(
_data
.Directory, item.EvaluatedInclude);
873
_data
.GlobalPropertiesToTreatAsLocal.Add(propertyName);
949
if (
_data
.DefaultTargets == null)
964
_data
.DefaultTargets ??= new List<string>(temp.Count);
965
_data
.DefaultTargets.Add(target);
1013
if (itemGroupConditionResult || (
_data
.ShouldEvaluateForDesignTime &&
_data
.CanEvaluateElementsWithFalseConditions))
1036
ProjectTargetInstance otherTarget =
_data
.GetTarget(targetName);
1048
_data
.AddTarget(targetInstance);
1130
SetBuiltInProperty(ReservedPropertyNames.toolsVersion,
_data
.Toolset.ToolsVersion);
1131
SetBuiltInProperty(ReservedPropertyNames.toolsPath,
_data
.Toolset.ToolsPath);
1132
SetBuiltInProperty(ReservedPropertyNames.binPath,
_data
.Toolset.ToolsPath);
1199
_data
.SetProperty(environmentProperty.Name, ((IProperty)environmentProperty).EvaluatedValueEscaped, isGlobalProperty: false, mayBeReserved: false, isEnvironmentVariable: true, loggingContext: _evaluationLoggingContext);
1208
foreach (ProjectPropertyInstance toolsetProperty in
_data
.Toolset.Properties.Values)
1210
_data
.SetProperty(toolsetProperty.Name, ((IProperty)toolsetProperty).EvaluatedValueEscaped, false /* NOT global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext);
1213
if (
_data
.SubToolsetVersion == null)
1217
if (!
_data
.Properties.Contains(Constants.VisualStudioVersionPropertyName))
1219
_data
.SetProperty(Constants.VisualStudioVersionPropertyName, MSBuildConstants.CurrentVisualStudioVersion, false /* NOT global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext);
1227
if (!
_data
.Properties.Contains(Constants.SubToolsetVersionPropertyName))
1229
_data
.SetProperty(Constants.SubToolsetVersionPropertyName,
_data
.SubToolsetVersion, false /* NOT global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext);
1232
if (
_data
.Toolset.SubToolsets.TryGetValue(
_data
.SubToolsetVersion, out SubToolset subToolset))
1236
_data
.SetProperty(subToolsetProperty.Name, ((IProperty)subToolsetProperty).EvaluatedValueEscaped, false /* NOT global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext);
1247
if (
_data
.GlobalPropertiesDictionary == null)
1252
foreach (ProjectPropertyInstance globalProperty in
_data
.GlobalPropertiesDictionary)
1254
_data
.SetProperty(globalProperty.Name, ((IProperty)globalProperty).EvaluatedValueEscaped, true /* IS global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext);
1257
return
_data
.GlobalPropertiesDictionary.Count;
1268
P property =
_data
.SetProperty(name, evaluatedValueEscaped, false /* NOT global property */, true /* OK to be a reserved name */, loggingContext: _evaluationLoggingContext);
1283
((IDictionary<string, ProjectPropertyInstance>)
_data
.GlobalPropertiesDictionary).ContainsKey(propertyElement.Name) &&
1284
!
_data
.GlobalPropertiesToTreatAsLocal.Contains(propertyElement.Name))
1306
_data
.SetProperty(propertyElement, evaluatedValue, _evaluationLoggingContext);
1314
if (!itemConditionResult && !(
_data
.ShouldEvaluateForDesignTime &&
_data
.CanEvaluateElementsWithFalseConditions))
1335
IItemDefinition<M> itemDefinition =
_data
.GetItemDefinition(itemDefinitionElement.ItemType);
1352
itemDefinition =
_data
.AddItemDefinition(itemDefinitionElement.ItemType);
1366
if (
_data
.ShouldEvaluateForDesignTime)
1368
_data
.AddToAllEvaluatedItemDefinitionMetadataList(metadatum);
1395
_data
.RecordImport(importElement, importedProjectRootElement, importedProjectRootElement.Version, sdkResult);
1498
var fallbackSearchPathMatch =
_data
.Toolset.GetProjectImportSearchPaths(importElement.Project);
1553
var prop =
_data
.GetProperty(fallbackSearchPathMatch.PropertyName);
1585
string extensionPathExpanded =
_data
.ExpandString(extensionPath);
1725
var solutionPath =
_data
.GetProperty(SolutionProjectGenerator.SolutionPathPropertyName)?.EvaluatedValue;
1731
var projectPath =
_data
.GetProperty(ReservedPropertyNames.projectFullPath)?.EvaluatedValue;
2146
_data
.GlobalPropertiesDictionary,
2148
_data
.ExplicitToolsVersion,
2157
_data
.RecordImportWithDuplicates(importElement, importedProjectElement,
2419
if (!
_data
.ShouldEvaluateForDesignTime)
2431
_data
.ConditionedProperties,
2456
return
_data
.Directory;
2464
_data
.EvaluatedItemElements.Add(itemElement);
2475
var extensionsPathProp =
_data
.GetProperty(searchPathMatch.PropertyName);
2507
var onlyFallbackSearchPaths = searchPathMatch.SearchPaths.Select(s =>
_data
.ExpandString(s)).ToList();
2565
P oldValue =
_data
.GetProperty(Constants.MSBuildAllProjectsPropertyName);
2567
_data
.SetProperty(