1 write to _data
Microsoft.Build (1)
Definition\Project.cs (1)
3819_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); 2655var excludeItemspec = new EvaluationItemSpec(itemElement.Exclude, _data.Expander, itemElement.ExcludeLocation, itemElement.ContainingProject.DirectoryPath); 2695var removeSpec = new EvaluationItemSpec(itemElement.Remove, _data.Expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath); 2767return _data.EvaluatedItemElements; 2818EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec, _data.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true); 2882foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject)) 2897foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject)) 2913return _data.Properties[name]; 2928return _data.GetPropertyValue(name); 2950ProjectProperty property = _data.Properties[name]; 2968_data.Properties[name] = property; 2983ProjectPropertyInstance existing = _data.GlobalPropertiesDictionary[name]; 2989_data.GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(name, escapedValue)); 2990_data.Properties.Set(ProjectProperty.Create(Owner, name, escapedValue, isGlobalProperty: true, mayBeReserved: false, loggingContext: null)); 3128ICollection<ProjectItem> items = _data.GetItems(itemType); 3142ICollection<ProjectItem> items = _data.ItemsIgnoringCondition[itemType]; 3159ICollection<ProjectItem> items = _data.GetItemsByEvaluatedInclude(evaluatedInclude); 3190bool result = _data.Properties.Remove(property.Name); 3204bool result = _data.GlobalPropertiesDictionary.Remove(name); 3282string result = _data.Expander.ExpandIntoStringAndUnescape(unexpandedValue, ExpanderOptions.ExpandPropertiesAndItems, ProjectFileLocation); 3385if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3469string evaluatedExistingInclude = _data.Expander.ExpandIntoStringLeaveEscaped(candidateExistingItemXml.Include, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation); 3500_data.RemoveItem(item); 3510_data.AddItem(item); 3511_data.AddItemIgnoringCondition(item); 3523string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandProperties, propertyLocation); 3553_data.Expander, 3577ErrorUtilities.VerifyThrow(_data.Expander.Metadata == null, "Should be null"); 3579_data.Expander.Metadata = metadataTable; 3580string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandAll, metadataLocation); 3581_data.Expander.Metadata = null; 3620_data.Expander, 3627_data.AddItem(item); 3628_data.AddItemIgnoringCondition(item); 3680bool result = _data.RemoveItem(item); 3727return new ProjectInstance(_data, DirectoryPath, FullPath, ProjectCollection.HostServices, ProjectCollection.EnvironmentProperties, settings); 3738_data, 3762if (_data.ImportClosure != null) 3764foreach (ResolvedImport import in _data.ImportClosure) 3775_data.HasUnsavedChanges = false; 3948IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);