1 write to _data
Microsoft.Build (1)
Definition\Project.cs (1)
3800_data = new Data(Owner, globalPropertiesCollection, toolsVersion, subToolsetVersion, canEvaluateElementsWithFalseConditions);
71 references to _data
Microsoft.Build (71)
Definition\Project.cs (71)
2026public Data TestOnlyGetPrivateData => _data; 2080foreach (ResolvedImport import in _data.ImportClosure) 2109return _data.GlobalPropertiesDictionary.Contains(key); 2118return _data.GlobalPropertiesDictionary.Count; 2127foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2148if (_data.GlobalPropertiesDictionary.Count == 0) 2153var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default); 2154foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2171public override ICollection<string> ItemTypes => _data.ItemTypes; 2177public override ICollection<ProjectProperty> Properties => new ReadOnlyCollection<ProjectProperty>(_data.Properties); 2200if (_data.ConditionedProperties == null) 2205return new ObjectModel.ReadOnlyDictionary<string, List<string>>(_data.ConditionedProperties); 2213public override IDictionary<string, ProjectItemDefinition> ItemDefinitions => _data.ItemDefinitions; 2219public override ICollection<ProjectItem> Items => new ReadOnlyCollection<ProjectItem>(_data.Items); 2234if (!(_data.ShouldEvaluateForDesignTime && _data.CanEvaluateElementsWithFalseConditions)) 2239return new ReadOnlyCollection<ProjectItem>(_data.ItemsIgnoringCondition); 2257var imports = new List<ResolvedImport>(_data.ImportClosure.Count - 1 /* outer project */); 2259foreach (ResolvedImport import in _data.ImportClosure) 2280var imports = new List<ResolvedImport>(_data.ImportClosureWithDuplicates.Count - 1 /* outer project */); 2282foreach (var import in _data.ImportClosureWithDuplicates) 2304if (_data.Targets == null) 2309return new ObjectModel.ReadOnlyDictionary<string, ProjectTargetInstance>(_data.Targets); 2324ICollection<ProjectProperty> allEvaluatedProperties = _data.AllEvaluatedProperties; 2346ICollection<ProjectMetadata> allEvaluatedItemDefinitionMetadata = _data.AllEvaluatedItemDefinitionMetadata; 2370ICollection<ProjectItem> allEvaluatedItems = _data.AllEvaluatedItems; 2391public override string ToolsVersion => _data.Toolset.ToolsVersion; 2397public override string SubToolsetVersion => _data.SubToolsetVersion; 2490public override int LastEvaluationId => _data.EvaluationId; 2495public ISet<string> GlobalPropertiesToTreatAsLocal => _data.GlobalPropertiesToTreatAsLocal; 2620var includeItemspec = new EvaluationItemSpec(itemElement.Include, _data.Expander, itemElement.IncludeLocation, itemElement.ContainingProject.DirectoryPath); 2636var excludeItemspec = new EvaluationItemSpec(itemElement.Exclude, _data.Expander, itemElement.ExcludeLocation, itemElement.ContainingProject.DirectoryPath); 2676var removeSpec = new EvaluationItemSpec(itemElement.Remove, _data.Expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath); 2748return _data.EvaluatedItemElements; 2799EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec, _data.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true); 2863foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject)) 2878foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject)) 2894return _data.Properties[name]; 2909return _data.GetPropertyValue(name); 2931ProjectProperty property = _data.Properties[name]; 2949_data.Properties[name] = property; 2964ProjectPropertyInstance existing = _data.GlobalPropertiesDictionary[name]; 2970_data.GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(name, escapedValue)); 2971_data.Properties.Set(ProjectProperty.Create(Owner, name, escapedValue, isGlobalProperty: true, mayBeReserved: false, loggingContext: null)); 3109ICollection<ProjectItem> items = _data.GetItems(itemType); 3123ICollection<ProjectItem> items = _data.ItemsIgnoringCondition[itemType]; 3140ICollection<ProjectItem> items = _data.GetItemsByEvaluatedInclude(evaluatedInclude); 3171bool result = _data.Properties.Remove(property.Name); 3185bool result = _data.GlobalPropertiesDictionary.Remove(name); 3263string result = _data.Expander.ExpandIntoStringAndUnescape(unexpandedValue, ExpanderOptions.ExpandPropertiesAndItems, ProjectFileLocation); 3366if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3450string evaluatedExistingInclude = _data.Expander.ExpandIntoStringLeaveEscaped(candidateExistingItemXml.Include, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation); 3481_data.RemoveItem(item); 3491_data.AddItem(item); 3492_data.AddItemIgnoringCondition(item); 3504string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandProperties, propertyLocation); 3534_data.Expander, 3558ErrorUtilities.VerifyThrow(_data.Expander.Metadata == null, "Should be null"); 3560_data.Expander.Metadata = metadataTable; 3561string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandAll, metadataLocation); 3562_data.Expander.Metadata = null; 3602_data.Expander, 3609_data.AddItem(item); 3610_data.AddItemIgnoringCondition(item); 3662bool result = _data.RemoveItem(item); 3709return new ProjectInstance(_data, DirectoryPath, FullPath, ProjectCollection.HostServices, ProjectCollection.EnvironmentProperties, settings); 3720_data, 3743if (_data.ImportClosure != null) 3745foreach (ResolvedImport import in _data.ImportClosure) 3756_data.HasUnsavedChanges = false; 3929IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);