1 write to _data
Microsoft.Build (1)
Definition\Project.cs (1)
3680_data = new Data(Owner, globalPropertiesCollection, toolsVersion, subToolsetVersion, canEvaluateElementsWithFalseConditions);
69 references to _data
Microsoft.Build (69)
Definition\Project.cs (69)
2048public Data TestOnlyGetPrivateData => _data; 2102foreach (ResolvedImport import in _data.ImportClosure) 2131return _data.GlobalPropertiesDictionary.Contains(key); 2140return _data.GlobalPropertiesDictionary.Count; 2149foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2170if (_data.GlobalPropertiesDictionary.Count == 0) 2175var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default); 2176foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2193public override ICollection<string> ItemTypes => _data.ItemTypes; 2199public override ICollection<ProjectProperty> Properties => new ReadOnlyCollection<ProjectProperty>(_data.Properties); 2222if (_data.ConditionedProperties == null) 2227return new ObjectModel.ReadOnlyDictionary<string, List<string>>(_data.ConditionedProperties); 2239return _data.ItemDefinitions; 2251return new ReadOnlyCollection<ProjectItem>(_data.Items); 2268if (!(_data.ShouldEvaluateForDesignTime && _data.CanEvaluateElementsWithFalseConditions)) 2273return new ReadOnlyCollection<ProjectItem>(_data.ItemsIgnoringCondition); 2291var imports = new List<ResolvedImport>(_data.ImportClosure.Count - 1 /* outer project */); 2293foreach (ResolvedImport import in _data.ImportClosure) 2314var imports = new List<ResolvedImport>(_data.ImportClosureWithDuplicates.Count - 1 /* outer project */); 2316foreach (var import in _data.ImportClosureWithDuplicates) 2338if (_data.Targets == null) 2343return new ObjectModel.ReadOnlyDictionary<string, ProjectTargetInstance>(_data.Targets); 2358ICollection<ProjectProperty> allEvaluatedProperties = _data.AllEvaluatedProperties; 2380ICollection<ProjectMetadata> allEvaluatedItemDefinitionMetadata = _data.AllEvaluatedItemDefinitionMetadata; 2404ICollection<ProjectItem> allEvaluatedItems = _data.AllEvaluatedItems; 2425public override string ToolsVersion => _data.Toolset.ToolsVersion; 2431public override string SubToolsetVersion => _data.SubToolsetVersion; 2513public override int LastEvaluationId => _data.EvaluationId; 2518public ISet<string> GlobalPropertiesToTreatAsLocal => _data.GlobalPropertiesToTreatAsLocal; 2557return GlobResultBuilder.BuildGlobResults(projectItemElements, _data.Expander); 2627return _data.EvaluatedItemElements; 2678EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec, _data.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true); 2742foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject)) 2757foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject)) 2773return _data.Properties[name]; 2788return _data.GetPropertyValue(name); 2810ProjectProperty property = _data.Properties[name]; 2828_data.Properties[name] = property; 2843ProjectPropertyInstance existing = _data.GlobalPropertiesDictionary[name]; 2849_data.GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(name, escapedValue)); 2850_data.Properties.Set(ProjectProperty.Create(Owner, name, escapedValue, isGlobalProperty: true, mayBeReserved: false, loggingContext: null)); 2988ICollection<ProjectItem> items = _data.GetItems(itemType); 3002ICollection<ProjectItem> items = _data.ItemsIgnoringCondition[itemType]; 3019ICollection<ProjectItem> items = _data.GetItemsByEvaluatedInclude(evaluatedInclude); 3050bool result = _data.Properties.Remove(property.Name); 3064bool result = _data.GlobalPropertiesDictionary.Remove(name); 3142string result = _data.Expander.ExpandIntoStringAndUnescape(unexpandedValue, ExpanderOptions.ExpandPropertiesAndItems, ProjectFileLocation); 3246if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3330string evaluatedExistingInclude = _data.Expander.ExpandIntoStringLeaveEscaped(candidateExistingItemXml.Include, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation); 3361_data.RemoveItem(item); 3371_data.AddItem(item); 3372_data.AddItemIgnoringCondition(item); 3384string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandProperties, propertyLocation); 3414_data.Expander, 3438Assumed.Null(_data.Expander.Metadata, "Should be null"); 3440_data.Expander.Metadata = metadataTable; 3441string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandAll, metadataLocation); 3442_data.Expander.Metadata = null; 3481_data.Expander, 3488_data.AddItem(item); 3489_data.AddItemIgnoringCondition(item); 3541bool result = _data.RemoveItem(item); 3588return new ProjectInstance(_data, DirectoryPath, FullPath, ProjectCollection.HostServices, ProjectCollection.EnvironmentProperties, settings); 3599_data, 3623if (_data.ImportClosure != null) 3625foreach (ResolvedImport import in _data.ImportClosure) 3636_data.HasUnsavedChanges = false; 3809IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);