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); 348globalProperties = evaluator._data.GlobalPropertiesDictionary; 349properties = Traits.LogAllEnvironmentVariables ? evaluator._data.Properties : evaluator.FilterOutEnvironmentDerivedProperties(evaluator._data.Properties); 350items = evaluator._data.Items; 619ErrorUtilities.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; 647ErrorUtilities.VerifyThrow(_data.EvaluationId != BuildEventContext.InvalidEvaluationId, "Evaluation should produce an evaluation ID"); 666_data.InitialTargets = initialTargets; 686lazyEvaluator = new LazyItemEvaluator<P, I, M, D>(_data, _itemFactory, _evaluationLoggingContext, _evaluationProfiler, _evaluationContext); 706_data.AddItem(itemData.Item); 708if (_data.ShouldEvaluateForDesignTime) 710_data.AddToAllEvaluatedItemsList(itemData.Item); 714if (_data.ShouldEvaluateForDesignTime) 716_data.AddItemIgnoringCondition(itemData.Item); 734_data.TaskRegistry, 743if (_data.DefaultTargets == null) 745_data.DefaultTargets = new List<string>(1); 749if (_data.DefaultTargets.Count == 0 && targetElementsCount > 0) 751_data.DefaultTargets.Add(_targetElements[0].Name); 781_data.BeforeTargets = targetsWhichRunBeforeByTarget; 782_data.AfterTargets = targetsWhichRunAfterByTarget; 796ProjectPropertyInstance configurationData = _data.GlobalPropertiesDictionary["currentsolutionconfigurationcontents"]; 800foreach (var entry in _data.GlobalPropertiesDictionary) 810string 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(); 846foreach (var item in _data.GetItems(ItemTypeNames.ProjectCachePlugin)) 848string pluginPath = FileUtilities.NormalizePath(_data.Directory, item.EvaluatedInclude); 873_data.GlobalPropertiesToTreatAsLocal.Add(propertyName); 949if (_data.DefaultTargets == null) 964_data.DefaultTargets ??= new List<string>(temp.Count); 965_data.DefaultTargets.Add(target); 1013if (itemGroupConditionResult || (_data.ShouldEvaluateForDesignTime && _data.CanEvaluateElementsWithFalseConditions)) 1036ProjectTargetInstance otherTarget = _data.GetTarget(targetName); 1048_data.AddTarget(targetInstance); 1130SetBuiltInProperty(ReservedPropertyNames.toolsVersion, _data.Toolset.ToolsVersion); 1131SetBuiltInProperty(ReservedPropertyNames.toolsPath, _data.Toolset.ToolsPath); 1132SetBuiltInProperty(ReservedPropertyNames.binPath, _data.Toolset.ToolsPath); 1199_data.SetProperty(environmentProperty.Name, ((IProperty)environmentProperty).EvaluatedValueEscaped, isGlobalProperty: false, mayBeReserved: false, isEnvironmentVariable: true, loggingContext: _evaluationLoggingContext); 1208foreach (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); 1213if (_data.SubToolsetVersion == null) 1217if (!_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); 1227if (!_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); 1232if (_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); 1247if (_data.GlobalPropertiesDictionary == null) 1252foreach (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); 1257return _data.GlobalPropertiesDictionary.Count; 1268P 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); 1314if (!itemConditionResult && !(_data.ShouldEvaluateForDesignTime && _data.CanEvaluateElementsWithFalseConditions)) 1335IItemDefinition<M> itemDefinition = _data.GetItemDefinition(itemDefinitionElement.ItemType); 1352itemDefinition = _data.AddItemDefinition(itemDefinitionElement.ItemType); 1366if (_data.ShouldEvaluateForDesignTime) 1368_data.AddToAllEvaluatedItemDefinitionMetadataList(metadatum); 1395_data.RecordImport(importElement, importedProjectRootElement, importedProjectRootElement.Version, sdkResult); 1498var fallbackSearchPathMatch = _data.Toolset.GetProjectImportSearchPaths(importElement.Project); 1553var prop = _data.GetProperty(fallbackSearchPathMatch.PropertyName); 1585string extensionPathExpanded = _data.ExpandString(extensionPath); 1725var solutionPath = _data.GetProperty(SolutionProjectGenerator.SolutionPathPropertyName)?.EvaluatedValue; 1731var projectPath = _data.GetProperty(ReservedPropertyNames.projectFullPath)?.EvaluatedValue; 2146_data.GlobalPropertiesDictionary, 2148_data.ExplicitToolsVersion, 2157_data.RecordImportWithDuplicates(importElement, importedProjectElement, 2419if (!_data.ShouldEvaluateForDesignTime) 2431_data.ConditionedProperties, 2456return _data.Directory; 2464_data.EvaluatedItemElements.Add(itemElement); 2475var extensionsPathProp = _data.GetProperty(searchPathMatch.PropertyName); 2507var onlyFallbackSearchPaths = searchPathMatch.SearchPaths.Select(s => _data.ExpandString(s)).ToList(); 2565P oldValue = _data.GetProperty(Constants.MSBuildAllProjectsPropertyName); 2567_data.SetProperty(