1 write to _data
Microsoft.Build (1)
Definition\Project.cs (1)
3808_data = new Data(Owner, globalPropertiesCollection, toolsVersion, subToolsetVersion, canEvaluateElementsWithFalseConditions);
71 references to _data
Microsoft.Build (71)
Definition\Project.cs (71)
2031public Data TestOnlyGetPrivateData => _data; 2085foreach (ResolvedImport import in _data.ImportClosure) 2114return _data.GlobalPropertiesDictionary.Contains(key); 2123return _data.GlobalPropertiesDictionary.Count; 2132foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2153if (_data.GlobalPropertiesDictionary.Count == 0) 2158var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default); 2159foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2176public override ICollection<string> ItemTypes => _data.ItemTypes; 2182public override ICollection<ProjectProperty> Properties => new ReadOnlyCollection<ProjectProperty>(_data.Properties); 2205if (_data.ConditionedProperties == null) 2210return new ObjectModel.ReadOnlyDictionary<string, List<string>>(_data.ConditionedProperties); 2218public override IDictionary<string, ProjectItemDefinition> ItemDefinitions => _data.ItemDefinitions; 2224public override ICollection<ProjectItem> Items => new ReadOnlyCollection<ProjectItem>(_data.Items); 2239if (!(_data.ShouldEvaluateForDesignTime && _data.CanEvaluateElementsWithFalseConditions)) 2244return new ReadOnlyCollection<ProjectItem>(_data.ItemsIgnoringCondition); 2262var imports = new List<ResolvedImport>(_data.ImportClosure.Count - 1 /* outer project */); 2264foreach (ResolvedImport import in _data.ImportClosure) 2285var imports = new List<ResolvedImport>(_data.ImportClosureWithDuplicates.Count - 1 /* outer project */); 2287foreach (var import in _data.ImportClosureWithDuplicates) 2309if (_data.Targets == null) 2314return new ObjectModel.ReadOnlyDictionary<string, ProjectTargetInstance>(_data.Targets); 2329ICollection<ProjectProperty> allEvaluatedProperties = _data.AllEvaluatedProperties; 2351ICollection<ProjectMetadata> allEvaluatedItemDefinitionMetadata = _data.AllEvaluatedItemDefinitionMetadata; 2375ICollection<ProjectItem> allEvaluatedItems = _data.AllEvaluatedItems; 2396public override string ToolsVersion => _data.Toolset.ToolsVersion; 2402public override string SubToolsetVersion => _data.SubToolsetVersion; 2484public override int LastEvaluationId => _data.EvaluationId; 2489public ISet<string> GlobalPropertiesToTreatAsLocal => _data.GlobalPropertiesToTreatAsLocal; 2614var includeItemspec = new EvaluationItemSpec(itemElement.Include, _data.Expander, itemElement.IncludeLocation, itemElement.ContainingProject.DirectoryPath); 2644var excludeItemspec = new EvaluationItemSpec(itemElement.Exclude, _data.Expander, itemElement.ExcludeLocation, itemElement.ContainingProject.DirectoryPath); 2684var removeSpec = new EvaluationItemSpec(itemElement.Remove, _data.Expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath); 2756return _data.EvaluatedItemElements; 2807EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec, _data.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true); 2871foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject)) 2886foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject)) 2902return _data.Properties[name]; 2917return _data.GetPropertyValue(name); 2939ProjectProperty property = _data.Properties[name]; 2957_data.Properties[name] = property; 2972ProjectPropertyInstance existing = _data.GlobalPropertiesDictionary[name]; 2978_data.GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(name, escapedValue)); 2979_data.Properties.Set(ProjectProperty.Create(Owner, name, escapedValue, isGlobalProperty: true, mayBeReserved: false, loggingContext: null)); 3117ICollection<ProjectItem> items = _data.GetItems(itemType); 3131ICollection<ProjectItem> items = _data.ItemsIgnoringCondition[itemType]; 3148ICollection<ProjectItem> items = _data.GetItemsByEvaluatedInclude(evaluatedInclude); 3179bool result = _data.Properties.Remove(property.Name); 3193bool result = _data.GlobalPropertiesDictionary.Remove(name); 3271string result = _data.Expander.ExpandIntoStringAndUnescape(unexpandedValue, ExpanderOptions.ExpandPropertiesAndItems, ProjectFileLocation); 3374if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3458string evaluatedExistingInclude = _data.Expander.ExpandIntoStringLeaveEscaped(candidateExistingItemXml.Include, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation); 3489_data.RemoveItem(item); 3499_data.AddItem(item); 3500_data.AddItemIgnoringCondition(item); 3512string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandProperties, propertyLocation); 3542_data.Expander, 3566Assumed.Null(_data.Expander.Metadata, "Should be null"); 3568_data.Expander.Metadata = metadataTable; 3569string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandAll, metadataLocation); 3570_data.Expander.Metadata = null; 3609_data.Expander, 3616_data.AddItem(item); 3617_data.AddItemIgnoringCondition(item); 3669bool result = _data.RemoveItem(item); 3716return new ProjectInstance(_data, DirectoryPath, FullPath, ProjectCollection.HostServices, ProjectCollection.EnvironmentProperties, settings); 3727_data, 3751if (_data.ImportClosure != null) 3753foreach (ResolvedImport import in _data.ImportClosure) 3764_data.HasUnsavedChanges = false; 3937IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);