2 types derived from ProjectPropertyInstance
Microsoft.Build (2)
Instance\ProjectPropertyInstance.cs (2)
350
private class ProjectPropertyInstanceImmutable :
ProjectPropertyInstance
371
internal class EnvironmentDerivedProjectPropertyInstance :
ProjectPropertyInstance
1 instantiation of ProjectPropertyInstance
Microsoft.Build (1)
Instance\ProjectPropertyInstance.cs (1)
341
new
ProjectPropertyInstance
(name, escapedValue);
1404 references to ProjectPropertyInstance
Microsoft.Build (470)
BackEnd\BuildManager\BuildParameters.cs (15)
137
private PropertyDictionary<
ProjectPropertyInstance
> _environmentProperties = new PropertyDictionary<
ProjectPropertyInstance
>();
147
private PropertyDictionary<
ProjectPropertyInstance
> _globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>();
245
Initialize(new PropertyDictionary<
ProjectPropertyInstance
>(projectCollection.EnvironmentProperties), projectCollection.ProjectRootElementCache, new ToolsetProvider(projectCollection.Toolsets));
252
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(projectCollection.GlobalPropertiesCollection);
279
_environmentProperties = other._environmentProperties != null ? new PropertyDictionary<
ProjectPropertyInstance
>(other._environmentProperties) : null;
281
_globalProperties = other._globalProperties != null ? new PropertyDictionary<
ProjectPropertyInstance
>(other._globalProperties) : null;
426
return new ReadOnlyConvertingDictionary<string,
ProjectPropertyInstance
, string>(_environmentProperties,
461
return new ReadOnlyConvertingDictionary<string,
ProjectPropertyInstance
, string>(_globalProperties,
467
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(value.Count);
470
_globalProperties[property.Key] =
ProjectPropertyInstance
.Create(property.Key, property.Value);
707
internal PropertyDictionary<
ProjectPropertyInstance
> EnvironmentPropertiesInternal
721
internal PropertyDictionary<
ProjectPropertyInstance
> GlobalPropertiesInternal => _globalProperties;
976
private void Initialize(PropertyDictionary<
ProjectPropertyInstance
> environmentProperties, ProjectRootElementCacheBase projectRootElementCache, ToolsetProvider toolsetProvider)
BackEnd\BuildManager\BuildRequestData.cs (7)
150
GlobalPropertiesDictionary = new PropertyDictionary<
ProjectPropertyInstance
>(globalProperties.Count);
153
GlobalPropertiesDictionary.Set(
ProjectPropertyInstance
.Create(propertyPair.Key, propertyPair.Value));
193
public ICollection<
ProjectPropertyInstance
> GlobalProperties => (GlobalPropertiesDictionary == null) ?
194
(ICollection<
ProjectPropertyInstance
>)ReadOnlyEmptyCollection<
ProjectPropertyInstance
>.Instance :
195
new ReadOnlyCollection<
ProjectPropertyInstance
>(GlobalPropertiesDictionary);
224
internal PropertyDictionary<
ProjectPropertyInstance
>? GlobalPropertiesDictionary { get; }
BackEnd\BuildManager\GlobalPropertiesLookup.cs (5)
18
PropertyDictionary<
ProjectPropertyInstance
>? backing)
28
private GlobalPropertiesLookup(IDictionary<string,
ProjectPropertyInstance
> backingProperties)
33
private readonly IDictionary<string,
ProjectPropertyInstance
> _backingProperties;
47
if (_backingProperties.TryGetValue(key, out
var
property))
62
private static string? ExtractEscapedValue(
ProjectPropertyInstance
property) => ((IValued)property).EscapedValue;
BackEnd\Components\Communications\TranslatorExtensions.cs (7)
30
public static void TranslateProjectPropertyInstanceDictionary(this ITranslator translator, ref PropertyDictionary<
ProjectPropertyInstance
> value)
42
value = new PropertyDictionary<
ProjectPropertyInstance
>(count);
45
ProjectPropertyInstance
instance = null;
46
translator.Translate(ref instance,
ProjectPropertyInstance
.FactoryForDeserialization);
55
foreach (
ProjectPropertyInstance
instance in value)
57
ProjectPropertyInstance
instanceForSerialization = instance;
58
translator.Translate(ref instanceForSerialization,
ProjectPropertyInstance
.FactoryForDeserialization);
BackEnd\Components\Logging\ProjectLoggingContext.cs (8)
12
using static Microsoft.Build.Execution.
ProjectPropertyInstance
;
123
PropertyDictionary<
ProjectPropertyInstance
> projectProperties,
159
PropertyDictionary<
ProjectPropertyInstance
> projectProperties,
190
PropertyDictionary<
ProjectPropertyInstance
> projectProperties,
229
PropertyDictionary<
ProjectPropertyInstance
> projectPropertiesToSerialize = new PropertyDictionary<
ProjectPropertyInstance
>();
232
ProjectPropertyInstance
instance = projectProperties[propertyToGet];
241
properties = projectPropertiesToSerialize.Select((
ProjectPropertyInstance
property) => new DictionaryEntry(property.Name, property.EvaluatedValue));
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
330
foreach (
ProjectPropertyInstance
property in configuration.GlobalProperties)
626
foreach (
ProjectPropertyInstance
property in configuration.GlobalProperties)
BackEnd\Components\RequestBuilder\FullTracking.cs (2)
92
internal static IDisposable Track(string targetName, string taskName, string projectRootDirectory, PropertyDictionary<
ProjectPropertyInstance
> projectProperties)
96
ProjectPropertyInstance
tlogRelativeDirectoryProperty = projectProperties[FullTrackingDirectoryPropertyName];
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (8)
384
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander,
550
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander)
617
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander,
621
ItemSpec<
ProjectPropertyInstance
, ProjectItemInstance> itemSpec = new ItemSpec<
ProjectPropertyInstance
, ProjectItemInstance>(child.Remove, expander, child.RemoveLocation, Project.Directory, true);
623
itemSpec.Fragments.All(f => f is ItemSpec<
ProjectPropertyInstance
, ProjectItemInstance>.ItemExpressionFragment),
628
MetadataTrie<
ProjectPropertyInstance
, ProjectItemInstance> metadataSet = new MetadataTrie<
ProjectPropertyInstance
, ProjectItemInstance>(matchingOptions, matchOnMetadata, itemSpec);
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
93
bucket.Lookup.SetProperty(
ProjectPropertyInstance
.Create(property.Name, evaluatedValue, property.Location, Project.IsImmutable));
BackEnd\Components\RequestBuilder\IRequestBuilderCallback.cs (1)
29
Task<BuildResult[]> BuildProjects(string[] projectFiles, PropertyDictionary<
ProjectPropertyInstance
>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets = false);
BackEnd\Components\RequestBuilder\ItemBucket.cs (3)
31
private Expander<
ProjectPropertyInstance
, ProjectItemInstance> _expander;
112
_expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(_lookup, _lookup, new StringMetadataTable(_metadata), FileSystems.Default, loggingContext);
157
internal Expander<
ProjectPropertyInstance
, ProjectItemInstance> Expander
BackEnd\Components\RequestBuilder\Lookup.cs (18)
57
internal class Lookup : IPropertyProvider<
ProjectPropertyInstance
>, IItemProvider<ProjectItemInstance>
92
internal Lookup(IItemDictionary<ProjectItemInstance> projectItems, PropertyDictionary<
ProjectPropertyInstance
> properties)
148
private PropertyDictionary<
ProjectPropertyInstance
> PrimaryPropertySets
178
private PropertyDictionary<
ProjectPropertyInstance
> SecondaryProperties
184
private PropertyDictionary<
ProjectPropertyInstance
> SecondaryPropertySets
206
foreach (
ProjectPropertyInstance
property in PrimaryPropertySets)
404
SecondaryProperties ??= new PropertyDictionary<
ProjectPropertyInstance
>(PrimaryPropertySets.Count);
415
public
ProjectPropertyInstance
GetProperty(string name, int startIndex, int endIndex)
423
ProjectPropertyInstance
property = scope.PropertySets.GetProperty(name, startIndex, endIndex);
432
ProjectPropertyInstance
property = scope.Properties.GetProperty(name, startIndex, endIndex);
453
public
ProjectPropertyInstance
GetProperty(string name)
627
internal void SetProperty(
ProjectPropertyInstance
property)
633
PrimaryPropertySets ??= new PropertyDictionary<
ProjectPropertyInstance
>();
1338
private PropertyDictionary<
ProjectPropertyInstance
> _properties;
1343
private PropertyDictionary<
ProjectPropertyInstance
> _propertySets;
1366
internal Scope(Lookup lookup, string description, IItemDictionary<ProjectItemInstance> items, PropertyDictionary<
ProjectPropertyInstance
> properties)
1420
internal PropertyDictionary<
ProjectPropertyInstance
> Properties
1428
internal PropertyDictionary<
ProjectPropertyInstance
> PropertySets
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
332
public async Task<BuildResult[]> BuildProjects(string[] projectFiles, PropertyDictionary<
ProjectPropertyInstance
>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets = false)
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
323
async Task<BuildResult[]> IRequestBuilderCallback.BuildProjects(string[] projectFiles, Microsoft.Build.Collections.PropertyDictionary<
ProjectPropertyInstance
>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets)
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
119
private Expander<
ProjectPropertyInstance
, ProjectItemInstance> _expander;
189
_expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(baseLookup, baseLookup, FileSystems.Default, loggingContext);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
520
private IDictionary<string, string> GatherTaskIdentityParameters(Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander)
832
bucket.Lookup.SetProperty(
ProjectPropertyInstance
.Create(ReservedPropertyNames.lastTaskResult, taskResult ? "true" : "false", true/* may be reserved */, _buildRequestEntry.RequestConfiguration.Project.IsImmutable));
1209
lookup.SetProperty(
ProjectPropertyInstance
.Create(propertyName, taskParameterValue, taskPropertyInstance.TaskParameterLocation, _buildRequestEntry.RequestConfiguration.Project.IsImmutable));
BackEnd\Components\RequestBuilder\TaskHost.cs (4)
1178
PropertyDictionary<
ProjectPropertyInstance
>[] propertyDictionaries = new PropertyDictionary<
ProjectPropertyInstance
>[projectFileNames.Length];
1183
propertyDictionaries[i] = new PropertyDictionary<
ProjectPropertyInstance
>(_requestEntry.RequestConfiguration.Project.GlobalPropertiesDictionary);
1190
propertyDictionaries[i].Set(
ProjectPropertyInstance
.Create(entry.Key as string, entry.Value as string, _taskLocation));
BackEnd\Components\Scheduler\Scheduler.cs (2)
2047
return string.Join("; ", configuration.GlobalProperties.Select<
ProjectPropertyInstance
, string>(p => $"{p.Name}={p.EvaluatedValue}"));
2721
foreach (
ProjectPropertyInstance
property in _configCache[config].GlobalProperties)
BackEnd\Shared\BuildRequestConfiguration.cs (11)
66
private PropertyDictionary<
ProjectPropertyInstance
> _globalProperties;
98
private List<
ProjectPropertyInstance
> _transferredProperties;
189
_transferredProperties = new List<
ProjectPropertyInstance
>();
365
public PropertyDictionary<
ProjectPropertyInstance
> GlobalProperties => _globalProperties;
395
foreach (
var
property in _transferredProperties)
456
foreach (
ProjectPropertyInstance
property in GlobalProperties)
519
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(_globalProperties);
522
_globalProperties[key] =
ProjectPropertyInstance
.Create(key, "Forces unique project identity in the MSBuild engine");
927
translator.TranslateDictionary(ref _globalProperties,
ProjectPropertyInstance
.FactoryForDeserialization);
929
translator.Translate(ref _transferredProperties,
ProjectPropertyInstance
.FactoryForDeserialization);
950
translator.TranslateDictionary(ref _globalProperties,
ProjectPropertyInstance
.FactoryForDeserialization);
BackEnd\Shared\ConfigurationMetadata.cs (7)
28
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(configuration.GlobalProperties);
39
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(project.GlobalPropertiesCount);
42
_globalProperties[entry.Key] =
ProjectPropertyInstance
.Create(entry.Key, entry.Value);
52
public ConfigurationMetadata(string projectFullPath, PropertyDictionary<
ProjectPropertyInstance
> globalProperties)
84
private PropertyDictionary<
ProjectPropertyInstance
> _globalProperties;
89
public PropertyDictionary<
ProjectPropertyInstance
> GlobalProperties => _globalProperties;
109
translator.TranslateDictionary(ref _globalProperties,
ProjectPropertyInstance
.FactoryForDeserialization);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
1498
_batchBucket.Lookup.SetProperty(
ProjectPropertyInstance
.Create(outputTargetName, outputString, parameterLocation, _projectInstance.IsImmutable));
1585
_batchBucket.Lookup.SetProperty(
ProjectPropertyInstance
.Create(outputTargetName, outputString, parameterLocation, _projectInstance.IsImmutable));
Construction\Solution\SolutionProjectGenerator.cs (2)
1735
ProjectPropertyInstance
outdir = metaprojectInstance.GetProperty("OutDir");
2077
foreach (
ProjectPropertyInstance
globalProperty in traversalProject.GlobalPropertiesDictionary)
Definition\Project.cs (12)
2126
foreach (
ProjectPropertyInstance
property in _data.GlobalPropertiesDictionary)
2153
foreach (
ProjectPropertyInstance
property in _data.GlobalPropertiesDictionary)
2963
ProjectPropertyInstance
existing = _data.GlobalPropertiesDictionary[name];
2969
_data.GlobalPropertiesDictionary.Set(
ProjectPropertyInstance
.Create(name, escapedValue));
3770
var globalPropertiesCollection = new PropertyDictionary<
ProjectPropertyInstance
>();
3771
foreach (
ProjectPropertyInstance
property in ProjectCollection.GlobalPropertiesCollection)
3773
ProjectPropertyInstance
clone = property.DeepClone();
3786
globalPropertiesCollection.Set(
ProjectPropertyInstance
.Create(pair.Key, subToolsetVersion));
3790
globalPropertiesCollection.Set(
ProjectPropertyInstance
.Create(pair.Key, pair.Value));
4026
internal Data(Project project, PropertyDictionary<
ProjectPropertyInstance
> globalProperties, string explicitToolsVersion, string explicitSubToolsetVersion, bool CanEvaluateElementsWithFalseConditions)
4061
public PropertyDictionary<
ProjectPropertyInstance
> GlobalPropertiesDictionary { get; }
4066
public PropertyDictionary<
ProjectPropertyInstance
> EnvironmentVariablePropertiesDictionary => this.Project.ProjectCollection.EnvironmentProperties;
Definition\ProjectCollection.cs (15)
149
private readonly PropertyDictionary<
ProjectPropertyInstance
> _globalProperties;
154
private PropertyDictionary<
ProjectPropertyInstance
> _environmentProperties;
342
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(globalProperties.Count);
348
_globalProperties.Set(
ProjectPropertyInstance
.Create(pair.Key, pair.Value));
368
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>();
571
foreach (
ProjectPropertyInstance
property in _globalProperties)
867
internal PropertyDictionary<
ProjectPropertyInstance
> GlobalPropertiesCollection
872
var clone = new PropertyDictionary<
ProjectPropertyInstance
>();
876
foreach (
ProjectPropertyInstance
property in _globalProperties)
889
internal PropertyDictionary<
ProjectPropertyInstance
> EnvironmentProperties
897
return new PropertyDictionary<
ProjectPropertyInstance
>(SharedReadOnlyEnvironmentProperties);
904
internal PropertyDictionary<
ProjectPropertyInstance
> SharedReadOnlyEnvironmentProperties
1427
public
ProjectPropertyInstance
GetGlobalProperty(string name)
1444
ProjectPropertyInstance
propertyInGlobalProperties = _globalProperties.GetProperty(name);
1448
_globalProperties.Set(
ProjectPropertyInstance
.Create(name, value));
Definition\SubToolset.cs (5)
32
private PropertyDictionary<
ProjectPropertyInstance
> _properties;
37
internal SubToolset(string subToolsetVersion, PropertyDictionary<
ProjectPropertyInstance
> properties)
67
public IDictionary<string,
ProjectPropertyInstance
> Properties
73
return ReadOnlyEmptyDictionary<string,
ProjectPropertyInstance
>.Instance;
76
return new ObjectModel.ReadOnlyDictionary<string,
ProjectPropertyInstance
>(_properties);
Definition\Toolset.cs (37)
131
private PropertyDictionary<
ProjectPropertyInstance
> _properties;
146
private PropertyDictionary<
ProjectPropertyInstance
> _environmentProperties;
151
private PropertyDictionary<
ProjectPropertyInstance
> _globalProperties;
191
private Expander<
ProjectPropertyInstance
, ProjectItemInstance> _expander;
252
_properties = new PropertyDictionary<
ProjectPropertyInstance
>();
257
_properties.Set(
ProjectPropertyInstance
.Create(keyValuePair.Key, keyValuePair.Value, true));
271
internal Toolset(string toolsVersion, string toolsPath, PropertyDictionary<
ProjectPropertyInstance
> environmentProperties, PropertyDictionary<
ProjectPropertyInstance
> globalProperties, string msbuildOverrideTasksPath, string defaultOverrideToolsVersion)
304
PropertyDictionary<
ProjectPropertyInstance
> buildProperties,
305
PropertyDictionary<
ProjectPropertyInstance
> environmentProperties,
306
PropertyDictionary<
ProjectPropertyInstance
> globalProperties,
316
? new PropertyDictionary<
ProjectPropertyInstance
>(buildProperties)
317
: new PropertyDictionary<
ProjectPropertyInstance
>();
349
internal Toolset(string toolsVersion, string toolsPath, PropertyDictionary<
ProjectPropertyInstance
> buildProperties, ProjectCollection projectCollection, DirectoryGetFiles getFiles, LoadXmlFromPath loadXmlFromPath, string msbuildOverrideTasksPath, DirectoryExists directoryExists)
434
public IDictionary<string,
ProjectPropertyInstance
> Properties
440
return ReadOnlyEmptyDictionary<string,
ProjectPropertyInstance
>.Instance;
443
return new ObjectModel.ReadOnlyDictionary<string,
ProjectPropertyInstance
>(_properties);
664
public
ProjectPropertyInstance
GetProperty(string propertyName, string subToolsetVersion)
667
ProjectPropertyInstance
property = null;
750
internal string GenerateSubToolsetVersion(PropertyDictionary<
ProjectPropertyInstance
> overrideGlobalProperties)
754
ProjectPropertyInstance
subToolsetProperty = overrideGlobalProperties[Constants.SubToolsetVersionPropertyName];
786
ProjectPropertyInstance
visualStudioVersionProperty = _globalProperties[Constants.SubToolsetVersionPropertyName];
797
ProjectPropertyInstance
visualStudioVersionProperty = _environmentProperties[Constants.SubToolsetVersionPropertyName];
902
List<
ProjectPropertyInstance
> reservedProperties = new List<
ProjectPropertyInstance
>();
904
reservedProperties.Add(
ProjectPropertyInstance
.Create(ReservedPropertyNames.binPath, EscapingUtilities.Escape(ToolsPath), mayBeReserved: true));
905
reservedProperties.Add(
ProjectPropertyInstance
.Create(ReservedPropertyNames.toolsVersion, ToolsVersion, mayBeReserved: true));
907
reservedProperties.Add(
ProjectPropertyInstance
.Create(ReservedPropertyNames.toolsPath, EscapingUtilities.Escape(ToolsPath), mayBeReserved: true));
908
reservedProperties.Add(
ProjectPropertyInstance
.Create(ReservedPropertyNames.assemblyVersion, Constants.AssemblyVersion, mayBeReserved: true));
909
reservedProperties.Add(
ProjectPropertyInstance
.Create(ReservedPropertyNames.version, MSBuildAssemblyFileVersion.Instance.MajorMinorBuild, mayBeReserved: true));
911
reservedProperties.Add(
ProjectPropertyInstance
.Create(ReservedPropertyNames.msbuildRuntimeType,
928
ICollection<
ProjectPropertyInstance
> subToolsetProperties = null;
939
PropertyDictionary<
ProjectPropertyInstance
> propertyBag = new PropertyDictionary<
ProjectPropertyInstance
>(count);
954
propertyBag.Set(
ProjectPropertyInstance
.Create(Constants.SubToolsetVersionPropertyName, subToolsetVersion));
964
_expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(propertyBag, FileSystems.Default, loggingContext);
1038
TaskRegistry.InitializeTaskRegistryFromUsingTaskElements<
ProjectPropertyInstance
, ProjectItemInstance>(
Definition\ToolsetConfigurationReader.cs (4)
61
internal ToolsetConfigurationReader(PropertyDictionary<
ProjectPropertyInstance
> environmentProperties, PropertyDictionary<
ProjectPropertyInstance
> globalProperties)
69
internal ToolsetConfigurationReader(PropertyDictionary<
ProjectPropertyInstance
> environmentProperties, PropertyDictionary<
ProjectPropertyInstance
> globalProperties, Func<Configuration> readApplicationConfiguration)
Definition\ToolsetLocalReader.cs (2)
19
internal ToolsetLocalReader(PropertyDictionary<
ProjectPropertyInstance
> environmentProperties, PropertyDictionary<
ProjectPropertyInstance
> globalProperties)
Definition\ToolsetReader.cs (34)
33
private PropertyDictionary<
ProjectPropertyInstance
> _globalProperties;
38
private readonly PropertyDictionary<
ProjectPropertyInstance
> _environmentProperties;
44
PropertyDictionary<
ProjectPropertyInstance
> environmentProperties,
45
PropertyDictionary<
ProjectPropertyInstance
> globalProperties)
88
internal static string ReadAllToolsets(Dictionary<string, Toolset> toolsets, PropertyDictionary<
ProjectPropertyInstance
> environmentProperties, PropertyDictionary<
ProjectPropertyInstance
> globalProperties, ToolsetDefinitionLocations locations)
108
PropertyDictionary<
ProjectPropertyInstance
> environmentProperties,
109
PropertyDictionary<
ProjectPropertyInstance
> globalProperties,
113
new PropertyDictionary<
ProjectPropertyInstance
>(environmentProperties);
171
var props = new PropertyDictionary<
ProjectPropertyInstance
>();
231
new PropertyDictionary<
ProjectPropertyInstance
>(),
346
PropertyDictionary<
ProjectPropertyInstance
> globalProperties,
347
PropertyDictionary<
ProjectPropertyInstance
> initialProperties,
404
PropertyDictionary<
ProjectPropertyInstance
> globalProperties,
405
PropertyDictionary<
ProjectPropertyInstance
> initialProperties,
418
PropertyDictionary<
ProjectPropertyInstance
> initialPropertiesClone = new PropertyDictionary<
ProjectPropertyInstance
>(initialProperties);
438
PropertyDictionary<
ProjectPropertyInstance
> globalProperties,
439
PropertyDictionary<
ProjectPropertyInstance
> initialProperties,
448
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
452
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(initialProperties, FileSystems.Default);
467
PropertyDictionary<
ProjectPropertyInstance
> subToolsetProperties = new PropertyDictionary<
ProjectPropertyInstance
>();
521
private void EvaluateAndSetProperty(ToolsetPropertyDefinition property, PropertyDictionary<
ProjectPropertyInstance
> properties, PropertyDictionary<
ProjectPropertyInstance
> globalProperties, PropertyDictionary<
ProjectPropertyInstance
> initialProperties, bool accumulateProperties, ref string toolsPath, ref string binPath, ref Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander)
570
expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(initialProperties, FileSystems.Default);
578
private string ExpandPropertyUnescaped(ToolsetPropertyDefinition property, Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander)
595
private void SetProperty(ToolsetPropertyDefinition property, PropertyDictionary<
ProjectPropertyInstance
> propertyGroup, PropertyDictionary<
ProjectPropertyInstance
> globalProperties)
602
propertyGroup.Set(
ProjectPropertyInstance
.Create(property.Name, EscapingUtilities.UnescapeAll(property.Value), true /* may be reserved */, false /* not immutable */));
Definition\ToolsetRegistryReader.cs (4)
54
internal ToolsetRegistryReader(PropertyDictionary<
ProjectPropertyInstance
> environmentProperties, PropertyDictionary<
ProjectPropertyInstance
> globalProperties)
62
internal ToolsetRegistryReader(PropertyDictionary<
ProjectPropertyInstance
> environmentProperties, PropertyDictionary<
ProjectPropertyInstance
> globalProperties, RegistryKeyWrapper msbuildRegistryWrapper)
Evaluation\Evaluator.cs (12)
29
using static Microsoft.Build.Execution.
ProjectPropertyInstance
;
159
private readonly PropertyDictionary<
ProjectPropertyInstance
> _environmentProperties;
203
PropertyDictionary<
ProjectPropertyInstance
> environmentProperties,
303
PropertyDictionary<
ProjectPropertyInstance
> environmentProperties,
796
ProjectPropertyInstance
configurationData = _data.GlobalPropertiesDictionary["currentsolutionconfigurationcontents"];
800
foreach (
var
entry in _data.GlobalPropertiesDictionary)
1197
foreach (
ProjectPropertyInstance
environmentProperty in _environmentProperties)
1208
foreach (
ProjectPropertyInstance
toolsetProperty in _data.Toolset.Properties.Values)
1234
foreach (
ProjectPropertyInstance
subToolsetProperty in subToolset.Properties.Values)
1252
foreach (
ProjectPropertyInstance
globalProperty in _data.GlobalPropertiesDictionary)
1283
((IDictionary<string,
ProjectPropertyInstance
>)_data.GlobalPropertiesDictionary).ContainsKey(propertyElement.Name) &&
2145
new ReadOnlyConvertingDictionary<string,
ProjectPropertyInstance
, string>(
Evaluation\Expander.cs (1)
1581
if (property is
ProjectPropertyInstance
.EnvironmentDerivedProjectPropertyInstance environmentDerivedProperty)
Evaluation\IEvaluatorData.cs (2)
90
PropertyDictionary<
ProjectPropertyInstance
> GlobalPropertiesDictionary
211
PropertyDictionary<
ProjectPropertyInstance
> EnvironmentVariablePropertiesDictionary { get; }
Evaluation\LazyItemEvaluator.EvaluatorData.cs (2)
125
public PropertyDictionary<
ProjectPropertyInstance
> GlobalPropertiesDictionary
133
public PropertyDictionary<
ProjectPropertyInstance
> EnvironmentVariablePropertiesDictionary
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (2)
137
public PropertyDictionary<
ProjectPropertyInstance
> GlobalPropertiesDictionary => _wrapped.GlobalPropertiesDictionary;
150
public PropertyDictionary<
ProjectPropertyInstance
> EnvironmentVariablePropertiesDictionary => _wrapped.EnvironmentVariablePropertiesDictionary;
Evaluation\ToolsetProvider.cs (4)
29
public ToolsetProvider(string defaultToolsVersion, PropertyDictionary<
ProjectPropertyInstance
> environmentProperties, PropertyDictionary<
ProjectPropertyInstance
> globalProperties, ToolsetDefinitionLocations toolsetDefinitionLocations)
102
private void InitializeToolsetCollection(PropertyDictionary<
ProjectPropertyInstance
> environmentProperties, PropertyDictionary<
ProjectPropertyInstance
> globalProperties, ToolsetDefinitionLocations toolsetDefinitionLocations)
Graph\GraphBuilder.cs (7)
425
void AddGraphBuildGlobalVariable(PropertyDictionary<
ProjectPropertyInstance
> globalPropertyDictionary)
429
globalPropertyDictionary[PropertyNames.IsGraphBuild] =
ProjectPropertyInstance
.Create(PropertyNames.IsGraphBuild, "true");
626
private static PropertyDictionary<
ProjectPropertyInstance
> CreatePropertyDictionary(IDictionary<string, string> properties)
628
PropertyDictionary<
ProjectPropertyInstance
> propertyDictionary;
631
propertyDictionary = new PropertyDictionary<
ProjectPropertyInstance
>(0);
635
propertyDictionary = new PropertyDictionary<
ProjectPropertyInstance
>(properties.Count);
638
propertyDictionary[entry.Key] =
ProjectPropertyInstance
.Create(entry.Key, entry.Value);
Graph\ProjectInterpretation.cs (10)
124
PropertyDictionary<
ProjectPropertyInstance
> referenceGlobalProperties = GetGlobalPropertiesForItem(
203
static void SetProperty(PropertyDictionary<
ProjectPropertyInstance
> properties, string propertyName, string propertyValue)
205
ProjectPropertyInstance
propertyInstance =
ProjectPropertyInstance
.Create(propertyName, propertyValue);
379
private static PropertyDictionary<
ProjectPropertyInstance
> GetGlobalPropertiesForItem(
381
PropertyDictionary<
ProjectPropertyInstance
> requesterGlobalProperties,
402
var globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(requesterGlobalProperties);
413
PropertyDictionary<
ProjectPropertyInstance
> destination,
418
destination[pair.Key] =
ProjectPropertyInstance
.Create(pair.Key, pair.Value);
458
PropertyDictionary<
ProjectPropertyInstance
> properties,
Instance\IImmutableInstanceProvider.cs (1)
7
/// Represents an object that is immutable and has an Instance, e.g. a <see cref="
ProjectPropertyInstance
"/>.
Instance\ImmutableProjectCollections\ImmutableGlobalPropertiesCollectionConverter.cs (40)
31
internal class ImmutableGlobalPropertiesCollectionConverter : IRetrievableEntryHashSet<
ProjectPropertyInstance
>
34
private readonly PropertyDictionary<
ProjectPropertyInstance
> _allProperties;
39
PropertyDictionary<
ProjectPropertyInstance
> allProperties)
46
public
ProjectPropertyInstance
this[string key]
66
public ICollection<
ProjectPropertyInstance
> Values => _values;
68
public void Add(
ProjectPropertyInstance
item) => throw new NotSupportedException();
70
public void Add(string key,
ProjectPropertyInstance
value) => throw new NotSupportedException();
72
public void Add(KeyValuePair<string,
ProjectPropertyInstance
> item) => throw new NotSupportedException();
76
public bool Contains(
ProjectPropertyInstance
item) => _values.Contains(item);
78
public bool Contains(KeyValuePair<string,
ProjectPropertyInstance
> itemKvp) => _values.Contains(itemKvp.Value);
82
public void CopyTo(
ProjectPropertyInstance
[] array) => _values.CopyTo(array, arrayIndex: 0);
84
public void CopyTo(
ProjectPropertyInstance
[] array, int arrayIndex) => _values.CopyTo(array, arrayIndex);
86
public void CopyTo(
ProjectPropertyInstance
[] array, int arrayIndex, int count) => _values.CopyTo(array, arrayIndex, count);
88
public void CopyTo(KeyValuePair<string,
ProjectPropertyInstance
>[] array, int arrayIndex)
95
ProjectPropertyInstance
instance = _allProperties[itemKey];
98
array[currentIndex] = new KeyValuePair<string,
ProjectPropertyInstance
>(itemKey, instance);
104
public
ProjectPropertyInstance
Get(string key)
109
public
ProjectPropertyInstance
Get(string key, int index, int length)
114
ProjectPropertyInstance
actualProperty = _allProperties.Get(key, index, length);
123
public IEnumerator<
ProjectPropertyInstance
> GetEnumerator() => _values.GetEnumerator();
129
public bool Remove(
ProjectPropertyInstance
item) => throw new NotSupportedException();
133
public bool Remove(KeyValuePair<string,
ProjectPropertyInstance
> item) => throw new NotSupportedException();
139
public bool TryGetValue(string key, out
ProjectPropertyInstance
value)
141
ProjectPropertyInstance
instance = Get(key);
146
public void UnionWith(IEnumerable<
ProjectPropertyInstance
> other) => throw new NotSupportedException();
148
IEnumerator<KeyValuePair<string,
ProjectPropertyInstance
>> IEnumerable<KeyValuePair<string,
ProjectPropertyInstance
>>.GetEnumerator()
152
ProjectPropertyInstance
instance = _allProperties[itemKey];
155
yield return new KeyValuePair<string,
ProjectPropertyInstance
>(itemKey, instance);
162
private class ValuesCollection : ICollection<
ProjectPropertyInstance
>
175
public void Add(
ProjectPropertyInstance
item) => throw new NotSupportedException();
179
public bool Remove(
ProjectPropertyInstance
item) => throw new NotSupportedException();
181
public bool Contains(
ProjectPropertyInstance
item)
188
ProjectPropertyInstance
actualInstance = _parent._allProperties[item.Name];
198
public void CopyTo(
ProjectPropertyInstance
[] array, int arrayIndex)
203
public void CopyTo(
ProjectPropertyInstance
[] array, int arrayIndex, int count)
216
ProjectPropertyInstance
instance = _parent._allProperties[itemKey];
226
public IEnumerator<
ProjectPropertyInstance
> GetEnumerator()
230
ProjectPropertyInstance
instance = _parent._allProperties[itemKey];
242
ProjectPropertyInstance
instance = _parent._allProperties[itemKey];
Instance\ProjectInstance.cs (128)
77
public class ProjectInstance : IPropertyProvider<
ProjectPropertyInstance
>, IItemProvider<ProjectItemInstance>, IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>, ITranslatable
105
private PropertyDictionary<
ProjectPropertyInstance
> _globalProperties;
121
private PropertyDictionary<
ProjectPropertyInstance
> _properties;
126
private PropertyDictionary<
ProjectPropertyInstance
> _environmentVariableProperties;
389
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(project.GlobalPropertiesCount);
392
_globalProperties.Set(
ProjectPropertyInstance
.Create(property.Key, property.Value));
457
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(globalPropertiesRetrievableHashSet);
535
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(globalProperties.Count);
539
_properties = new PropertyDictionary<
ProjectPropertyInstance
>(projectToInheritFrom._properties); // This brings along the reserved properties, which are important.
560
IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance> thisAsIEvaluatorData = this;
566
_globalProperties[property.Key] =
ProjectPropertyInstance
.Create(property.Key, property.Value, false /* may not be reserved */, _isImmutable);
641
internal ProjectInstance(Evaluation.Project.Data data, string directory, string fullPath, HostServices hostServices, PropertyDictionary<
ProjectPropertyInstance
> environmentVariableProperties, ProjectInstanceSettings settings)
711
_properties = new PropertyDictionary<
ProjectPropertyInstance
>(that._properties.Count);
713
foreach (
ProjectPropertyInstance
property in that.Properties)
725
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(that._globalProperties.Count);
727
foreach (
ProjectPropertyInstance
globalProperty in that.GlobalPropertiesDictionary)
733
new PropertyDictionary<
ProjectPropertyInstance
>(that._environmentVariableProperties.Count);
735
foreach (
ProjectPropertyInstance
environmentProperty in that._environmentVariableProperties)
742
((IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance,
744
((IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance,
746
((IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance,
748
((IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance,
774
_properties = new PropertyDictionary<
ProjectPropertyInstance
>(filter.PropertyFilters.Count);
775
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(filter.PropertyFilters.Count);
777
new PropertyDictionary<
ProjectPropertyInstance
>(filter.PropertyFilters.Count);
782
var
regularProperty = that.GetProperty(desiredProperty);
788
var
globalProperty = that.GetProperty(desiredProperty);
794
var
environmentProperty = that.GetProperty(desiredProperty);
1006
private static PropertyDictionary<
ProjectPropertyInstance
> GetImmutablePropertyDictionaryFromImmutableProject(Project linkedProject)
1014
var hashSet = new ImmutableValuedElementCollectionConverter<ProjectProperty,
ProjectPropertyInstance
>(
1019
return new PropertyDictionary<
ProjectPropertyInstance
>(hashSet);
1022
private static
ProjectPropertyInstance
ConvertCachedPropertyToInstance(ProjectProperty property)
1024
ProjectPropertyInstance
result = null;
1026
if (property is IImmutableInstanceProvider<
ProjectPropertyInstance
> instanceProvider)
1082
foreach (
ProjectPropertyInstance
property in _globalProperties)
1114
bool IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.CanEvaluateElementsWithFalseConditions => false;
1119
public ICollection<
ProjectPropertyInstance
> Properties
1125
(ICollection<
ProjectPropertyInstance
>)ReadOnlyEmptyCollection<
ProjectPropertyInstance
>.Instance :
1126
new ReadOnlyCollection<
ProjectPropertyInstance
>(_properties);
1281
TaskRegistry IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.TaskRegistry
1298
Toolset IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Toolset
1309
string IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SubToolsetVersion
1323
string IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ExplicitToolsVersion
1333
PropertyDictionary<
ProjectPropertyInstance
> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GlobalPropertiesDictionary
1340
PropertyDictionary<
ProjectPropertyInstance
> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.EnvironmentVariablePropertiesDictionary
1348
ISet<string> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GlobalPropertiesToTreatAsLocal
1364
PropertyDictionary<
ProjectPropertyInstance
> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Properties
1374
IEnumerable<ProjectItemDefinitionInstance> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ItemDefinitionsEnumerable
1384
IItemDictionary<ProjectItemInstance> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Items
1395
List<string> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.InitialTargets
1413
List<string> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.DefaultTargets
1431
IDictionary<string, List<TargetSpecification>> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.BeforeTargets
1441
IDictionary<string, List<TargetSpecification>> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AfterTargets
1454
Dictionary<string, List<string>> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ConditionedProperties
1468
bool IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ShouldEvaluateForDesignTime
1486
internal PropertyDictionary<
ProjectPropertyInstance
> GlobalPropertiesDictionary
1553
internal PropertyDictionary<
ProjectPropertyInstance
> PropertiesToBuildWith
1560
internal ICollection<
ProjectPropertyInstance
> TestEnvironmentalProperties => new ReadOnlyCollection<
ProjectPropertyInstance
>(_environmentVariableProperties);
1662
public static string GetPropertyValueEscaped(
ProjectPropertyInstance
property)
1685
void IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.
1695
void IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.FinishEvaluation()
1705
void IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddItem(ProjectItemInstance item)
1716
void IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddItemIgnoringCondition(ProjectItemInstance item)
1725
IItemDefinition<ProjectMetadataInstance> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddItemDefinition(string itemType)
1743
void IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddToAllEvaluatedPropertiesList(
ProjectPropertyInstance
property)
1757
void IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddToAllEvaluatedItemDefinitionMetadataList(ProjectMetadataInstance itemDefinitionMetadatum)
1771
void IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddToAllEvaluatedItemsList(ProjectItemInstance item)
1779
IItemDefinition<ProjectMetadataInstance> IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GetItemDefinition(string itemType)
1794
ProjectPropertyInstance
IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable)
1797
ProjectPropertyInstance
property =
ProjectPropertyInstance
.Create(name, evaluatedValueEscaped, mayBeReserved, _isImmutable, isEnvironmentVariable, loggingContext);
1807
ProjectPropertyInstance
IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext)
1810
ProjectPropertyInstance
property =
ProjectPropertyInstance
.Create(propertyElement.Name, evaluatedValueEscaped, false /* may not be reserved */, _isImmutable);
1818
ProjectTargetInstance IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GetTarget(string targetName)
1831
void IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddTarget(ProjectTargetInstance target)
1839
void IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.RecordImport(
1846
((IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).RecordImportWithDuplicates(importElement, import, versionEvaluated);
1852
void IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.RecordImportWithDuplicates(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated)
1862
public
ProjectPropertyInstance
GetProperty(string name)
1873
ProjectPropertyInstance
IPropertyProvider<
ProjectPropertyInstance
>.GetProperty(string name, int startIndex, int endIndex)
1925
public
ProjectPropertyInstance
SetProperty(string name, string evaluatedValue)
1929
ProjectPropertyInstance
property =
ProjectPropertyInstance
.Create(name, evaluatedValue, false /* may not be reserved */, _isImmutable);
2238
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(this, this, FileSystems.Default, _loggingContext);
2256
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(this, this, FileSystems.Default, _loggingContext);
2302
foreach (
ProjectPropertyInstance
property in _properties)
2333
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(projectState._globalProperties);
2334
_properties = new PropertyDictionary<
ProjectPropertyInstance
>(projectState._properties);
2404
translator.TranslateDictionary(ref _globalProperties,
ProjectPropertyInstance
.FactoryForDeserialization);
2405
translator.TranslateDictionary(ref _properties,
ProjectPropertyInstance
.FactoryForDeserialization);
2444
translator.TranslateDictionary(ref _environmentVariableProperties,
ProjectPropertyInstance
.FactoryForDeserialization);
2445
translator.TranslateDictionary(ref _globalProperties,
ProjectPropertyInstance
.FactoryForDeserialization);
2446
translator.TranslateDictionary(ref _properties,
ProjectPropertyInstance
.FactoryForDeserialization);
2530
PropertyDictionary<
ProjectPropertyInstance
> globalPropertiesInstances,
2549
foreach (
ProjectPropertyInstance
propertyInstance in globalPropertiesInstances)
2743
if (((IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).BeforeTargets.TryGetValue(target, out beforeTargetsForTarget))
2760
if (((IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).AfterTargets.TryGetValue(target, out afterTargetsForTarget))
3044
private static
ProjectPropertyInstance
InstantiateProjectPropertyInstance(ProjectProperty property, bool isImmutable)
3048
var
instance =
ProjectPropertyInstance
.Create(
3090
_properties = new PropertyDictionary<
ProjectPropertyInstance
>();
3098
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>((globalProperties == null) ? 0 : globalProperties.Count);
3153
_globalProperties.Set(
ProjectPropertyInstance
.Create(globalProperty.Key, explicitSubToolsetVersion, false /* may not be reserved */, _isImmutable));
3157
_globalProperties.Set(
ProjectPropertyInstance
.Create(globalProperty.Key, globalProperty.Value, false /* may not be reserved */, _isImmutable));
3171
Evaluator<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Evaluate(
3224
((IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).BeforeTargets = CreateCloneDictionary(beforeTargets, StringComparer.OrdinalIgnoreCase);
3225
((IEvaluatorData<
ProjectPropertyInstance
, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).AfterTargets = CreateCloneDictionary(afterTargets, StringComparer.OrdinalIgnoreCase);
3263
private void CreateEnvironmentVariablePropertiesSnapshot(PropertyDictionary<
ProjectPropertyInstance
> environmentVariableProperties)
3265
_environmentVariableProperties = new PropertyDictionary<
ProjectPropertyInstance
>(environmentVariableProperties.Count);
3267
foreach (
ProjectPropertyInstance
environmentProperty in environmentVariableProperties)
3276
private void CreateGlobalPropertiesSnapshot(PropertyDictionary<
ProjectPropertyInstance
> globalPropertiesDictionary)
3278
_globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>(globalPropertiesDictionary.Count);
3280
foreach (
ProjectPropertyInstance
globalProperty in globalPropertiesDictionary)
3447
_properties = new PropertyDictionary<
ProjectPropertyInstance
>(properties.Count);
3451
ProjectPropertyInstance
instance = InstantiateProjectPropertyInstance(property, isImmutable);
Instance\ProjectItemInstance.cs (2)
1337
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(null, null, new BuiltInMetadataTable(null, this), FileSystems.Default);
Instance\ProjectPropertyInstance.cs (17)
24
public class ProjectPropertyInstance : IKeyed, IValued, IProperty, IEquatable<
ProjectPropertyInstance
>, ITranslatable
149
bool IEquatable<
ProjectPropertyInstance
>.Equals(
ProjectPropertyInstance
other)
201
internal static
ProjectPropertyInstance
Create(string name, string escapedValue)
215
internal static
ProjectPropertyInstance
Create(string name, string escapedValue, bool mayBeReserved)
226
internal static
ProjectPropertyInstance
Create(string name, string escapedValue, bool mayBeReserved, bool isImmutable, bool isEnvironmentProperty = false, LoggingContext loggingContext = null)
236
internal static
ProjectPropertyInstance
Create(string name, string escapedValue, ElementLocation location)
245
internal static
ProjectPropertyInstance
Create(string name, string escapedValue, ElementLocation location, bool isImmutable)
254
internal static
ProjectPropertyInstance
Create(
ProjectPropertyInstance
that)
263
internal static
ProjectPropertyInstance
Create(
ProjectPropertyInstance
that, bool isImmutable)
271
internal static
ProjectPropertyInstance
FactoryForDeserialization(ITranslator translator)
288
internal
ProjectPropertyInstance
DeepClone()
296
internal
ProjectPropertyInstance
DeepClone(bool isImmutable)
322
private static
ProjectPropertyInstance
Create(string name, string escapedValue, bool mayBeReserved, ElementLocation location, bool isImmutable, bool isEnvironmentProperty = false, LoggingContext loggingContext = null)
339
ProjectPropertyInstance
instance = isEnvironmentProperty ? new EnvironmentDerivedProjectPropertyInstance(name, escapedValue, loggingContext) :
ObjectModelRemoting\LinkedObjectFactory.cs (5)
311
private class LinkedProjectProperty : ProjectProperty, ILinkableObject, IImmutableInstanceProvider<
ProjectPropertyInstance
>
313
private
ProjectPropertyInstance
_immutableInstance;
330
public
ProjectPropertyInstance
ImmutableInstance => _immutableInstance;
332
public
ProjectPropertyInstance
GetOrSetImmutableInstance(
ProjectPropertyInstance
instance)
Utilities\Utilities.cs (12)
468
internal static PropertyDictionary<
ProjectPropertyInstance
> GetEnvironmentProperties(bool makeReadOnly)
472
var envPropertiesHashSet = new RetrievableValuedEntryHashSet<
ProjectPropertyInstance
>(environmentVariablesBag.Count + 2, MSBuildNameIgnoreCaseComparer.Default);
489
envPropertiesHashSet.Add(
ProjectPropertyInstance
.Create(ReservedPropertyNames.extensionsPath32, extensionsPath32, true));
506
envPropertiesHashSet.Add(
ProjectPropertyInstance
.Create(ReservedPropertyNames.extensionsPath64, extensionsPath64, true));
529
envPropertiesHashSet.Add(
ProjectPropertyInstance
.Create(ReservedPropertyNames.extensionsPath, extensionsPath, true));
535
ProjectPropertyInstance
localAppDataProp = envPropertiesHashSet.Get(ReservedPropertyNames.localAppData);
557
envPropertiesHashSet.Add(
ProjectPropertyInstance
.Create(ReservedPropertyNames.localAppData, localAppData));
561
envPropertiesHashSet.Add(
ProjectPropertyInstance
.Create(ReservedPropertyNames.userExtensionsPath, userExtensionsPath));
574
ProjectPropertyInstance
environmentProperty =
ProjectPropertyInstance
.Create(environmentVariableName, environmentVariable.Value);
590
var environmentProperties = new PropertyDictionary<
ProjectPropertyInstance
>(envPropertiesHashSet);
639
if (properties is PropertyDictionary<
ProjectPropertyInstance
> propertyInstanceDictionary)
Microsoft.Build.Engine.OM.UnitTests (11)
Definition\ProjectCollection_Tests.cs (1)
1496
ProjectPropertyInstance
property = collection.GetGlobalProperty("a");
Instance\ProjectInstance_Tests.cs (1)
240
ProjectPropertyInstance
newProperty = first.SetProperty("p1", "v1b");
Instance\ProjectPropertyInstance_Tests.cs (9)
24
ProjectPropertyInstance
property = GetPropertyInstance();
36
ProjectPropertyInstance
property = GetPropertyInstance();
47
ProjectPropertyInstance
property = GetPropertyInstance();
58
ProjectPropertyInstance
property = GetPropertyInstance();
71
ProjectPropertyInstance
property = GetPropertyInstance();
81
ProjectPropertyInstance
property = GetPropertyInstance();
94
var
property = snapshot.GetProperty("p");
101
private static
ProjectPropertyInstance
GetPropertyInstance()
105
ProjectPropertyInstance
property = projectInstance.SetProperty("p", "v1");
Microsoft.Build.Engine.UnitTests (922)
BackEnd\BatchingEngine_Tests.cs (13)
52
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
53
properties.Set(
ProjectPropertyInstance
.Create("UnitTests", "unittests.foo"));
54
properties.Set(
ProjectPropertyInstance
.Create("OBJ", "obj"));
143
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
179
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
205
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
236
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
530
private static Lookup CreateLookup(ItemDictionary<ProjectItemInstance> itemsByType, PropertyDictionary<
ProjectPropertyInstance
> properties)
BackEnd\BuildRequestConfiguration_Tests.cs (8)
176
Assert.Equal(props.Count, Helpers.MakeList((IEnumerable<
ProjectPropertyInstance
>)(config1.GlobalProperties)).Count);
230
PropertyDictionary<
ProjectPropertyInstance
> props = new PropertyDictionary<
ProjectPropertyInstance
>();
231
props.Set(
ProjectPropertyInstance
.Create("prop1", "value1"));
243
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
244
properties.Set(
ProjectPropertyInstance
.Create("this", "that"));
245
properties.Set(
ProjectPropertyInstance
.Create("foo", "bar"));
BackEnd\ConfigurationMetadata_Tests.cs (3)
127
var globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>();
128
globalProperties["a"] =
ProjectPropertyInstance
.Create("a", "b");
138
Assert.Equal(copy.GlobalProperties, initial.GlobalProperties, EqualityComparer<
ProjectPropertyInstance
>.Default);
BackEnd\IntrinsicTask_Tests.cs (32)
41
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
61
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
78
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
133
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
548
lookup.SetProperty(
ProjectPropertyInstance
.Create("Keep", "m1;m2"));
651
lookup.SetProperty(
ProjectPropertyInstance
.Create("Remove", "m1;m2"));
746
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
747
properties.Set(
ProjectPropertyInstance
.Create("p0", " v0 "));
974
PropertyDictionary<
ProjectPropertyInstance
> properties = GeneratePropertyGroup();
998
PropertyDictionary<
ProjectPropertyInstance
> properties = GeneratePropertyGroup();
1149
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
1904
PropertyDictionary<
ProjectPropertyInstance
> properties = GeneratePropertyGroup();
1938
PropertyDictionary<
ProjectPropertyInstance
> properties = GeneratePropertyGroup();
1976
PropertyDictionary<
ProjectPropertyInstance
> properties = GeneratePropertyGroup();
2540
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
3902
private static PropertyDictionary<
ProjectPropertyInstance
> GeneratePropertyGroup()
3904
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
3905
properties.Set(
ProjectPropertyInstance
.Create("p0", "v0"));
3911
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3912
pg.Set(
ProjectPropertyInstance
.Create("p0", "v0"));
3920
return GenerateLookup(project, new PropertyDictionary<
ProjectPropertyInstance
>());
3923
private static Lookup GenerateLookup(ProjectInstance project, PropertyDictionary<
ProjectPropertyInstance
> properties)
4001
var lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(), new PropertyDictionary<
ProjectPropertyInstance
>());
BackEnd\Lookup_Tests.cs (16)
1210
PropertyDictionary<
ProjectPropertyInstance
> group = new PropertyDictionary<
ProjectPropertyInstance
>();
1211
ProjectPropertyInstance
property =
ProjectPropertyInstance
.Create("p1", "v1");
1228
PropertyDictionary<
ProjectPropertyInstance
> group = new PropertyDictionary<
ProjectPropertyInstance
>();
1245
PropertyDictionary<
ProjectPropertyInstance
> group = new PropertyDictionary<
ProjectPropertyInstance
>();
1246
group.Set(
ProjectPropertyInstance
.Create("p1", "v1"));
1252
lookup.SetProperty(
ProjectPropertyInstance
.Create("p1", "v2"));
1261
lookup.SetProperty(
ProjectPropertyInstance
.Create("p1", "v3"));
1270
lookup.SetProperty(
ProjectPropertyInstance
.Create("p1", "v4"));
1292
Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(), new PropertyDictionary<
ProjectPropertyInstance
>());
1298
Lookup lookup = new Lookup(items, new PropertyDictionary<
ProjectPropertyInstance
>());
1302
internal static Lookup CreateLookup(PropertyDictionary<
ProjectPropertyInstance
> properties)
1308
internal static Lookup CreateLookup(PropertyDictionary<
ProjectPropertyInstance
> properties, ItemDictionary<ProjectItemInstance> items)
BackEnd\RequestBuilder_Tests.cs (3)
376
PropertyDictionary<
ProjectPropertyInstance
>[] properties = new PropertyDictionary<
ProjectPropertyInstance
>[_newRequests.Length];
382
properties[i] = new PropertyDictionary<
ProjectPropertyInstance
>(_newRequests[i].Config.GlobalProperties);
BackEnd\TargetBuilder_Tests.cs (2)
1482
Task<BuildResult[]> IRequestBuilderCallback.BuildProjects(string[] projectFiles, PropertyDictionary<
ProjectPropertyInstance
>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets)
1572
Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<
ProjectPropertyInstance
>(project.Properties));
BackEnd\TargetEntry_Tests.cs (4)
85
Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<
ProjectPropertyInstance
>(project.Properties));
115
Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<
ProjectPropertyInstance
>(project.Properties));
940
Task<BuildResult[]> IRequestBuilderCallback.BuildProjects(string[] projectFiles, PropertyDictionary<
ProjectPropertyInstance
>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets)
1030
Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<
ProjectPropertyInstance
>(project.Properties));
BackEnd\TargetUpToDateChecker_Tests.cs (1)
612
ItemBucket itemBucket = new ItemBucket(null, null, new Lookup(itemsByName, new PropertyDictionary<
ProjectPropertyInstance
>()), 0);
BackEnd\TaskBuilder_Tests.cs (1)
942
Task<BuildResult[]> IRequestBuilderCallback.BuildProjects(string[] projectFiles, PropertyDictionary<
ProjectPropertyInstance
>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets)
BackEnd\TaskExecutionHost_Tests.cs (7)
771
_bucket.Lookup.SetProperty(
ProjectPropertyInstance
.Create("output", "initialvalue"));
781
_bucket.Lookup.SetProperty(
ProjectPropertyInstance
.Create("output", "initialvalue"));
791
_bucket.Lookup.SetProperty(
ProjectPropertyInstance
.Create("output", "initialvalue"));
801
_bucket.Lookup.SetProperty(
ProjectPropertyInstance
.Create("output", "initialvalue"));
811
_bucket.Lookup.SetProperty(
ProjectPropertyInstance
.Create("output", "initialvalue"));
821
_bucket.Lookup.SetProperty(
ProjectPropertyInstance
.Create("output", "initialvalue"));
1286
_bucket = new ItemBucket(Array.Empty<string>(), new Dictionary<string, string>(), new Lookup(itemsByName, new PropertyDictionary<
ProjectPropertyInstance
>()), 0);
BackEnd\TaskHost_Tests.cs (1)
1415
public Task<BuildResult[]> BuildProjects(string[] projectFiles, PropertyDictionary<
ProjectPropertyInstance
>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets)
BackEnd\TaskRegistry_Tests.cs (24)
46
private static Expander<
ProjectPropertyInstance
, ProjectItemInstance> s_registryExpander;
1866
ProjectPropertyInstance
.Create("bp1", "v1"),
1867
ProjectPropertyInstance
.Create("bp2", "v2")
1872
ProjectPropertyInstance
.Create("ep1", "v1"),
1873
ProjectPropertyInstance
.Create("ep2", "v2")
1878
ProjectPropertyInstance
.Create("gp1", "v1"),
1879
ProjectPropertyInstance
.Create("gp2", "v2")
1884
ProjectPropertyInstance
.Create("sp1", "v1"),
1885
ProjectPropertyInstance
.Create("sp2", "v2")
1891
new PropertyDictionary<
ProjectPropertyInstance
>(toolsetBuildProperties),
1892
new PropertyDictionary<
ProjectPropertyInstance
>(toolsetEnvironmentProperties),
1893
new PropertyDictionary<
ProjectPropertyInstance
>(toolsetGlobalProperties),
1896
{"1.0", new SubToolset("1.0", new PropertyDictionary<
ProjectPropertyInstance
>(subToolsetProperties)) },
1897
{"2.0", new SubToolset("2.0", new PropertyDictionary<
ProjectPropertyInstance
>(subToolsetProperties)) }
2167
internal static Expander<
ProjectPropertyInstance
, ProjectItemInstance> RegistryExpander => s_registryExpander ?? (s_registryExpander = GetExpander());
2201
internal static Expander<
ProjectPropertyInstance
, ProjectItemInstance> GetExpander()
2204
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2207
pg.Set(
ProjectPropertyInstance
.Create("Property" + i, "Value" + i));
2210
pg.Set(
ProjectPropertyInstance
.Create("TrueString", "True"));
2211
pg.Set(
ProjectPropertyInstance
.Create("FalseString", "False"));
2212
pg.Set(
ProjectPropertyInstance
.Create("ItaskItem", "Microsoft.Build.Framework.ItaskItem[]"));
2252
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(
BuildEventArgsDataEnumeration.cs (1)
33
ProjectPropertyInstance
.Create("prop", "val"),
Collections\MSBuildNameIgnoreCaseComparer_Tests.cs (5)
45
PropertyDictionary<
ProjectPropertyInstance
> dictionary = new PropertyDictionary<
ProjectPropertyInstance
>(comparer);
47
ProjectPropertyInstance
p =
ProjectPropertyInstance
.Create("foo", "bar");
52
ProjectPropertyInstance
value = dictionary.GetProperty(s, 2, 4);
Collections\OMcollections_tests.cs (30)
34
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
36
ProjectPropertyInstance
p1 = GetPropertyInstance("p1", "v1");
37
ProjectPropertyInstance
p2 = GetPropertyInstance("p2", "v2");
38
ProjectPropertyInstance
p3 = GetPropertyInstance("p1", "v1");
39
ProjectPropertyInstance
p4 = GetPropertyInstance("p2", "v3");
67
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
69
ProjectPropertyInstance
p1 = GetPropertyInstance("p1", "v1");
70
ProjectPropertyInstance
p2 = GetPropertyInstance("p2", "v2");
71
ProjectPropertyInstance
p3 = GetPropertyInstance("p1", "v1");
72
ProjectPropertyInstance
p4 = GetPropertyInstance("p2", "v3");
80
TranslationHelpers.GetWriteTranslator().TranslateDictionary<PropertyDictionary<
ProjectPropertyInstance
>,
ProjectPropertyInstance
>(ref properties,
ProjectPropertyInstance
.FactoryForDeserialization);
81
PropertyDictionary<
ProjectPropertyInstance
> deserializedProperties = null;
82
TranslationHelpers.GetReadTranslator().TranslateDictionary<PropertyDictionary<
ProjectPropertyInstance
>,
ProjectPropertyInstance
>(ref deserializedProperties,
ProjectPropertyInstance
.FactoryForDeserialization);
93
PropertyDictionary<
ProjectPropertyInstance
> properties = new PropertyDictionary<
ProjectPropertyInstance
>();
95
TranslationHelpers.GetWriteTranslator().TranslateDictionary<PropertyDictionary<
ProjectPropertyInstance
>,
ProjectPropertyInstance
>(ref properties,
ProjectPropertyInstance
.FactoryForDeserialization);
96
PropertyDictionary<
ProjectPropertyInstance
> deserializedProperties = null;
97
TranslationHelpers.GetReadTranslator().TranslateDictionary<PropertyDictionary<
ProjectPropertyInstance
>,
ProjectPropertyInstance
>(ref deserializedProperties,
ProjectPropertyInstance
.FactoryForDeserialization);
309
private static
ProjectPropertyInstance
GetPropertyInstance(string name, string value)
313
ProjectPropertyInstance
property = projectInstance.SetProperty(name, value);
Definition\Toolset_Tests.cs (28)
93
PropertyDictionary<
ProjectPropertyInstance
> buildProperties = new PropertyDictionary<
ProjectPropertyInstance
>();
94
buildProperties.Set(
ProjectPropertyInstance
.Create("a", "a1"));
96
PropertyDictionary<
ProjectPropertyInstance
> environmentProperties = new PropertyDictionary<
ProjectPropertyInstance
>();
97
environmentProperties.Set(
ProjectPropertyInstance
.Create("b", "b1"));
99
PropertyDictionary<
ProjectPropertyInstance
> globalProperties = new PropertyDictionary<
ProjectPropertyInstance
>();
100
globalProperties.Set(
ProjectPropertyInstance
.Create("c", "c1"));
102
PropertyDictionary<
ProjectPropertyInstance
> subToolsetProperties = new PropertyDictionary<
ProjectPropertyInstance
>();
103
subToolsetProperties.Set(
ProjectPropertyInstance
.Create("d", "d1"));
516
PropertyDictionary<
ProjectPropertyInstance
> subToolset12Properties = new PropertyDictionary<
ProjectPropertyInstance
>();
517
subToolset12Properties.Set(
ProjectPropertyInstance
.Create("d", "d4"));
518
subToolset12Properties.Set(
ProjectPropertyInstance
.Create("e", "e5"));
521
PropertyDictionary<
ProjectPropertyInstance
> subToolset11Properties = new PropertyDictionary<
ProjectPropertyInstance
>();
522
subToolset11Properties.Set(
ProjectPropertyInstance
.Create("b", "b2"));
523
subToolset11Properties.Set(
ProjectPropertyInstance
.Create("c", "c2"));
526
PropertyDictionary<
ProjectPropertyInstance
> fakeSubToolsetProperties = new PropertyDictionary<
ProjectPropertyInstance
>();
527
fakeSubToolsetProperties.Set(
ProjectPropertyInstance
.Create("a", "a3"));
528
fakeSubToolsetProperties.Set(
ProjectPropertyInstance
.Create("c", "c3"));
531
PropertyDictionary<
ProjectPropertyInstance
> subToolset13Properties = new PropertyDictionary<
ProjectPropertyInstance
>();
532
subToolset13Properties.Set(
ProjectPropertyInstance
.Create("f", "f6"));
533
subToolset13Properties.Set(
ProjectPropertyInstance
.Create("g", "g7"));
Definition\ToolsetConfigurationReader_Tests.cs (3)
562
reader.ReadToolsets(toolsets, new PropertyDictionary<
ProjectPropertyInstance
>(),
563
new PropertyDictionary<
ProjectPropertyInstance
>(), true,
666
return new ToolsetConfigurationReader(collection.EnvironmentProperties, new PropertyDictionary<
ProjectPropertyInstance
>(), ToolsetConfigurationReaderTestHelper.ReadApplicationConfigurationTest);
Definition\ToolsVersion_Tests.cs (9)
38
Toolset t = new Toolset("toolsversionname", dir, new PropertyDictionary<
ProjectPropertyInstance
>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), overrideDir, new DirectoryExists(this.directoryExists));
81
Toolset t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<
ProjectPropertyInstance
>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), "msbuildoverridetasks", new DirectoryExists(this.directoryExists));
101
Toolset t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<
ProjectPropertyInstance
>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), "k:\\||^%$#*msbuildoverridetasks", new DirectoryExists(this.directoryExists));
120
Toolset t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<
ProjectPropertyInstance
>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), tooLong, new DirectoryExists(this.directoryExists));
140
Toolset t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<
ProjectPropertyInstance
>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), "k:\\Thecatinthehat", new DirectoryExists(this.directoryExists));
162
new PropertyDictionary<
ProjectPropertyInstance
>(),
198
Toolset t = new Toolset("toolsversionname", "c:\\directory1\\directory2\\doesntexist", new PropertyDictionary<
ProjectPropertyInstance
>(), colleciton, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), null, new DirectoryExists(this.directoryExists));
221
Toolset t = new Toolset("toolsversionname", "invalid||path", new PropertyDictionary<
ProjectPropertyInstance
>(), p, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), null, new DirectoryExists(this.directoryExists));
929
new PropertyDictionary<
ProjectPropertyInstance
>(),
Evaluation\Evaluator_Tests.cs (14)
4461
PropertyDictionary<
ProjectPropertyInstance
> propertyBag = new PropertyDictionary<
ProjectPropertyInstance
>();
4462
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(propertyBag, FileSystems.Default);
4466
propertyBag.Set(
ProjectPropertyInstance
.Create("TargetOSFamily", "*"));
4486
propertyBag.Set(
ProjectPropertyInstance
.Create("TargetOSFamily", "3"));
5135
PropertyDictionary<
ProjectPropertyInstance
> subToolset11Properties = new PropertyDictionary<
ProjectPropertyInstance
>();
5136
subToolset11Properties.Set(
ProjectPropertyInstance
.Create("b", "b2"));
5137
subToolset11Properties.Set(
ProjectPropertyInstance
.Create("c", "c2"));
5140
PropertyDictionary<
ProjectPropertyInstance
> fakeSubToolsetProperties = new PropertyDictionary<
ProjectPropertyInstance
>();
5141
fakeSubToolsetProperties.Set(
ProjectPropertyInstance
.Create("a", "a3"));
5142
fakeSubToolsetProperties.Set(
ProjectPropertyInstance
.Create("c", "c3"));
Evaluation\Expander_Tests.cs (571)
46
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
47
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
57
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
58
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
68
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
69
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
83
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
96
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(
116
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
117
pg.Set(
ProjectPropertyInstance
.Create("a", "aaa"));
118
pg.Set(
ProjectPropertyInstance
.Create("b", "bbb"));
119
pg.Set(
ProjectPropertyInstance
.Create("c", "cc;dd"));
121
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
140
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
141
pg.Set(
ProjectPropertyInstance
.Create("a", "aaa"));
142
pg.Set(
ProjectPropertyInstance
.Create("b", "bbb"));
143
pg.Set(
ProjectPropertyInstance
.Create("c", "cc;dd"));
145
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
160
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
162
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
236
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = CreateItemFunctionExpander();
745
private Expander<
ProjectPropertyInstance
, ProjectItemInstance> CreateItemFunctionExpander()
748
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
749
pg.Set(
ProjectPropertyInstance
.Create("p", "v0"));
750
pg.Set(
ProjectPropertyInstance
.Create("p", "v1"));
751
pg.Set(
ProjectPropertyInstance
.Create("Val", "2"));
752
pg.Set(
ProjectPropertyInstance
.Create("a", "filename"));
785
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, ig, itemMetadata, FileSystems.Default);
794
private Expander<
ProjectPropertyInstance
, ProjectItemInstance> CreateExpander()
797
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
798
pg.Set(
ProjectPropertyInstance
.Create("p", "v0"));
799
pg.Set(
ProjectPropertyInstance
.Create("p", "v1"));
807
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(
1363
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
1364
pg.Set(
ProjectPropertyInstance
.Create("Gee_Aych_Ayee", "ghi"));
1365
pg.Set(
ProjectPropertyInstance
.Create("OutputPath", @"\jk ; l\mno%253bpqr\stu"));
1366
pg.Set(
ProjectPropertyInstance
.Create("TargetPath", "@(IntermediateAssembly->'%(RelativeDir)')"));
1420
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default);
1452
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default);
1505
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default);
1531
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default);
1553
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default);
1572
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
1573
pg.Set(
ProjectPropertyInstance
.Create("ManySpacesProperty", manySpaces));
1602
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default);
1634
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default);
1665
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default);
1686
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default);
1726
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
1728
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
1742
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
1744
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
1760
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
1762
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
1777
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
1779
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
1791
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
1793
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
1813
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
1815
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
1838
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
1840
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
1861
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
1863
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
1883
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
1885
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
1905
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
1907
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2000
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2002
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2015
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2017
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2034
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2035
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2037
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2050
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2051
pg.Set(
ProjectPropertyInstance
.Create("FileName", " foo.ext "));
2053
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2066
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2067
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2069
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2082
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2083
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2085
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2098
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2099
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2101
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2114
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2115
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2117
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2130
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2131
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2133
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2146
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2147
pg.Set(
ProjectPropertyInstance
.Create("RootPath", Path.Combine(s_rootPathPrefix, "this", "is", "the", "root")));
2148
pg.Set(
ProjectPropertyInstance
.Create("MyPath", Path.Combine(s_rootPathPrefix, "this", "is", "the", "root", "my", "project", "is", "here.proj")));
2150
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2163
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2164
pg.Set(
ProjectPropertyInstance
.Create("Value", "3"));
2165
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2167
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2180
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2181
pg.Set(
ProjectPropertyInstance
.Create("PathRoot", Path.Combine(s_rootPathPrefix, "goo")));
2182
pg.Set(
ProjectPropertyInstance
.Create("PathRoot2", Path.Combine(s_rootPathPrefix, "goop") + Path.DirectorySeparatorChar));
2184
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2198
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2199
pg.Set(
ProjectPropertyInstance
.Create("Value", "3"));
2200
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2202
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2216
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2217
pg.Set(
ProjectPropertyInstance
.Create("Value", "3"));
2218
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2220
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2232
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2233
pg.Set(
ProjectPropertyInstance
.Create("Value", "12345"));
2234
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "1234567890"));
2236
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2249
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2251
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2264
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2265
pg.Set(
ProjectPropertyInstance
.Create("List", "A-B-C-D"));
2267
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2282
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2284
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2298
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2299
pg.Set(
ProjectPropertyInstance
.Create("List", "A-B-C-D"));
2300
pg.Set(
ProjectPropertyInstance
.Create("Splitter", "-"));
2302
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2315
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2316
pg.Set(
ProjectPropertyInstance
.Create("PathRoot", Path.Combine(s_rootPathPrefix, "goo")));
2317
pg.Set(
ProjectPropertyInstance
.Create("PathRoot2", Path.Combine(s_rootPathPrefix, "goop") + Path.DirectorySeparatorChar));
2319
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2351
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2352
pg.Set(
ProjectPropertyInstance
.Create("Value", "3"));
2353
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2355
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2369
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2370
pg.Set(
ProjectPropertyInstance
.Create("Value", "3"));
2371
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2373
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2386
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2387
pg.Set(
ProjectPropertyInstance
.Create("Value", "3"));
2388
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2390
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2403
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2404
pg.Set(
ProjectPropertyInstance
.Create("Value", "3"));
2405
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2407
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2421
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2422
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2424
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2437
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2438
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2440
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2453
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2454
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
2456
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2469
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2471
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2482
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2484
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2497
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2498
pg.Set(
ProjectPropertyInstance
.Create("System", "The System Namespace"));
2500
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2515
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2516
pg.Set(
ProjectPropertyInstance
.Create("ParentPath", Path.Combine(s_rootPathPrefix, "abc", "def")));
2517
pg.Set(
ProjectPropertyInstance
.Create("FilePath", Path.Combine(s_rootPathPrefix, "abc", "def", "foo.cpp")));
2519
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2532
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2533
pg.Set(
ProjectPropertyInstance
.Create("Drive", s_rootPathPrefix));
2534
pg.Set(
ProjectPropertyInstance
.Create("File", Path.Combine("foo", "file.txt")));
2536
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2549
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2550
pg.Set(
ProjectPropertyInstance
.Create("ver1", @"1.2.3.4"));
2552
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2572
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2573
pg.Set(
ProjectPropertyInstance
.Create("ver1", @"1.2.3.4"));
2574
pg.Set(
ProjectPropertyInstance
.Create("ver2", @"2.2.3.4"));
2576
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2593
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2595
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2616
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2618
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2645
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2647
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2678
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2679
pg.Set(
ProjectPropertyInstance
.Create("File", Path.Combine("foo", "file.txt")));
2681
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2694
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2695
pg.Set(
ProjectPropertyInstance
.Create("File", "foo goo" + Path.DirectorySeparatorChar + "file.txt"));
2697
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2712
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2713
pg.Set(
ProjectPropertyInstance
.Create("File", Path.Combine("foo bar", "baz.txt")));
2715
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2730
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2731
pg.Set(
ProjectPropertyInstance
.Create("File", Path.Combine("foo bar", "baz.txt")));
2733
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2747
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2749
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2763
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2765
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2778
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2780
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2793
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2794
pg.Set(
ProjectPropertyInstance
.Create("File", "foo" + Path.DirectorySeparatorChar + "file.txt"));
2796
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2811
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2812
pg.Set(
ProjectPropertyInstance
.Create("File", "foo" + Path.DirectorySeparatorChar + "file.txt"));
2814
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2837
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2839
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2852
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2854
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2883
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2884
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2913
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2914
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2935
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2936
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2951
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2952
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2967
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2968
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
2985
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
2986
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3001
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3002
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3020
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3021
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3036
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3037
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3055
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3056
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3068
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3069
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3080
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3081
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3091
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3092
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3104
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3105
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3115
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3116
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3127
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3128
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3138
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3139
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3151
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3152
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3162
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3163
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3175
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3176
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3195
var pg = new PropertyDictionary<
ProjectPropertyInstance
>
3196
{ [propertyName] =
ProjectPropertyInstance
.Create(propertyName, properyValue) };
3198
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3206
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3207
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3222
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3223
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3255
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3256
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3274
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3275
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3288
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3289
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3301
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3302
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3315
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3316
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3337
var pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3338
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3343
private void AssertThrows(Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander, string expression, string expectedMessage)
3354
private void AssertSuccess(Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander, object expected, string expression)
3370
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3372
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3391
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3392
pg.Set(
ProjectPropertyInstance
.Create("StartingDirectory", directoryStart));
3393
pg.Set(
ProjectPropertyInstance
.Create("FileToFind", tempFile));
3395
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3426
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3427
pg.Set(
ProjectPropertyInstance
.Create("FileToFind", Path.GetFileName(fileToFind)));
3429
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3469
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3470
pg.Set(
ProjectPropertyInstance
.Create("FileWithPath", fileWithPath));
3472
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3486
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3488
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3505
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3507
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3520
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3522
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3535
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3537
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3554
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3556
pg["DifferentTargetsPath"] =
ProjectPropertyInstance
.Create("DifferentTargetsPath", "Different");
3558
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3564
pg["DifferentTargetsPath"] =
ProjectPropertyInstance
.Create("DifferentTargetsPath", String.Empty);
3608
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(new[]
3610
ProjectPropertyInstance
.Create("MyPath", "one"),
3611
ProjectPropertyInstance
.Create("MySecondPath", "two"),
3631
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3633
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3701
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3703
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3727
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3729
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3778
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3780
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3797
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3798
pg.Set(
ProjectPropertyInstance
.Create("SomeStuff", "This IS SOME STUff"));
3800
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3814
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3815
pg.Set(
ProjectPropertyInstance
.Create("SomeProperty", "Value"));
3817
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3838
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3839
pg.Set(
ProjectPropertyInstance
.Create("SomeProperty", "Value"));
3841
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3862
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3863
pg.Set(
ProjectPropertyInstance
.Create("SomeProperty", "Value"));
3865
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3886
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3887
pg.Set(
ProjectPropertyInstance
.Create("SomeProperty", "Value"));
3889
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3910
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3916
pg.Set(
ProjectPropertyInstance
.Create("SomePath", Path.Combine(s_rootPathPrefix, "some", "path")));
3922
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, itemsByType, itemMetadata, FileSystems.Default);
3958
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3959
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
3995
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
3996
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
4024
PropertyDictionary<
ProjectPropertyInstance
> pg = new();
4025
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new(pg, FileSystems.Default);
4038
PropertyDictionary<
ProjectPropertyInstance
> pg = new();
4039
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new(pg, FileSystems.Default);
4050
PropertyDictionary<
ProjectPropertyInstance
> pg = new();
4051
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new(pg, FileSystems.Default);
4065
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
4066
pg.Set(
ProjectPropertyInstance
.Create("File", @"foo\file.txt"));
4068
pg.Set(
ProjectPropertyInstance
.Create("a", "no"));
4069
pg.Set(
ProjectPropertyInstance
.Create("b", "true"));
4070
pg.Set(
ProjectPropertyInstance
.Create("c", "1"));
4071
pg.Set(
ProjectPropertyInstance
.Create("position", "4"));
4072
pg.Set(
ProjectPropertyInstance
.Create("d", "xxx"));
4073
pg.Set(
ProjectPropertyInstance
.Create("e", "xxx"));
4074
pg.Set(
ProjectPropertyInstance
.Create("and", "and"));
4075
pg.Set(
ProjectPropertyInstance
.Create("a_semi_b", "a;b"));
4076
pg.Set(
ProjectPropertyInstance
.Create("a_apos_b", "a'b"));
4077
pg.Set(
ProjectPropertyInstance
.Create("foo_apos_foo", "foo'foo"));
4078
pg.Set(
ProjectPropertyInstance
.Create("a_escapedsemi_b", "a%3bb"));
4079
pg.Set(
ProjectPropertyInstance
.Create("a_escapedapos_b", "a%27b"));
4080
pg.Set(
ProjectPropertyInstance
.Create("has_trailing_slash", @"foo\"));
4081
pg.Set(
ProjectPropertyInstance
.Create("emptystring", @""));
4082
pg.Set(
ProjectPropertyInstance
.Create("space", @" "));
4083
pg.Set(
ProjectPropertyInstance
.Create("listofthings", @"a;b;c;d;e;f;g;h;i;j;k;l"));
4084
pg.Set(
ProjectPropertyInstance
.Create("input", @"EXPORT a"));
4085
pg.Set(
ProjectPropertyInstance
.Create("propertycontainingnullasastring", @"null"));
4087
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
4346
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
4348
pg.Set(
ProjectPropertyInstance
.Create("SomeProperty", path));
4350
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
4372
PropertyDictionary<
ProjectPropertyInstance
> pg = new PropertyDictionary<
ProjectPropertyInstance
>();
4374
pg.Set(
ProjectPropertyInstance
.Create("SomeProperty", "6C8546D5297C424F962201B0E0E9F142"));
4376
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(pg, FileSystems.Default);
4422
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(), FileSystems.Default);
4434
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(), FileSystems.Default);
4446
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(), FileSystems.Default);
4746
var properties = new PropertyDictionary<
ProjectPropertyInstance
>();
4747
properties.Set(
ProjectPropertyInstance
.Create(propertyName, propertyValue));
4748
var expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(properties, FileSystems.Default);
5139
_ = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(
5140
new PropertyDictionary<
ProjectPropertyInstance
>(),
5177
var result = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(), FileSystems.Default, loggingContext)
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (1)
1059
return new ToolsetConfigurationReader(xmlReader.EnvironmentProperties, new PropertyDictionary<
ProjectPropertyInstance
>(), ToolsetConfigurationReaderTestHelper.ReadApplicationConfigurationTest);
Evaluation\ItemSpec_Tests.cs (3)
16
Microsoft.Build.Evaluation.Expander<Microsoft.Build.Execution.
ProjectPropertyInstance
, Microsoft.Build.Execution.ProjectItemInstance>;
18
Microsoft.Build.Evaluation.ItemSpec<Microsoft.Build.Execution.
ProjectPropertyInstance
, Microsoft.Build.Execution.ProjectItemInstance>;
93
new PropertyDictionary<
ProjectPropertyInstance
>(),
Evaluation\ToolsetConfigurationNet5_Tests.cs (2)
35
foreach (KeyValuePair<string,
ProjectPropertyInstance
> properties in toolset.Properties)
62
foreach (KeyValuePair<string,
ProjectPropertyInstance
> properties in toolset.Properties)
ExpressionTree_Tests.cs (98)
30
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(), FileSystems.Default);
46
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(), FileSystems.Default);
71
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(), FileSystems.Default);
90
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(), FileSystems.Default);
102
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(), new ItemDictionary<ProjectItemInstance>(), FileSystems.Default, null);
112
new ConditionEvaluator.ConditionEvaluationState<
ProjectPropertyInstance
, ProjectItemInstance>(
139
var propertyBag = new PropertyDictionary<
ProjectPropertyInstance
>();
140
propertyBag.Set(
ProjectPropertyInstance
.Create("foo", "true"));
141
propertyBag.Set(
ProjectPropertyInstance
.Create("bar", "yes"));
142
propertyBag.Set(
ProjectPropertyInstance
.Create("one", "1"));
143
propertyBag.Set(
ProjectPropertyInstance
.Create("onepointzero", "1.0"));
144
propertyBag.Set(
ProjectPropertyInstance
.Create("two", "2"));
145
propertyBag.Set(
ProjectPropertyInstance
.Create("simple", "simplestring"));
146
propertyBag.Set(
ProjectPropertyInstance
.Create("complex", "This is a complex string"));
147
propertyBag.Set(
ProjectPropertyInstance
.Create("c1", "Another (complex) one."));
148
propertyBag.Set(
ProjectPropertyInstance
.Create("c2", "Another (complex) one."));
149
propertyBag.Set(
ProjectPropertyInstance
.Create("x86", "x86"));
150
propertyBag.Set(
ProjectPropertyInstance
.Create("no", "no"));
152
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(propertyBag, new ItemDictionary<ProjectItemInstance>(), FileSystems.Default, null);
190
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(), itemBag, FileSystems.Default, null);
219
PropertyDictionary<
ProjectPropertyInstance
> propertyBag = new PropertyDictionary<
ProjectPropertyInstance
>();
220
propertyBag.Set(
ProjectPropertyInstance
.Create("foo", "true"));
221
propertyBag.Set(
ProjectPropertyInstance
.Create("bar", "yes"));
222
propertyBag.Set(
ProjectPropertyInstance
.Create("one", "1"));
223
propertyBag.Set(
ProjectPropertyInstance
.Create("onepointzero", "1.0"));
224
propertyBag.Set(
ProjectPropertyInstance
.Create("two", "2"));
225
propertyBag.Set(
ProjectPropertyInstance
.Create("simple", "simplestring"));
226
propertyBag.Set(
ProjectPropertyInstance
.Create("complex", "This is a complex string"));
227
propertyBag.Set(
ProjectPropertyInstance
.Create("c1", "Another (complex) one."));
228
propertyBag.Set(
ProjectPropertyInstance
.Create("c2", "Another (complex) one."));
229
propertyBag.Set(
ProjectPropertyInstance
.Create("TestQuote", "Contains'Quote'"));
230
propertyBag.Set(
ProjectPropertyInstance
.Create("AnotherTestQuote", "Here's Johnny!"));
231
propertyBag.Set(
ProjectPropertyInstance
.Create("Atsign", "Test the @ replacement"));
233
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(propertyBag, itemBag, FileSystems.Default, null);
254
PropertyDictionary<
ProjectPropertyInstance
> propertyBag = new PropertyDictionary<
ProjectPropertyInstance
>();
255
propertyBag.Set(
ProjectPropertyInstance
.Create("foo", "true"));
256
propertyBag.Set(
ProjectPropertyInstance
.Create("bar", "yes"));
257
propertyBag.Set(
ProjectPropertyInstance
.Create("one", "1"));
258
propertyBag.Set(
ProjectPropertyInstance
.Create("onepointzero", "1.0"));
259
propertyBag.Set(
ProjectPropertyInstance
.Create("two", "2"));
260
propertyBag.Set(
ProjectPropertyInstance
.Create("simple", "simplestring"));
261
propertyBag.Set(
ProjectPropertyInstance
.Create("complex", "This is a complex string"));
262
propertyBag.Set(
ProjectPropertyInstance
.Create("c1", "Another (complex) one."));
263
propertyBag.Set(
ProjectPropertyInstance
.Create("c2", "Another (complex) one."));
265
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(propertyBag, itemBag, FileSystems.Default, null);
284
PropertyDictionary<
ProjectPropertyInstance
> propertyBag = new PropertyDictionary<
ProjectPropertyInstance
>();
286
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(propertyBag, itemBag, FileSystems.Default, null);
303
PropertyDictionary<
ProjectPropertyInstance
> propertyBag = new PropertyDictionary<
ProjectPropertyInstance
>();
305
propertyBag.Set(
ProjectPropertyInstance
.Create("foo", "true"));
306
propertyBag.Set(
ProjectPropertyInstance
.Create("bar", "yes"));
307
propertyBag.Set(
ProjectPropertyInstance
.Create("one", "1"));
308
propertyBag.Set(
ProjectPropertyInstance
.Create("onepointzero", "1.0"));
309
propertyBag.Set(
ProjectPropertyInstance
.Create("two", "2"));
310
propertyBag.Set(
ProjectPropertyInstance
.Create("simple", "simplestring"));
311
propertyBag.Set(
ProjectPropertyInstance
.Create("complex", "This is a complex string"));
312
propertyBag.Set(
ProjectPropertyInstance
.Create("c1", "Another (complex) one."));
313
propertyBag.Set(
ProjectPropertyInstance
.Create("c2", "Another (complex) one."));
315
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(propertyBag, itemBag, FileSystems.Default, null);
332
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(), itemBag, FileSystems.Default, null);
335
new ConditionEvaluator.ConditionEvaluationState<
ProjectPropertyInstance
, ProjectItemInstance>(
415
PropertyDictionary<
ProjectPropertyInstance
> propertyBag = new PropertyDictionary<
ProjectPropertyInstance
>();
416
propertyBag.Set(
ProjectPropertyInstance
.Create("foo", "4"));
417
propertyBag.Set(
ProjectPropertyInstance
.Create("bar", "32"));
419
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(propertyBag, new ItemDictionary<ProjectItemInstance>(), FileSystems.Default, null);
427
private void AssertParseEvaluate(Parser p, string expression, Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander, bool expected)
432
private void AssertParseEvaluate(Parser p, string expression, Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander, bool expected, ConditionEvaluator.IConditionEvaluationState state)
444
new ConditionEvaluator.ConditionEvaluationState<
ProjectPropertyInstance
, ProjectItemInstance>(
459
private void AssertParseEvaluateThrow(Parser p, string expression, Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander)
464
private void AssertParseEvaluateThrow(Parser p, string expression, Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander, ConditionEvaluator.IConditionEvaluationState state)
480
new ConditionEvaluator.ConditionEvaluationState<
ProjectPropertyInstance
, ProjectItemInstance>(
506
Expander<
ProjectPropertyInstance
, ProjectItemInstance> expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(new PropertyDictionary<
ProjectPropertyInstance
>(), FileSystems.Default);
ExpressionTreeExpression_Tests.cs (20)
28
private readonly Expander<
ProjectPropertyInstance
, ProjectItemInstance> _expander;
384
PropertyDictionary<
ProjectPropertyInstance
> propertyBag = new PropertyDictionary<
ProjectPropertyInstance
>();
386
propertyBag.Set(
ProjectPropertyInstance
.Create("a", "no"));
387
propertyBag.Set(
ProjectPropertyInstance
.Create("b", "true"));
388
propertyBag.Set(
ProjectPropertyInstance
.Create("c", "1"));
389
propertyBag.Set(
ProjectPropertyInstance
.Create("d", "xxx"));
390
propertyBag.Set(
ProjectPropertyInstance
.Create("e", "xxx"));
391
propertyBag.Set(
ProjectPropertyInstance
.Create("f", "1.9.5"));
392
propertyBag.Set(
ProjectPropertyInstance
.Create("and", "and"));
393
propertyBag.Set(
ProjectPropertyInstance
.Create("a_semi_c", "a;c"));
394
propertyBag.Set(
ProjectPropertyInstance
.Create("a_apos_b", "a'b"));
395
propertyBag.Set(
ProjectPropertyInstance
.Create("foo_apos_foo", "foo'foo"));
396
propertyBag.Set(
ProjectPropertyInstance
.Create("a_escapedsemi_b", "a%3bb"));
397
propertyBag.Set(
ProjectPropertyInstance
.Create("a_escapedapos_b", "a%27b"));
398
propertyBag.Set(
ProjectPropertyInstance
.Create("has_trailing_slash", @"foo\"));
404
_expander = new Expander<
ProjectPropertyInstance
, ProjectItemInstance>(propertyBag, itemBag, itemMetadata, FileSystems.Default);
438
new ConditionEvaluator.ConditionEvaluationState<
ProjectPropertyInstance
, ProjectItemInstance>(
462
new ConditionEvaluator.ConditionEvaluationState<
ProjectPropertyInstance
, ProjectItemInstance>(
494
new ConditionEvaluator.ConditionEvaluationState<
ProjectPropertyInstance
, ProjectItemInstance>(
Instance\ProjectPropertyInstance_Internal_Tests.cs (19)
26
ProjectPropertyInstance
property = GetPropertyInstance();
28
ProjectPropertyInstance
clone = property.DeepClone();
41
ProjectPropertyInstance
property = GetPropertyInstance();
43
TranslationHelpers.GetWriteTranslator().Translate(ref property,
ProjectPropertyInstance
.FactoryForDeserialization);
44
ProjectPropertyInstance
deserializedProperty = null;
45
TranslationHelpers.GetReadTranslator().Translate(ref deserializedProperty,
ProjectPropertyInstance
.FactoryForDeserialization);
57
var
property =
ProjectPropertyInstance
.Create("p", "v", false /*mutable*/);
60
TranslationHelpers.GetWriteTranslator().Translate(ref property,
ProjectPropertyInstance
.FactoryForDeserialization);
61
ProjectPropertyInstance
deserializedProperty = null;
62
TranslationHelpers.GetReadTranslator().Translate(ref deserializedProperty,
ProjectPropertyInstance
.FactoryForDeserialization);
67
Assert.Equal(typeof(
ProjectPropertyInstance
), property.GetType());
76
var
property =
ProjectPropertyInstance
.Create("p", "v", mayBeReserved: true, isImmutable: true);
79
TranslationHelpers.GetWriteTranslator().Translate(ref property,
ProjectPropertyInstance
.FactoryForDeserialization);
80
ProjectPropertyInstance
deserializedProperty = null;
81
TranslationHelpers.GetReadTranslator().Translate(ref deserializedProperty,
ProjectPropertyInstance
.FactoryForDeserialization);
92
private static
ProjectPropertyInstance
GetPropertyInstance()
96
ProjectPropertyInstance
property = projectInstance.SetProperty("p", "v1");
TestComparers\ProjectInstanceModelTestComparers.cs (3)
13
Microsoft.Build.Evaluation.IEvaluatorData<Microsoft.Build.Execution.
ProjectPropertyInstance
, Microsoft.Build.Execution.ProjectItemInstance,
27
Assert.Equal(x.Properties, y.Properties, EqualityComparer<
ProjectPropertyInstance
>.Default);
28
Assert.Equal(x.TestEnvironmentalProperties, y.TestEnvironmentalProperties, EqualityComparer<
ProjectPropertyInstance
>.Default);
Microsoft.Build.Utilities.UnitTests (1)
ToolLocationHelper_Tests.cs (1)
714
var
toolsPath32 = ProjectCollection.GlobalProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion).Properties["MSBuildToolsPath32"];