1 write to _data
Microsoft.Build (1)
Definition\Project.cs (1)
3798_data = new Data(Owner, globalPropertiesCollection, toolsVersion, subToolsetVersion, canEvaluateElementsWithFalseConditions);
71 references to _data
Microsoft.Build (71)
Definition\Project.cs (71)
2025public Data TestOnlyGetPrivateData => _data; 2079foreach (ResolvedImport import in _data.ImportClosure) 2108return _data.GlobalPropertiesDictionary.Contains(key); 2117return _data.GlobalPropertiesDictionary.Count; 2126foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2147if (_data.GlobalPropertiesDictionary.Count == 0) 2152var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default); 2153foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2170public override ICollection<string> ItemTypes => _data.ItemTypes; 2176public override ICollection<ProjectProperty> Properties => new ReadOnlyCollection<ProjectProperty>(_data.Properties); 2199if (_data.ConditionedProperties == null) 2204return new ObjectModel.ReadOnlyDictionary<string, List<string>>(_data.ConditionedProperties); 2212public override IDictionary<string, ProjectItemDefinition> ItemDefinitions => _data.ItemDefinitions; 2218public override ICollection<ProjectItem> Items => new ReadOnlyCollection<ProjectItem>(_data.Items); 2233if (!(_data.ShouldEvaluateForDesignTime && _data.CanEvaluateElementsWithFalseConditions)) 2238return new ReadOnlyCollection<ProjectItem>(_data.ItemsIgnoringCondition); 2256var imports = new List<ResolvedImport>(_data.ImportClosure.Count - 1 /* outer project */); 2258foreach (ResolvedImport import in _data.ImportClosure) 2279var imports = new List<ResolvedImport>(_data.ImportClosureWithDuplicates.Count - 1 /* outer project */); 2281foreach (var import in _data.ImportClosureWithDuplicates) 2303if (_data.Targets == null) 2308return new ObjectModel.ReadOnlyDictionary<string, ProjectTargetInstance>(_data.Targets); 2323ICollection<ProjectProperty> allEvaluatedProperties = _data.AllEvaluatedProperties; 2345ICollection<ProjectMetadata> allEvaluatedItemDefinitionMetadata = _data.AllEvaluatedItemDefinitionMetadata; 2369ICollection<ProjectItem> allEvaluatedItems = _data.AllEvaluatedItems; 2390public override string ToolsVersion => _data.Toolset.ToolsVersion; 2396public override string SubToolsetVersion => _data.SubToolsetVersion; 2489public override int LastEvaluationId => _data.EvaluationId; 2494public ISet<string> GlobalPropertiesToTreatAsLocal => _data.GlobalPropertiesToTreatAsLocal; 2619var includeItemspec = new EvaluationItemSpec(itemElement.Include, _data.Expander, itemElement.IncludeLocation, itemElement.ContainingProject.DirectoryPath); 2635var excludeItemspec = new EvaluationItemSpec(itemElement.Exclude, _data.Expander, itemElement.ExcludeLocation, itemElement.ContainingProject.DirectoryPath); 2675var removeSpec = new EvaluationItemSpec(itemElement.Remove, _data.Expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath); 2747return _data.EvaluatedItemElements; 2798EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec, _data.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true); 2862foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject)) 2877foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject)) 2893return _data.Properties[name]; 2908return _data.GetPropertyValue(name); 2930ProjectProperty property = _data.Properties[name]; 2948_data.Properties[name] = property; 2963ProjectPropertyInstance existing = _data.GlobalPropertiesDictionary[name]; 2969_data.GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(name, escapedValue)); 2970_data.Properties.Set(ProjectProperty.Create(Owner, name, escapedValue, isGlobalProperty: true, mayBeReserved: false, loggingContext: null)); 3108ICollection<ProjectItem> items = _data.GetItems(itemType); 3122ICollection<ProjectItem> items = _data.ItemsIgnoringCondition[itemType]; 3139ICollection<ProjectItem> items = _data.GetItemsByEvaluatedInclude(evaluatedInclude); 3170bool result = _data.Properties.Remove(property.Name); 3184bool result = _data.GlobalPropertiesDictionary.Remove(name); 3262string result = _data.Expander.ExpandIntoStringAndUnescape(unexpandedValue, ExpanderOptions.ExpandPropertiesAndItems, ProjectFileLocation); 3365if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3449string evaluatedExistingInclude = _data.Expander.ExpandIntoStringLeaveEscaped(candidateExistingItemXml.Include, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation); 3480_data.RemoveItem(item); 3490_data.AddItem(item); 3491_data.AddItemIgnoringCondition(item); 3503string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandProperties, propertyLocation); 3533_data.Expander, 3557ErrorUtilities.VerifyThrow(_data.Expander.Metadata == null, "Should be null"); 3559_data.Expander.Metadata = metadataTable; 3560string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandAll, metadataLocation); 3561_data.Expander.Metadata = null; 3600_data.Expander, 3607_data.AddItem(item); 3608_data.AddItemIgnoringCondition(item); 3660bool result = _data.RemoveItem(item); 3707return new ProjectInstance(_data, DirectoryPath, FullPath, ProjectCollection.HostServices, ProjectCollection.EnvironmentProperties, settings); 3718_data, 3741if (_data.ImportClosure != null) 3743foreach (ResolvedImport import in _data.ImportClosure) 3754_data.HasUnsavedChanges = false; 3927IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);