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