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