1 write to _data
Microsoft.Build (1)
Definition\Project.cs (1)
3798
_data
= new Data(Owner, globalPropertiesCollection, toolsVersion, subToolsetVersion, canEvaluateElementsWithFalseConditions);
71 references to _data
Microsoft.Build (71)
Definition\Project.cs (71)
2025
public Data TestOnlyGetPrivateData =>
_data
;
2079
foreach (ResolvedImport import in
_data
.ImportClosure)
2108
return
_data
.GlobalPropertiesDictionary.Contains(key);
2117
return
_data
.GlobalPropertiesDictionary.Count;
2126
foreach (ProjectPropertyInstance property in
_data
.GlobalPropertiesDictionary)
2147
if (
_data
.GlobalPropertiesDictionary.Count == 0)
2152
var dictionary = new Dictionary<string, string>(
_data
.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default);
2153
foreach (ProjectPropertyInstance property in
_data
.GlobalPropertiesDictionary)
2170
public override ICollection<string> ItemTypes =>
_data
.ItemTypes;
2176
public override ICollection<ProjectProperty> Properties => new ReadOnlyCollection<ProjectProperty>(
_data
.Properties);
2199
if (
_data
.ConditionedProperties == null)
2204
return new ObjectModel.ReadOnlyDictionary<string, List<string>>(
_data
.ConditionedProperties);
2212
public override IDictionary<string, ProjectItemDefinition> ItemDefinitions =>
_data
.ItemDefinitions;
2218
public override ICollection<ProjectItem> Items => new ReadOnlyCollection<ProjectItem>(
_data
.Items);
2233
if (!(
_data
.ShouldEvaluateForDesignTime &&
_data
.CanEvaluateElementsWithFalseConditions))
2238
return new ReadOnlyCollection<ProjectItem>(
_data
.ItemsIgnoringCondition);
2256
var imports = new List<ResolvedImport>(
_data
.ImportClosure.Count - 1 /* outer project */);
2258
foreach (ResolvedImport import in
_data
.ImportClosure)
2279
var imports = new List<ResolvedImport>(
_data
.ImportClosureWithDuplicates.Count - 1 /* outer project */);
2281
foreach (var import in
_data
.ImportClosureWithDuplicates)
2303
if (
_data
.Targets == null)
2308
return new ObjectModel.ReadOnlyDictionary<string, ProjectTargetInstance>(
_data
.Targets);
2323
ICollection<ProjectProperty> allEvaluatedProperties =
_data
.AllEvaluatedProperties;
2345
ICollection<ProjectMetadata> allEvaluatedItemDefinitionMetadata =
_data
.AllEvaluatedItemDefinitionMetadata;
2369
ICollection<ProjectItem> allEvaluatedItems =
_data
.AllEvaluatedItems;
2390
public override string ToolsVersion =>
_data
.Toolset.ToolsVersion;
2396
public override string SubToolsetVersion =>
_data
.SubToolsetVersion;
2489
public override int LastEvaluationId =>
_data
.EvaluationId;
2494
public ISet<string> GlobalPropertiesToTreatAsLocal =>
_data
.GlobalPropertiesToTreatAsLocal;
2619
var includeItemspec = new EvaluationItemSpec(itemElement.Include,
_data
.Expander, itemElement.IncludeLocation, itemElement.ContainingProject.DirectoryPath);
2635
var excludeItemspec = new EvaluationItemSpec(itemElement.Exclude,
_data
.Expander, itemElement.ExcludeLocation, itemElement.ContainingProject.DirectoryPath);
2675
var removeSpec = new EvaluationItemSpec(itemElement.Remove,
_data
.Expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath);
2747
return
_data
.EvaluatedItemElements;
2798
EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec,
_data
.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true);
2862
foreach (ProjectRootElement import in
_data
.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject))
2877
foreach (ProjectRootElement import in
_data
.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject))
2893
return
_data
.Properties[name];
2908
return
_data
.GetPropertyValue(name);
2930
ProjectProperty property =
_data
.Properties[name];
2948
_data
.Properties[name] = property;
2963
ProjectPropertyInstance existing =
_data
.GlobalPropertiesDictionary[name];
2969
_data
.GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(name, escapedValue));
2970
_data
.Properties.Set(ProjectProperty.Create(Owner, name, escapedValue, isGlobalProperty: true, mayBeReserved: false, loggingContext: null));
3108
ICollection<ProjectItem> items =
_data
.GetItems(itemType);
3122
ICollection<ProjectItem> items =
_data
.ItemsIgnoringCondition[itemType];
3139
ICollection<ProjectItem> items =
_data
.GetItemsByEvaluatedInclude(evaluatedInclude);
3170
bool result =
_data
.Properties.Remove(property.Name);
3184
bool result =
_data
.GlobalPropertiesDictionary.Remove(name);
3262
string result =
_data
.Expander.ExpandIntoStringAndUnescape(unexpandedValue, ExpanderOptions.ExpandPropertiesAndItems, ProjectFileLocation);
3365
if (
_data
.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement)))
3449
string evaluatedExistingInclude =
_data
.Expander.ExpandIntoStringLeaveEscaped(candidateExistingItemXml.Include, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation);
3480
_data
.RemoveItem(item);
3490
_data
.AddItem(item);
3491
_data
.AddItemIgnoringCondition(item);
3503
string evaluatedValueEscaped =
_data
.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandProperties, propertyLocation);
3533
_data
.Expander,
3557
ErrorUtilities.VerifyThrow(
_data
.Expander.Metadata == null, "Should be null");
3559
_data
.Expander.Metadata = metadataTable;
3560
string evaluatedValueEscaped =
_data
.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.ExpandAll, metadataLocation);
3561
_data
.Expander.Metadata = null;
3600
_data
.Expander,
3607
_data
.AddItem(item);
3608
_data
.AddItemIgnoringCondition(item);
3660
bool result =
_data
.RemoveItem(item);
3707
return new ProjectInstance(
_data
, DirectoryPath, FullPath, ProjectCollection.HostServices, ProjectCollection.EnvironmentProperties, settings);
3718
_data
,
3741
if (
_data
.ImportClosure != null)
3743
foreach (ResolvedImport import in
_data
.ImportClosure)
3754
_data
.HasUnsavedChanges = false;
3927
IEnumerable<ProjectRootElement> children =
_data
.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);