1 write to _data
Microsoft.Build (1)
Definition\Project.cs (1)
3850_data = new Data(Owner, globalPropertiesCollection, toolsVersion, subToolsetVersion, canEvaluateElementsWithFalseConditions);
71 references to _data
Microsoft.Build (71)
Definition\Project.cs (71)
2060public Data TestOnlyGetPrivateData => _data; 2114foreach (ResolvedImport import in _data.ImportClosure) 2143return _data.GlobalPropertiesDictionary.Contains(key); 2152return _data.GlobalPropertiesDictionary.Count; 2161foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2182if (_data.GlobalPropertiesDictionary.Count == 0) 2187var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default); 2188foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2205public override ICollection<string> ItemTypes => _data.ItemTypes; 2211public override ICollection<ProjectProperty> Properties => new ReadOnlyCollection<ProjectProperty>(_data.Properties); 2234if (_data.ConditionedProperties == null) 2239return new ObjectModel.ReadOnlyDictionary<string, List<string>>(_data.ConditionedProperties); 2251return _data.ItemDefinitions; 2263return new ReadOnlyCollection<ProjectItem>(_data.Items); 2280if (!(_data.ShouldEvaluateForDesignTime && _data.CanEvaluateElementsWithFalseConditions)) 2285return new ReadOnlyCollection<ProjectItem>(_data.ItemsIgnoringCondition); 2303var imports = new List<ResolvedImport>(_data.ImportClosure.Count - 1 /* outer project */); 2305foreach (ResolvedImport import in _data.ImportClosure) 2326var imports = new List<ResolvedImport>(_data.ImportClosureWithDuplicates.Count - 1 /* outer project */); 2328foreach (var import in _data.ImportClosureWithDuplicates) 2350if (_data.Targets == null) 2355return new ObjectModel.ReadOnlyDictionary<string, ProjectTargetInstance>(_data.Targets); 2370ICollection<ProjectProperty> allEvaluatedProperties = _data.AllEvaluatedProperties; 2392ICollection<ProjectMetadata> allEvaluatedItemDefinitionMetadata = _data.AllEvaluatedItemDefinitionMetadata; 2416ICollection<ProjectItem> allEvaluatedItems = _data.AllEvaluatedItems; 2437public override string ToolsVersion => _data.Toolset.ToolsVersion; 2443public override string SubToolsetVersion => _data.SubToolsetVersion; 2525public override int LastEvaluationId => _data.EvaluationId; 2530public ISet<string> GlobalPropertiesToTreatAsLocal => _data.GlobalPropertiesToTreatAsLocal; 2655var includeItemspec = new EvaluationItemSpec(itemElement.Include, _data.Expander, itemElement.IncludeLocation, itemElement.ContainingProject.DirectoryPath); 2685var excludeItemspec = new EvaluationItemSpec(itemElement.Exclude, _data.Expander, itemElement.ExcludeLocation, itemElement.ContainingProject.DirectoryPath); 2725var removeSpec = new EvaluationItemSpec(itemElement.Remove, _data.Expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath); 2797return _data.EvaluatedItemElements; 2848EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec, _data.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true); 2912foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject)) 2927foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject)) 2943return _data.Properties[name]; 2958return _data.GetPropertyValue(name); 2980ProjectProperty property = _data.Properties[name]; 2998_data.Properties[name] = property; 3013ProjectPropertyInstance existing = _data.GlobalPropertiesDictionary[name]; 3019_data.GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(name, escapedValue)); 3020_data.Properties.Set(ProjectProperty.Create(Owner, name, escapedValue, isGlobalProperty: true, mayBeReserved: false, loggingContext: null)); 3158ICollection<ProjectItem> items = _data.GetItems(itemType); 3172ICollection<ProjectItem> items = _data.ItemsIgnoringCondition[itemType]; 3189ICollection<ProjectItem> items = _data.GetItemsByEvaluatedInclude(evaluatedInclude); 3220bool result = _data.Properties.Remove(property.Name); 3234bool result = _data.GlobalPropertiesDictionary.Remove(name); 3312string result = _data.Expander.ExpandIntoStringAndUnescape(unexpandedValue, ExpanderOptions.ExpandPropertiesAndItems, ProjectFileLocation); 3416if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3500string evaluatedExistingInclude = _data.Expander.ExpandIntoStringLeaveEscaped(candidateExistingItemXml.Include, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation); 3531_data.RemoveItem(item); 3541_data.AddItem(item); 3542_data.AddItemIgnoringCondition(item); 3554string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandProperties, propertyLocation); 3584_data.Expander, 3608Assumed.Null(_data.Expander.Metadata, "Should be null"); 3610_data.Expander.Metadata = metadataTable; 3611string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandAll, metadataLocation); 3612_data.Expander.Metadata = null; 3651_data.Expander, 3658_data.AddItem(item); 3659_data.AddItemIgnoringCondition(item); 3711bool result = _data.RemoveItem(item); 3758return new ProjectInstance(_data, DirectoryPath, FullPath, ProjectCollection.HostServices, ProjectCollection.EnvironmentProperties, settings); 3769_data, 3793if (_data.ImportClosure != null) 3795foreach (ResolvedImport import in _data.ImportClosure) 3806_data.HasUnsavedChanges = false; 3979IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);