1 write to _data
Microsoft.Build (1)
Definition\Project.cs (1)
3805_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; 2495public override int LastEvaluationId => _data.EvaluationId; 2500public ISet<string> GlobalPropertiesToTreatAsLocal => _data.GlobalPropertiesToTreatAsLocal; 2625var includeItemspec = new EvaluationItemSpec(itemElement.Include, _data.Expander, itemElement.IncludeLocation, itemElement.ContainingProject.DirectoryPath); 2641var excludeItemspec = new EvaluationItemSpec(itemElement.Exclude, _data.Expander, itemElement.ExcludeLocation, itemElement.ContainingProject.DirectoryPath); 2681var removeSpec = new EvaluationItemSpec(itemElement.Remove, _data.Expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath); 2753return _data.EvaluatedItemElements; 2804EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec, _data.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true); 2868foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject)) 2883foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject)) 2899return _data.Properties[name]; 2914return _data.GetPropertyValue(name); 2936ProjectProperty property = _data.Properties[name]; 2954_data.Properties[name] = property; 2969ProjectPropertyInstance existing = _data.GlobalPropertiesDictionary[name]; 2975_data.GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(name, escapedValue)); 2976_data.Properties.Set(ProjectProperty.Create(Owner, name, escapedValue, isGlobalProperty: true, mayBeReserved: false, loggingContext: null)); 3114ICollection<ProjectItem> items = _data.GetItems(itemType); 3128ICollection<ProjectItem> items = _data.ItemsIgnoringCondition[itemType]; 3145ICollection<ProjectItem> items = _data.GetItemsByEvaluatedInclude(evaluatedInclude); 3176bool result = _data.Properties.Remove(property.Name); 3190bool result = _data.GlobalPropertiesDictionary.Remove(name); 3268string result = _data.Expander.ExpandIntoStringAndUnescape(unexpandedValue, ExpanderOptions.ExpandPropertiesAndItems, ProjectFileLocation); 3371if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3455string evaluatedExistingInclude = _data.Expander.ExpandIntoStringLeaveEscaped(candidateExistingItemXml.Include, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation); 3486_data.RemoveItem(item); 3496_data.AddItem(item); 3497_data.AddItemIgnoringCondition(item); 3509string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandProperties, propertyLocation); 3539_data.Expander, 3563ErrorUtilities.VerifyThrow(_data.Expander.Metadata == null, "Should be null"); 3565_data.Expander.Metadata = metadataTable; 3566string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandAll, metadataLocation); 3567_data.Expander.Metadata = null; 3606_data.Expander, 3613_data.AddItem(item); 3614_data.AddItemIgnoringCondition(item); 3666bool result = _data.RemoveItem(item); 3713return new ProjectInstance(_data, DirectoryPath, FullPath, ProjectCollection.HostServices, ProjectCollection.EnvironmentProperties, settings); 3724_data, 3748if (_data.ImportClosure != null) 3750foreach (ResolvedImport import in _data.ImportClosure) 3761_data.HasUnsavedChanges = false; 3934IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);