1 write to _data
Microsoft.Build (1)
Definition\Project.cs (1)
3684_data = new Data(Owner, globalPropertiesCollection, toolsVersion, subToolsetVersion, canEvaluateElementsWithFalseConditions);
69 references to _data
Microsoft.Build (69)
Definition\Project.cs (69)
2049public Data TestOnlyGetPrivateData => _data; 2103foreach (ResolvedImport import in _data.ImportClosure) 2132return _data.GlobalPropertiesDictionary.Contains(key); 2141return _data.GlobalPropertiesDictionary.Count; 2150foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2171if (_data.GlobalPropertiesDictionary.Count == 0) 2176var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default); 2177foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2194public override ICollection<string> ItemTypes => _data.ItemTypes; 2200public override ICollection<ProjectProperty> Properties => new ReadOnlyCollection<ProjectProperty>(_data.Properties); 2223if (_data.ConditionedProperties == null) 2228return new ObjectModel.ReadOnlyDictionary<string, List<string>>(_data.ConditionedProperties); 2240return _data.ItemDefinitions; 2252return new ReadOnlyCollection<ProjectItem>(_data.Items); 2269if (!(_data.ShouldEvaluateForDesignTime && _data.CanEvaluateElementsWithFalseConditions)) 2274return new ReadOnlyCollection<ProjectItem>(_data.ItemsIgnoringCondition); 2292var imports = new List<ResolvedImport>(_data.ImportClosure.Count - 1 /* outer project */); 2294foreach (ResolvedImport import in _data.ImportClosure) 2315var imports = new List<ResolvedImport>(_data.ImportClosureWithDuplicates.Count - 1 /* outer project */); 2317foreach (var import in _data.ImportClosureWithDuplicates) 2339if (_data.Targets == null) 2344return new ObjectModel.ReadOnlyDictionary<string, ProjectTargetInstance>(_data.Targets); 2359ICollection<ProjectProperty> allEvaluatedProperties = _data.AllEvaluatedProperties; 2381ICollection<ProjectMetadata> allEvaluatedItemDefinitionMetadata = _data.AllEvaluatedItemDefinitionMetadata; 2405ICollection<ProjectItem> allEvaluatedItems = _data.AllEvaluatedItems; 2426public override string ToolsVersion => _data.Toolset.ToolsVersion; 2432public override string SubToolsetVersion => _data.SubToolsetVersion; 2514public override int LastEvaluationId => _data.EvaluationId; 2519public ISet<string> GlobalPropertiesToTreatAsLocal => _data.GlobalPropertiesToTreatAsLocal; 2558return GlobResultBuilder.BuildGlobResults(projectItemElements, _data.Expander); 2628return _data.EvaluatedItemElements; 2679EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec, _data.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true); 2743foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject)) 2758foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject)) 2774return _data.Properties[name]; 2789return _data.GetPropertyValue(name); 2811ProjectProperty property = _data.Properties[name]; 2829_data.Properties[name] = property; 2844ProjectPropertyInstance existing = _data.GlobalPropertiesDictionary[name]; 2850_data.GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(name, escapedValue)); 2851_data.Properties.Set(ProjectProperty.Create(Owner, name, escapedValue, isGlobalProperty: true, mayBeReserved: false, loggingContext: null)); 2989ICollection<ProjectItem> items = _data.GetItems(itemType); 3003ICollection<ProjectItem> items = _data.ItemsIgnoringCondition[itemType]; 3020ICollection<ProjectItem> items = _data.GetItemsByEvaluatedInclude(evaluatedInclude); 3051bool result = _data.Properties.Remove(property.Name); 3065bool result = _data.GlobalPropertiesDictionary.Remove(name); 3143string result = _data.Expander.ExpandIntoStringAndUnescape(unexpandedValue, ExpanderOptions.ExpandPropertiesAndItems, ProjectFileLocation); 3250if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3334string evaluatedExistingInclude = _data.Expander.ExpandIntoStringLeaveEscaped(candidateExistingItemXml.Include, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation); 3365_data.RemoveItem(item); 3375_data.AddItem(item); 3376_data.AddItemIgnoringCondition(item); 3388string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandProperties, propertyLocation); 3418_data.Expander, 3442Assumed.Null(_data.Expander.Metadata, "Should be null"); 3444_data.Expander.Metadata = metadataTable; 3445string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandAll, metadataLocation); 3446_data.Expander.Metadata = null; 3485_data.Expander, 3492_data.AddItem(item); 3493_data.AddItemIgnoringCondition(item); 3545bool result = _data.RemoveItem(item); 3592return new ProjectInstance(_data, DirectoryPath, FullPath, ProjectCollection.HostServices, ProjectCollection.EnvironmentProperties, settings); 3603_data, 3627if (_data.ImportClosure != null) 3629foreach (ResolvedImport import in _data.ImportClosure) 3640_data.HasUnsavedChanges = false; 3813IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);