3 types derived from ProjectProperty
Microsoft.Build (3)
Definition\ProjectProperty.cs (2)
345private class ProjectPropertyXmlBacked : ProjectProperty 531private class ProjectPropertyNotXmlBacked : ProjectProperty
ObjectModelRemoting\LinkedObjectFactory.cs (1)
311private class LinkedProjectProperty : ProjectProperty, ILinkableObject, IImmutableInstanceProvider<ProjectPropertyInstance>
191 references to ProjectProperty
Microsoft.Build (93)
Definition\Project.cs (44)
27using EvaluationItemExpressionFragment = Microsoft.Build.Evaluation.ItemSpec<Microsoft.Build.Evaluation.ProjectProperty, Microsoft.Build.Evaluation.ProjectItem>.ItemExpressionFragment; 28using EvaluationItemSpec = Microsoft.Build.Evaluation.ItemSpec<Microsoft.Build.Evaluation.ProjectProperty, Microsoft.Build.Evaluation.ProjectItem>; 635public ICollection<ProjectProperty> Properties => implementation.Properties; 708public ICollection<ProjectProperty> AllEvaluatedProperties => implementation.AllEvaluatedProperties; 1110public static string GetPropertyValueEscaped(ProjectProperty property) 1132public ProjectProperty GetProperty(string name) 1166public ProjectProperty SetProperty(string name, string unevaluatedValue) 1293public bool RemoveProperty(ProjectProperty property) 2176public override ICollection<ProjectProperty> Properties => new ReadOnlyCollection<ProjectProperty>(_data.Properties); 2319public override ICollection<ProjectProperty> AllEvaluatedProperties 2323ICollection<ProjectProperty> allEvaluatedProperties = _data.AllEvaluatedProperties; 2327return ReadOnlyEmptyCollection<ProjectProperty>.Instance; 2330return new ReadOnlyCollection<ProjectProperty>(allEvaluatedProperties); 2891public override ProjectProperty GetProperty(string name) 2925public override ProjectProperty SetProperty(string name, string unevaluatedValue) 2930ProjectProperty property = _data.Properties[name]; 2946property = ProjectProperty.Create(Owner, propertyElement, unevaluatedValue, null /* predecessor unknown */); 2970_data.Properties.Set(ProjectProperty.Create(Owner, name, escapedValue, isGlobalProperty: true, mayBeReserved: false, loggingContext: null)); 3153public override bool RemoveProperty(ProjectProperty property) 3528List<ProjectItem> items = Evaluator<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.CreateItemsFromInclude( 3595List<ProjectItem> items = Evaluator<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.CreateItemsFromInclude( 3717Evaluator<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.Evaluate( 4009internal class Data : IItemProvider<ProjectItem>, IPropertyProvider<ProjectProperty>, IEvaluatorData<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition> 4047IEnumerable<ProjectItemDefinition> IEvaluatorData<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.ItemDefinitionsEnumerable => ItemDefinitions.Values; 4137public PropertyDictionary<ProjectProperty> Properties { get; private set; } 4187internal IList<ProjectProperty> AllEvaluatedProperties { get; private set; } 4211internal Expander<ProjectProperty, ProjectItem> Expander { get; private set; } 4267Properties = new PropertyDictionary<ProjectProperty>(); 4272Expander = new Expander<ProjectProperty, ProjectItem>(Properties, Items, evaluationContext, loggingContext); 4277AllEvaluatedProperties = new List<ProjectProperty>(); 4386public void AddToAllEvaluatedPropertiesList(ProjectProperty property) 4440public ProjectProperty SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable = false) 4442ProjectProperty property = ProjectProperty.Create(Project, name, evaluatedValueEscaped, isGlobalProperty, mayBeReserved, loggingContext); 4453public ProjectProperty SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext) 4455ProjectProperty predecessor = GetProperty(propertyElement.Name); 4456ProjectProperty property = ProjectProperty.Create(Project, propertyElement, evaluatedValueEscaped, predecessor); 4514string IEvaluatorData<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.ExpandString(string unexpandedValue) 4561public ProjectProperty GetProperty(string name) 4570public ProjectProperty GetProperty(string name, int startIndex, int endIndex) 4628ProjectProperty property = Properties[name];
Definition\ProjectItem.cs (3)
503if (metadatum != null && Expander<ProjectProperty, ProjectItem>.ExpressionMayContainExpandableExpressions(metadatum.EvaluatedValueEscaped)) 505Expander<ProjectProperty, ProjectItem> expander = new Expander<ProjectProperty, ProjectItem>(null, null, new BuiltInMetadataTable(this), FileSystems.Default);
Definition\ProjectProperty.cs (13)
22public abstract class ProjectProperty : IKeyed, IValued, IProperty, IEquatable<ProjectProperty> 208public abstract ProjectProperty Predecessor 253bool IEquatable<ProjectProperty>.Equals(ProjectProperty other) 279internal static ProjectProperty Create(Project project, string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext = null) 291internal static ProjectProperty Create(Project project, ProjectPropertyElement xml, string evaluatedValueEscaped, ProjectProperty predecessor) 333ProjectProperty property = project.GetProperty(propertyName); 462public override ProjectProperty Predecessor 496private ProjectProperty _predecessor; 504internal ProjectPropertyXmlBackedWithPredecessor(Project project, ProjectPropertyElement xml, string evaluatedValueEscaped, ProjectProperty predecessor) 519public override ProjectProperty Predecessor 655public override ProjectProperty Predecessor
Evaluation\Evaluator.cs (1)
832(p is ProjectProperty pp && pp.IsEnvironmentProperty)) &&
Evaluation\ProjectParser.cs (1)
10using Expander = Microsoft.Build.Evaluation.Expander<Microsoft.Build.Evaluation.ProjectProperty, Microsoft.Build.Evaluation.ProjectItem>;
Instance\ProjectInstance.cs (9)
654this.CreatePropertiesSnapshot(new ReadOnlyCollection<ProjectProperty>(data.Properties), immutable); 1008ICollection<ProjectProperty> linkedProjectProperties = linkedProject.Properties; 1011out IDictionary<string, ProjectProperty> elementsDictionary, 1012out IDictionary<(string, int, int), ProjectProperty> constrainedElementsDictionary); 1014var hashSet = new ImmutableValuedElementCollectionConverter<ProjectProperty, ProjectPropertyInstance>( 1022private static ProjectPropertyInstance ConvertCachedPropertyToInstance(ProjectProperty property) 3044private static ProjectPropertyInstance InstantiateProjectPropertyInstance(ProjectProperty property, bool isImmutable) 3445private void CreatePropertiesSnapshot(ICollection<ProjectProperty> properties, bool isImmutable) 3449foreach (ProjectProperty property in properties)
Instance\ProjectItemInstance.cs (1)
1335if (metadatum != null && Expander<ProjectProperty, ProjectItem>.ExpressionMayContainExpandableExpressions(metadatum.EvaluatedValueEscaped))
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (5)
51public abstract ICollection<ProjectProperty> Properties { get; } 91public abstract ICollection<ProjectProperty> AllEvaluatedProperties { get; } 166public abstract ProjectProperty GetProperty(string name); 176public abstract ProjectProperty SetProperty(string name, string unevaluatedValue); 211public abstract bool RemoveProperty(ProjectProperty property);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectPropertyLink.cs (13)
13/// Allow for creating a local representation to external object of type <see cref="ProjectProperty"/> 18/// Access to remote <see cref="ProjectProperty.Project"/>. 23/// Access to remote <see cref="ProjectProperty.Xml"/>. 28/// Access to remote <see cref="ProjectProperty.Name"/>. 34/// Allow implement the <see cref="ProjectProperty.EvaluatedValue"/> for remoted objects. 39/// Access to remote <see cref="ProjectProperty.UnevaluatedValue"/>. 44/// Access to remote <see cref="ProjectProperty.IsEnvironmentProperty"/>. 49/// Access to remote <see cref="ProjectProperty.IsGlobalProperty"/>. 54/// Access to remote <see cref="ProjectProperty.IsReservedProperty"/>. 59/// Access to remote <see cref="ProjectProperty.Predecessor"/>. 61public abstract ProjectProperty Predecessor { get; } 64/// Access to remote <see cref="ProjectProperty.IsImported"/>. 71public static string GetEvaluatedValueEscaped(ProjectProperty property)
ObjectModelRemoting\LinkedObjectFactory.cs (2)
112public ProjectProperty Create(ProjectPropertyLink link, Project project = null) 355public override ProjectProperty Predecessor => Link.Predecessor;
Utilities\Utilities.cs (1)
643else if (properties is PropertyDictionary<ProjectProperty> propertyDictionary)
Microsoft.Build.Engine.OM.UnitTests (55)
Definition\DefinitionEditing_Tests.cs (4)
1592var property = project.SetProperty("p", "v1"); 1607var property = project.SetProperty("p", "v1"); 1782var property = project.SetProperty("p", "v1"); 1801var property = project.SetProperty("p", "v1");
Definition\EditingElementsReferencedByOrReferences_Tests.cs (1)
323ProjectProperty property = project.GetProperty("P");
Definition\Project_Tests.cs (2)
1640ProjectProperty property1 = project.GetProperty("p"); 1650ProjectProperty property2 = project.GetProperty("p");
Definition\ProjectProperty_Tests.cs (13)
30ProjectProperty property = project.SetProperty("p", "v"); 49ProjectProperty property = GetFirstProperty(content); 72ProjectProperty property = GetFirstProperty(content); 87ProjectProperty property = project.SetProperty("p", "v1"); 104ProjectProperty property = project.SetProperty("p", "v1"); 122ProjectProperty property = project.SetProperty("p", "v1"); 139ProjectProperty property = project.GetProperty("MSBuildProjectDirectory"); 156ProjectProperty property = project.GetProperty(varName); 226ProjectProperty property = project.SetProperty("p1", "v1"); 245ProjectProperty property = project.SetProperty("p1", "v1"); 274ProjectProperty property = project.GetProperty("p"); 286private static ProjectProperty GetFirstProperty(string content) 292ProjectProperty property = project.GetProperty("p");
Definition\ProtectImports_Tests.cs (4)
135ProjectProperty property = GetProperty(project); 166ProjectProperty property = GetProperty(project); 617private ProjectProperty GetProperty(Project project) 619ProjectProperty property = project.GetProperty(PropertyName);
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
250if (VerifyCheckType<ProjectProperty>(view, real, context, Verify))
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (6)
81public ProjectProperty SetPropertyWithVerify(ObjectType where, string name, string unevaluatedValue) 84var added = toAdd.SetProperty(name, unevaluatedValue); 89var view = this.View.GetProperty(name); 90var real = this.Real.GetProperty(name); 99public static void Verify(ProjectProperty view, ProjectProperty real, ValidationContext context)
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (4)
353var fooView = pair.SetPropertyWithVerify(ObjectType.View, "fooProp", "fooValue$(xxx)"); 354var fooReal = pair.Real.GetProperty("fooProp"); 363var fooRealNew = pair.Real.GetProperty("fooProp"); 364var fooViewNew = pair.View.GetProperty("fooProp");
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (15)
41=> this.OwningCollection.ExportCollection<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.Properties); 58=> this.OwningCollection.ExportCollection<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.AllEvaluatedProperties); 91public MockProjectPropertyLinkRemoter GetProperty(string name) => this.OwningCollection.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.GetProperty(name)); 103=> this.Source.RemoveProperty(this.OwningCollection.Import<ProjectProperty, MockProjectPropertyLinkRemoter>(propertyRemoter)); 113=> this.OwningCollection.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.SetProperty(name, unevaluatedValue)); 141public override ICollection<ProjectProperty> Properties => this.Linker.ImportCollection<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Proxy.Properties); 158public override ICollection<ProjectProperty> AllEvaluatedProperties 159=> this.Linker.ImportCollection<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Proxy.AllEvaluatedProperties); 228public override ProjectProperty GetProperty(string name) => this.Linker.Import<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Proxy.GetProperty(name)); 240public override bool RemoveProperty(ProjectProperty property) => this.Proxy.RemoveProperty(this.Linker.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(property)); 245public override ProjectProperty SetProperty(string name, string unevaluatedValue) => this.Linker.Import<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Proxy.SetProperty(name, unevaluatedValue));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectPropertyLink.cs (5)
12internal sealed class MockProjectPropertyLinkRemoter : MockLinkRemoter<ProjectProperty> 14public override ProjectProperty CreateLinkedObject(IImportHolder holder) 29public MockProjectPropertyLinkRemoter Predecessor => this.OwningCollection.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.Predecessor); 55public override ProjectProperty Predecessor => this.Linker.Import<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Proxy.Predecessor);
Microsoft.Build.Engine.UnitTests (41)
Definition\ProjectEvaluationContext_Tests.cs (2)
871var searchedPath = project.GetProperty("SearchedPath"); 927var searchedPath = project.GetProperty("SearchedPath");
Evaluation\Evaluator_Tests.cs (18)
1451ProjectProperty property = project.GetProperty("p"); 1501ProjectProperty property = project.SetProperty("outdir", "x"); // Outdir is set in microsoft.common.targets 1917IDictionary<string, ProjectProperty> allEvaluatedPropertiesWithNoBackingXmlAndNoDuplicates = new Dictionary<string, ProjectProperty>(StringComparer.OrdinalIgnoreCase); 1922foreach (ProjectProperty property in project.AllEvaluatedProperties.TakeWhile(property => property.Xml == null)) 1928IEnumerable<ProjectProperty> nonImportedProperties = project.Properties.Where(property => property.Xml == null); 1934foreach (ProjectProperty property in nonImportedProperties) 1936ProjectProperty propertyFromAllEvaluated = null; 1949IEnumerable<ProjectProperty> restOfAllEvaluatedProperties = project.AllEvaluatedProperties.SkipWhile(property => property.Xml == null); 2079IDictionary<string, ProjectProperty> allEvaluatedPropertiesWithNoBackingXmlAndNoDuplicates = new Dictionary<string, ProjectProperty>(StringComparer.OrdinalIgnoreCase); 2086foreach (ProjectProperty property in project.AllEvaluatedProperties.Where(property => property.Xml == null)) 2092IEnumerable<ProjectProperty> nonImportedProperties = project.Properties.Where(property => property.Xml == null); 2098foreach (ProjectProperty property in nonImportedProperties) 2100ProjectProperty propertyFromAllEvaluated = null; 2113IEnumerable<ProjectProperty> restOfAllEvaluatedProperties = project.AllEvaluatedProperties.Where(property => property.Xml != null); 2216IEnumerable<ProjectProperty> nonImportedProperties = project.Properties.Where(property => property.Xml == null); 2221foreach (ProjectProperty property in project.AllEvaluatedProperties)
Evaluation\IntrinsicFunctionOverload_Tests.cs (20)
39ProjectProperty? actualProperty = project.GetProperty("Actual"); 61ProjectProperty? actualProperty = project.GetProperty("Actual"); 83ProjectProperty? actualProperty = project.GetProperty("Actual"); 105ProjectProperty? actualProperty = project.GetProperty("Actual"); 125ProjectProperty? actualProperty = project.GetProperty("Actual"); 147ProjectProperty? actualProperty = project.GetProperty("Actual"); 169ProjectProperty? actualProperty = project.GetProperty("Actual"); 191ProjectProperty? actualProperty = project.GetProperty("Actual"); 211ProjectProperty? actualProperty = project.GetProperty("Actual"); 233ProjectProperty? actualProperty = project.GetProperty("Actual"); 255ProjectProperty? actualProperty = project.GetProperty("Actual"); 277ProjectProperty? actualProperty = project.GetProperty("Actual"); 297ProjectProperty? actualProperty = project.GetProperty("Actual"); 319ProjectProperty? actualProperty = project.GetProperty("Actual"); 341ProjectProperty? actualProperty = project.GetProperty("Actual"); 363ProjectProperty? actualProperty = project.GetProperty("Actual"); 383ProjectProperty? actualProperty = project.GetProperty("Actual"); 405ProjectProperty? actualProperty = project.GetProperty("Actual"); 427ProjectProperty? actualProperty = project.GetProperty("Actual"); 449ProjectProperty? actualProperty = project.GetProperty("Actual");
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
823ProjectProperty property = project.GetProperty(propertyName);
Microsoft.DotNet.Arcade.Sdk (2)
src\InstallDotNetCore.cs (2)
80System.Linq.ILookup<string, ProjectProperty> properties = null; 115ProjectProperty property = properties[propertyName].FirstOrDefault();