3 types derived from ProjectPropertyInstance
Microsoft.Build (3)
Instance\ProjectPropertyInstance.cs (3)
350private class ProjectPropertyInstanceImmutable : ProjectPropertyInstance 371internal class EnvironmentDerivedProjectPropertyInstance : ProjectPropertyInstance 394internal class SdkResolvedEnvironmentVariablePropertyInstance(string name, string escapedValue) : ProjectPropertyInstance(name, escapedValue)
1 instantiation of ProjectPropertyInstance
Microsoft.Build (1)
Instance\ProjectPropertyInstance.cs (1)
341new ProjectPropertyInstance(name, escapedValue);
1591 references to ProjectPropertyInstance
Microsoft.Build (496)
BackEnd\BuildManager\BuildParameters.cs (15)
139private PropertyDictionary<ProjectPropertyInstance> _environmentProperties = new PropertyDictionary<ProjectPropertyInstance>(); 149private PropertyDictionary<ProjectPropertyInstance> _globalProperties = new PropertyDictionary<ProjectPropertyInstance>(); 261Initialize(new PropertyDictionary<ProjectPropertyInstance>(projectCollection.EnvironmentProperties), projectCollection.ProjectRootElementCache, new ToolsetProvider(projectCollection.Toolsets)); 269_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(projectCollection.GlobalPropertiesCollection); 296_environmentProperties = other._environmentProperties != null ? new PropertyDictionary<ProjectPropertyInstance>(other._environmentProperties) : null; 298_globalProperties = other._globalProperties != null ? new PropertyDictionary<ProjectPropertyInstance>(other._globalProperties) : null; 460return new ReadOnlyConvertingDictionary<string, ProjectPropertyInstance, string>(_environmentProperties, 495return new ReadOnlyConvertingDictionary<string, ProjectPropertyInstance, string>(_globalProperties, 501_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(value.Count); 504_globalProperties[property.Key] = ProjectPropertyInstance.Create(property.Key, property.Value); 759internal PropertyDictionary<ProjectPropertyInstance> EnvironmentPropertiesInternal 773internal PropertyDictionary<ProjectPropertyInstance> GlobalPropertiesInternal => _globalProperties; 1032private void Initialize(PropertyDictionary<ProjectPropertyInstance> environmentProperties, ProjectRootElementCacheBase projectRootElementCache, ToolsetProvider toolsetProvider)
BackEnd\BuildManager\BuildRequestData.cs (7)
144GlobalPropertiesDictionary = new PropertyDictionary<ProjectPropertyInstance>(globalProperties.Count); 147GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(propertyPair.Key, propertyPair.Value)); 187public ICollection<ProjectPropertyInstance> GlobalProperties => (GlobalPropertiesDictionary == null) ? 188(ICollection<ProjectPropertyInstance>)ReadOnlyEmptyCollection<ProjectPropertyInstance>.Instance : 189new ReadOnlyCollection<ProjectPropertyInstance>(GlobalPropertiesDictionary); 218internal PropertyDictionary<ProjectPropertyInstance>? GlobalPropertiesDictionary { get; }
BackEnd\BuildManager\GlobalPropertiesLookup.cs (5)
15PropertyDictionary<ProjectPropertyInstance>? backing) 25private GlobalPropertiesLookup(IDictionary<string, ProjectPropertyInstance> backingProperties) 30private readonly IDictionary<string, ProjectPropertyInstance> _backingProperties; 44if (_backingProperties.TryGetValue(key, out var property)) 59private 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)
11using static Microsoft.Build.Execution.ProjectPropertyInstance; 127PropertyDictionary<ProjectPropertyInstance> projectProperties, 163PropertyDictionary<ProjectPropertyInstance> projectProperties, 194PropertyDictionary<ProjectPropertyInstance> projectProperties, 233PropertyDictionary<ProjectPropertyInstance> projectPropertiesToSerialize = new PropertyDictionary<ProjectPropertyInstance>(); 236ProjectPropertyInstance instance = projectProperties[propertyToGet]; 245properties = projectPropertiesToSerialize.Select((ProjectPropertyInstance property) => new DictionaryEntry(property.Name, property.EvaluatedValue));
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
392foreach (ProjectPropertyInstance property in configuration.GlobalProperties) 723foreach (ProjectPropertyInstance property in configuration.GlobalProperties)
BackEnd\Components\RequestBuilder\FullTracking.cs (2)
92internal static IDisposable Track(string targetName, string taskName, string projectRootDirectory, PropertyDictionary<ProjectPropertyInstance> projectProperties) 96ProjectPropertyInstance tlogRelativeDirectoryProperty = projectProperties[FullTrackingDirectoryPropertyName];
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (8)
393Expander<ProjectPropertyInstance, ProjectItemInstance> expander, 590Expander<ProjectPropertyInstance, ProjectItemInstance> expander) 657Expander<ProjectPropertyInstance, ProjectItemInstance> expander, 661ItemSpec<ProjectPropertyInstance, ProjectItemInstance> itemSpec = new ItemSpec<ProjectPropertyInstance, ProjectItemInstance>(child.Remove, expander, child.RemoveLocation, Project.Directory, true); 663itemSpec.Fragments.All(f => f is ItemSpec<ProjectPropertyInstance, ProjectItemInstance>.ItemExpressionFragment), 668MetadataTrie<ProjectPropertyInstance, ProjectItemInstance> metadataSet = new MetadataTrie<ProjectPropertyInstance, ProjectItemInstance>(matchingOptions, matchOnMetadata, itemSpec);
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
104bucket.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; 106_expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(_lookup, _lookup, new StringMetadataTable(_metadata), FileSystems.Default, loggingContext); 151internal Expander<ProjectPropertyInstance, ProjectItemInstance> Expander
BackEnd\Components\RequestBuilder\Lookup.cs (18)
58internal class Lookup : IPropertyProvider<ProjectPropertyInstance>, IItemProvider<ProjectItemInstance> 102internal Lookup(IItemDictionary<ProjectItemInstance> projectItems, PropertyDictionary<ProjectPropertyInstance> properties) 156private PropertyDictionary<ProjectPropertyInstance> PrimaryPropertySets 180private PropertyDictionary<ProjectPropertyInstance> SecondaryProperties 186private PropertyDictionary<ProjectPropertyInstance> SecondaryPropertySets 208foreach (ProjectPropertyInstance property in PrimaryPropertySets) 404SecondaryProperties ??= new PropertyDictionary<ProjectPropertyInstance>(PrimaryPropertySets.Count); 415public ProjectPropertyInstance GetProperty(string name, int startIndex, int endIndex) 424ProjectPropertyInstance property = scope.PropertySets.GetProperty(name, startIndex, endIndex); 433ProjectPropertyInstance property = scope.Properties.GetProperty(name, startIndex, endIndex); 451public ProjectPropertyInstance GetProperty(string name) 720internal void SetProperty(ProjectPropertyInstance property) 726PrimaryPropertySets ??= new PropertyDictionary<ProjectPropertyInstance>(); 1426private PropertyDictionary<ProjectPropertyInstance> _properties; 1431private PropertyDictionary<ProjectPropertyInstance> _propertySets; 1449internal Scope(Lookup lookup, string description, PropertyDictionary<ProjectPropertyInstance> properties) 1527internal PropertyDictionary<ProjectPropertyInstance> Properties 1535internal PropertyDictionary<ProjectPropertyInstance> PropertySets
BackEnd\Components\RequestBuilder\RequestBuilder.cs (4)
335public async Task<BuildResult[]> BuildProjects(string[] projectFiles, PropertyDictionary<ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets = false) 1168_requestEntry.RequestConfiguration.Project is IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance> project) 1170if (project.SdkResolvedEnvironmentVariablePropertiesDictionary is PropertyDictionary<ProjectPropertyInstance> environmentProperties) 1172foreach (ProjectPropertyInstance environmentProperty in environmentProperties)
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
329async 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; 184_expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(baseLookup, baseLookup, FileSystems.Default, loggingContext);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
555private TaskHostParameters GatherTaskIdentityParameters(Expander<ProjectPropertyInstance, ProjectItemInstance> expander) 873bucket.Lookup.SetProperty(ProjectPropertyInstance.Create(ReservedPropertyNames.lastTaskResult, taskResult ? "true" : "false", true/* may be reserved */, _buildRequestEntry.RequestConfiguration.Project.IsImmutable)); 1250lookup.SetProperty(ProjectPropertyInstance.Create(propertyName, taskParameterValue, taskPropertyInstance.TaskParameterLocation, _buildRequestEntry.RequestConfiguration.Project.IsImmutable));
BackEnd\Components\RequestBuilder\TaskHost.cs (4)
1182PropertyDictionary<ProjectPropertyInstance>[] propertyDictionaries = new PropertyDictionary<ProjectPropertyInstance>[projectFileNames.Length]; 1187propertyDictionaries[i] = new PropertyDictionary<ProjectPropertyInstance>(_requestEntry.RequestConfiguration.Project.GlobalPropertiesDictionary); 1194propertyDictionaries[i].Set(ProjectPropertyInstance.Create(entry.Key as string, entry.Value as string, _taskLocation));
BackEnd\Components\Scheduler\Scheduler.cs (2)
2133=> string.Join("; ", configuration.GlobalProperties.Select<ProjectPropertyInstance, string>(p => $"{p.Name}={p.EvaluatedValue}")); 2893foreach (ProjectPropertyInstance property in _configCache[config].GlobalProperties)
BackEnd\Shared\BuildRequestConfiguration.cs (11)
68private PropertyDictionary<ProjectPropertyInstance> _globalProperties; 100private List<ProjectPropertyInstance> _transferredProperties; 197_transferredProperties = new List<ProjectPropertyInstance>(); 393public PropertyDictionary<ProjectPropertyInstance> GlobalProperties => _globalProperties; 423foreach (var property in _transferredProperties) 485foreach (ProjectPropertyInstance property in GlobalProperties) 548_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(_globalProperties); 551_globalProperties[key] = ProjectPropertyInstance.Create(key, "Forces unique project identity in the MSBuild engine"); 956translator.TranslateDictionary(ref _globalProperties, ProjectPropertyInstance.FactoryForDeserialization); 958translator.Translate(ref _transferredProperties, ProjectPropertyInstance.FactoryForDeserialization); 980translator.TranslateDictionary(ref _globalProperties, ProjectPropertyInstance.FactoryForDeserialization);
BackEnd\Shared\ConfigurationMetadata.cs (7)
29_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(configuration.GlobalProperties); 40_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(project.GlobalPropertiesCount); 43_globalProperties[entry.Key] = ProjectPropertyInstance.Create(entry.Key, entry.Value); 53public ConfigurationMetadata(string projectFullPath, PropertyDictionary<ProjectPropertyInstance> globalProperties) 85private PropertyDictionary<ProjectPropertyInstance> _globalProperties; 90public PropertyDictionary<ProjectPropertyInstance> GlobalProperties => _globalProperties; 110translator.TranslateDictionary(ref _globalProperties, ProjectPropertyInstance.FactoryForDeserialization);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
1628_batchBucket.Lookup.SetProperty(ProjectPropertyInstance.Create(outputTargetName, outputString, parameterLocation, _projectInstance.IsImmutable)); 1723_batchBucket.Lookup.SetProperty(ProjectPropertyInstance.Create(outputTargetName, outputString, parameterLocation, _projectInstance.IsImmutable));
Construction\Solution\SolutionProjectGenerator.cs (2)
1805ProjectPropertyInstance outdir = metaprojectInstance.GetProperty("OutDir"); 2147foreach (ProjectPropertyInstance globalProperty in traversalProject.GlobalPropertiesDictionary)
Definition\Project.cs (15)
2132foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2159foreach (ProjectPropertyInstance property in _data.GlobalPropertiesDictionary) 2983ProjectPropertyInstance existing = _data.GlobalPropertiesDictionary[name]; 2989_data.GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(name, escapedValue)); 3791var globalPropertiesCollection = new PropertyDictionary<ProjectPropertyInstance>(); 3792foreach (ProjectPropertyInstance property in ProjectCollection.GlobalPropertiesCollection) 3794ProjectPropertyInstance clone = property.DeepClone(); 3807globalPropertiesCollection.Set(ProjectPropertyInstance.Create(pair.Key, subToolsetVersion)); 3811globalPropertiesCollection.Set(ProjectPropertyInstance.Create(pair.Key, pair.Value)); 4047internal Data(Project project, PropertyDictionary<ProjectPropertyInstance> globalProperties, string explicitToolsVersion, string explicitSubToolsetVersion, bool CanEvaluateElementsWithFalseConditions) 4082public PropertyDictionary<ProjectPropertyInstance> GlobalPropertiesDictionary { get; } 4087public PropertyDictionary<ProjectPropertyInstance> EnvironmentVariablePropertiesDictionary => this.Project.ProjectCollection.EnvironmentProperties; 4283public PropertyDictionary<ProjectPropertyInstance> SdkResolvedEnvironmentVariablePropertiesDictionary { get; private set; } 4305SdkResolvedEnvironmentVariablePropertiesDictionary = new PropertyDictionary<ProjectPropertyInstance>(); 4478ProjectPropertyInstance.SdkResolvedEnvironmentVariablePropertyInstance property = new(name, value);
Definition\ProjectCollection.cs (15)
150private readonly PropertyDictionary<ProjectPropertyInstance> _globalProperties; 155private PropertyDictionary<ProjectPropertyInstance> _environmentProperties; 370_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(globalProperties.Count); 376_globalProperties.Set(ProjectPropertyInstance.Create(pair.Key, pair.Value)); 396_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(); 604foreach (ProjectPropertyInstance property in _globalProperties) 929internal PropertyDictionary<ProjectPropertyInstance> GlobalPropertiesCollection 934var clone = new PropertyDictionary<ProjectPropertyInstance>(); 938foreach (ProjectPropertyInstance property in _globalProperties) 951internal PropertyDictionary<ProjectPropertyInstance> EnvironmentProperties 959return new PropertyDictionary<ProjectPropertyInstance>(SharedReadOnlyEnvironmentProperties); 966internal PropertyDictionary<ProjectPropertyInstance> SharedReadOnlyEnvironmentProperties 1489public ProjectPropertyInstance GetGlobalProperty(string name) 1506ProjectPropertyInstance propertyInGlobalProperties = _globalProperties.GetProperty(name); 1510_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)
69private PropertyDictionary<ProjectPropertyInstance> _properties; 84private PropertyDictionary<ProjectPropertyInstance> _environmentProperties; 89private PropertyDictionary<ProjectPropertyInstance> _globalProperties; 134private Expander<ProjectPropertyInstance, ProjectItemInstance> _expander; 196_properties = new PropertyDictionary<ProjectPropertyInstance>(); 201_properties.Set(ProjectPropertyInstance.Create(keyValuePair.Key, keyValuePair.Value, true)); 215internal Toolset(string toolsVersion, string toolsPath, PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties, string msbuildOverrideTasksPath, string defaultOverrideToolsVersion) 249PropertyDictionary<ProjectPropertyInstance> buildProperties, 250PropertyDictionary<ProjectPropertyInstance> environmentProperties, 251PropertyDictionary<ProjectPropertyInstance> globalProperties, 261? new PropertyDictionary<ProjectPropertyInstance>(buildProperties) 262: new PropertyDictionary<ProjectPropertyInstance>(); 294internal Toolset(string toolsVersion, string toolsPath, PropertyDictionary<ProjectPropertyInstance> buildProperties, ProjectCollection projectCollection, DirectoryGetFiles getFiles, LoadXmlFromPath loadXmlFromPath, string msbuildOverrideTasksPath, DirectoryExists directoryExists) 389public IDictionary<string, ProjectPropertyInstance> Properties 395return ReadOnlyEmptyDictionary<string, ProjectPropertyInstance>.Instance; 398return new ObjectModel.ReadOnlyDictionary<string, ProjectPropertyInstance>(_properties); 555public ProjectPropertyInstance GetProperty(string propertyName, string subToolsetVersion) 558ProjectPropertyInstance property = null; 641internal string GenerateSubToolsetVersion(PropertyDictionary<ProjectPropertyInstance> overrideGlobalProperties) 645ProjectPropertyInstance subToolsetProperty = overrideGlobalProperties[Constants.SubToolsetVersionPropertyName]; 677ProjectPropertyInstance visualStudioVersionProperty = _globalProperties[Constants.SubToolsetVersionPropertyName]; 688ProjectPropertyInstance visualStudioVersionProperty = _environmentProperties[Constants.SubToolsetVersionPropertyName]; 800List<ProjectPropertyInstance> reservedProperties = new List<ProjectPropertyInstance>(); 802reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.binPath, EscapingUtilities.Escape(ToolsPath), mayBeReserved: true)); 803reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.toolsVersion, ToolsVersion, mayBeReserved: true)); 805reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.toolsPath, EscapingUtilities.Escape(ToolsPath), mayBeReserved: true)); 806reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.assemblyVersion, Constants.AssemblyVersion, mayBeReserved: true)); 807reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.version, MSBuildAssemblyFileVersion.Instance.MajorMinorBuild, mayBeReserved: true)); 809reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.msbuildRuntimeType, 826ICollection<ProjectPropertyInstance> subToolsetProperties = null; 837PropertyDictionary<ProjectPropertyInstance> propertyBag = new PropertyDictionary<ProjectPropertyInstance>(count); 852propertyBag.Set(ProjectPropertyInstance.Create(Constants.SubToolsetVersionPropertyName, subToolsetVersion)); 862_expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, FileSystems.Default, loggingContext); 943TaskRegistry.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)
16internal ToolsetLocalReader(PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties)
Definition\ToolsetReader.cs (33)
33private readonly PropertyDictionary<ProjectPropertyInstance> _environmentProperties; 39PropertyDictionary<ProjectPropertyInstance> environmentProperties, 40PropertyDictionary<ProjectPropertyInstance> globalProperties) 82internal static string ReadAllToolsets(Dictionary<string, Toolset> toolsets, PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties, ToolsetDefinitionLocations locations) 102PropertyDictionary<ProjectPropertyInstance> environmentProperties, 103PropertyDictionary<ProjectPropertyInstance> globalProperties, 107new PropertyDictionary<ProjectPropertyInstance>(environmentProperties); 165var props = new PropertyDictionary<ProjectPropertyInstance>(); 225new PropertyDictionary<ProjectPropertyInstance>(), 340PropertyDictionary<ProjectPropertyInstance> globalProperties, 341PropertyDictionary<ProjectPropertyInstance> initialProperties, 398PropertyDictionary<ProjectPropertyInstance> globalProperties, 399PropertyDictionary<ProjectPropertyInstance> initialProperties, 412PropertyDictionary<ProjectPropertyInstance> initialPropertiesClone = new PropertyDictionary<ProjectPropertyInstance>(initialProperties); 432PropertyDictionary<ProjectPropertyInstance> globalProperties, 433PropertyDictionary<ProjectPropertyInstance> initialProperties, 442PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 446Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(initialProperties, FileSystems.Default); 461PropertyDictionary<ProjectPropertyInstance> subToolsetProperties = new PropertyDictionary<ProjectPropertyInstance>(); 515private 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) 564expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(initialProperties, FileSystems.Default); 572private string ExpandPropertyUnescaped(ToolsetPropertyDefinition property, Expander<ProjectPropertyInstance, ProjectItemInstance> expander) 589private void SetProperty(ToolsetPropertyDefinition property, PropertyDictionary<ProjectPropertyInstance> propertyGroup, PropertyDictionary<ProjectPropertyInstance> globalProperties) 596propertyGroup.Set(ProjectPropertyInstance.Create(property.Name, EscapingUtilities.UnescapeAll(property.Value), true /* may be reserved */, false /* not immutable */));
Definition\ToolsetRegistryReader.cs (4)
53internal ToolsetRegistryReader(PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties) 61internal ToolsetRegistryReader(PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties, RegistryKeyWrapper msbuildRegistryWrapper)
Evaluation\Evaluator.cs (12)
28using static Microsoft.Build.Execution.ProjectPropertyInstance; 158private readonly PropertyDictionary<ProjectPropertyInstance> _environmentProperties; 207PropertyDictionary<ProjectPropertyInstance> environmentProperties, 309PropertyDictionary<ProjectPropertyInstance> environmentProperties, 809ProjectPropertyInstance configurationData = _data.GlobalPropertiesDictionary["currentsolutionconfigurationcontents"]; 813foreach (var entry in _data.GlobalPropertiesDictionary) 1210foreach (ProjectPropertyInstance environmentProperty in _environmentProperties) 1221foreach (ProjectPropertyInstance toolsetProperty in _data.Toolset.Properties.Values) 1247foreach (ProjectPropertyInstance subToolsetProperty in subToolset.Properties.Values) 1265foreach (ProjectPropertyInstance globalProperty in _data.GlobalPropertiesDictionary) 1302((IDictionary<string, ProjectPropertyInstance>)_data.GlobalPropertiesDictionary).ContainsKey(propertyElement.Name) && 2196new ReadOnlyConvertingDictionary<string, ProjectPropertyInstance, string>(
Evaluation\Expander.cs (1)
1669if (property is ProjectPropertyInstance.EnvironmentDerivedProjectPropertyInstance environmentDerivedProperty)
Evaluation\IEvaluatorData.cs (3)
90PropertyDictionary<ProjectPropertyInstance> GlobalPropertiesDictionary 211PropertyDictionary<ProjectPropertyInstance> EnvironmentVariablePropertiesDictionary { get; } 216PropertyDictionary<ProjectPropertyInstance> SdkResolvedEnvironmentVariablePropertiesDictionary { get; }
Evaluation\LazyItemEvaluator.EvaluatorData.cs (3)
95public PropertyDictionary<ProjectPropertyInstance> GlobalPropertiesDictionary => _wrappedData.GlobalPropertiesDictionary; 97public PropertyDictionary<ProjectPropertyInstance> EnvironmentVariablePropertiesDictionary => _wrappedData.EnvironmentVariablePropertiesDictionary; 140public PropertyDictionary<ProjectPropertyInstance> SdkResolvedEnvironmentVariablePropertiesDictionary => _wrappedData.SdkResolvedEnvironmentVariablePropertiesDictionary;
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (3)
144public PropertyDictionary<ProjectPropertyInstance> GlobalPropertiesDictionary => _wrapped.GlobalPropertiesDictionary; 157public PropertyDictionary<ProjectPropertyInstance> EnvironmentVariablePropertiesDictionary => _wrapped.EnvironmentVariablePropertiesDictionary; 158public PropertyDictionary<ProjectPropertyInstance> SdkResolvedEnvironmentVariablePropertiesDictionary => _wrapped.SdkResolvedEnvironmentVariablePropertiesDictionary;
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)
434void AddGraphBuildGlobalVariable(PropertyDictionary<ProjectPropertyInstance> globalPropertyDictionary) 438globalPropertyDictionary[PropertyNames.IsGraphBuild] = ProjectPropertyInstance.Create(PropertyNames.IsGraphBuild, "true"); 673private static PropertyDictionary<ProjectPropertyInstance> CreatePropertyDictionary(IDictionary<string, string> properties) 675PropertyDictionary<ProjectPropertyInstance> propertyDictionary; 678propertyDictionary = new PropertyDictionary<ProjectPropertyInstance>(0); 682propertyDictionary = new PropertyDictionary<ProjectPropertyInstance>(properties.Count); 685propertyDictionary[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)
28IRetrievableValuedEntryHashSet<ProjectPropertyInstance>, 32private readonly PropertyDictionary<ProjectPropertyInstance> _allProperties; 37PropertyDictionary<ProjectPropertyInstance> allProperties) 44public ProjectPropertyInstance this[string key] 64public ICollection<ProjectPropertyInstance> Values => _values; 66public void Add(ProjectPropertyInstance item) => throw new NotSupportedException(); 68public void Add(string key, ProjectPropertyInstance value) => throw new NotSupportedException(); 70public void Add(KeyValuePair<string, ProjectPropertyInstance> item) => throw new NotSupportedException(); 74public bool Contains(ProjectPropertyInstance item) => _values.Contains(item); 76public bool Contains(KeyValuePair<string, ProjectPropertyInstance> itemKvp) => _values.Contains(itemKvp.Value); 80public void CopyTo(ProjectPropertyInstance[] array) => _values.CopyTo(array, arrayIndex: 0); 82public void CopyTo(ProjectPropertyInstance[] array, int arrayIndex) => _values.CopyTo(array, arrayIndex); 84public void CopyTo(ProjectPropertyInstance[] array, int arrayIndex, int count) => _values.CopyTo(array, arrayIndex, count); 86public void CopyTo(KeyValuePair<string, ProjectPropertyInstance>[] array, int arrayIndex) 93ProjectPropertyInstance instance = _allProperties[itemKey]; 96array[currentIndex] = new KeyValuePair<string, ProjectPropertyInstance>(itemKey, instance); 102public ProjectPropertyInstance Get(string key) 107public ProjectPropertyInstance Get(string key, int index, int length) 112ProjectPropertyInstance actualProperty = _allProperties.Get(key, index, length); 121public IEnumerator<ProjectPropertyInstance> GetEnumerator() => _values.GetEnumerator(); 127public bool Remove(ProjectPropertyInstance item) => throw new NotSupportedException(); 131public bool Remove(KeyValuePair<string, ProjectPropertyInstance> item) => throw new NotSupportedException(); 141public bool TryGetValue(string key, out ProjectPropertyInstance value) 143ProjectPropertyInstance instance = Get(key); 148public void UnionWith(IEnumerable<ProjectPropertyInstance> other) => throw new NotSupportedException(); 150IEnumerator<KeyValuePair<string, ProjectPropertyInstance>> IEnumerable<KeyValuePair<string, ProjectPropertyInstance>>.GetEnumerator() 154ProjectPropertyInstance instance = _allProperties[itemKey]; 157yield return new KeyValuePair<string, ProjectPropertyInstance>(itemKey, instance); 164private class ValuesCollection : ICollection<ProjectPropertyInstance> 177public void Add(ProjectPropertyInstance item) => throw new NotSupportedException(); 181public bool Remove(ProjectPropertyInstance item) => throw new NotSupportedException(); 183public bool Contains(ProjectPropertyInstance item) 190ProjectPropertyInstance actualInstance = _parent._allProperties[item.Name]; 200public void CopyTo(ProjectPropertyInstance[] array, int arrayIndex) 205public void CopyTo(ProjectPropertyInstance[] array, int arrayIndex, int count) 218ProjectPropertyInstance instance = _parent._allProperties[itemKey]; 228public IEnumerator<ProjectPropertyInstance> GetEnumerator() 232ProjectPropertyInstance instance = _parent._allProperties[itemKey]; 244ProjectPropertyInstance instance = _parent._allProperties[itemKey];
Instance\ImmutableProjectCollections\ImmutableProjectPropertyCollectionConverter.cs (3)
17ImmutableElementCollectionConverter<ProjectProperty, ProjectPropertyInstance>, 18IRetrievableValuedEntryHashSet<ProjectPropertyInstance>, 27Func<ProjectProperty, ProjectPropertyInstance> convertElement)
Instance\ProjectInstance.cs (141)
79public class ProjectInstance : IPropertyProvider<ProjectPropertyInstance>, IItemProvider<ProjectItemInstance>, IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>, ITranslatable 107private PropertyDictionary<ProjectPropertyInstance> _globalProperties; 123private PropertyDictionary<ProjectPropertyInstance> _properties; 128private PropertyDictionary<ProjectPropertyInstance> _environmentVariableProperties; 133private PropertyDictionary<ProjectPropertyInstance> _sdkResolvedEnvironmentVariableProperties; 396_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(project.GlobalPropertiesCount); 399_globalProperties.Set(ProjectPropertyInstance.Create(property.Key, property.Value)); 460_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(globalPropertiesRetrievableHashSet); 566_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(globalProperties.Count); 570_properties = new PropertyDictionary<ProjectPropertyInstance>(projectToInheritFrom._properties); // This brings along the reserved properties, which are important. 592IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance> thisAsIEvaluatorData = this; 598_globalProperties[property.Key] = ProjectPropertyInstance.Create(property.Key, property.Value, false /* may not be reserved */, _isImmutable); 673internal ProjectInstance(Evaluation.Project.Data data, string directory, string fullPath, HostServices hostServices, PropertyDictionary<ProjectPropertyInstance> environmentVariableProperties, ProjectInstanceSettings settings) 717private void CreateSdkResolvedEnvironmentVariablePropertiesSnapshot(PropertyDictionary<ProjectPropertyInstance> sdkResolvedEnvironmentVariablePropertiesDictionary) 719_sdkResolvedEnvironmentVariableProperties = new PropertyDictionary<ProjectPropertyInstance>(sdkResolvedEnvironmentVariablePropertiesDictionary.Count); 721foreach (ProjectPropertyInstance environmentProperty in sdkResolvedEnvironmentVariablePropertiesDictionary) 754_properties = new PropertyDictionary<ProjectPropertyInstance>(that._properties.Count); 756foreach (ProjectPropertyInstance property in that.Properties) 768_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(that._globalProperties.Count); 770foreach (ProjectPropertyInstance globalProperty in that.GlobalPropertiesDictionary) 776new PropertyDictionary<ProjectPropertyInstance>(that._environmentVariableProperties.Count); 778foreach (ProjectPropertyInstance environmentProperty in that._environmentVariableProperties) 783if (that._sdkResolvedEnvironmentVariableProperties is PropertyDictionary<ProjectPropertyInstance> thatEnvProps) 787foreach (ProjectPropertyInstance sdkResolvedEnvironmentVariable in thatEnvProps) 795((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, 797((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, 799((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, 801((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, 827_properties = new PropertyDictionary<ProjectPropertyInstance>(filter.PropertyFilters.Count); 828_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(filter.PropertyFilters.Count); 830new PropertyDictionary<ProjectPropertyInstance>(filter.PropertyFilters.Count); 832new PropertyDictionary<ProjectPropertyInstance>(filter.PropertyFilters.Count); 837var regularProperty = that.GetProperty(desiredProperty); 843var globalProperty = that.GetProperty(desiredProperty); 849var environmentProperty = that._environmentVariableProperties?.GetProperty(desiredProperty); 854var sdkResolvedEnvironmentProperty = that._sdkResolvedEnvironmentVariableProperties?.GetProperty(desiredProperty); 1051private static PropertyDictionary<ProjectPropertyInstance> GetImmutablePropertyDictionaryFromImmutableProject(Project linkedProject) 1065return new PropertyDictionary<ProjectPropertyInstance>(hashSet); 1068private static ProjectPropertyInstance ConvertCachedPropertyToInstance(ProjectProperty property) 1070ProjectPropertyInstance result = null; 1072if (property is IImmutableInstanceProvider<ProjectPropertyInstance> instanceProvider) 1153bool IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.CanEvaluateElementsWithFalseConditions => false; 1158public ICollection<ProjectPropertyInstance> Properties 1164(ICollection<ProjectPropertyInstance>)ReadOnlyEmptyCollection<ProjectPropertyInstance>.Instance : 1165new ReadOnlyCollection<ProjectPropertyInstance>(_properties); 1320TaskRegistry IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.TaskRegistry 1337Toolset IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Toolset 1348string IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SubToolsetVersion 1362string IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ExplicitToolsVersion 1372PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GlobalPropertiesDictionary 1379PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.EnvironmentVariablePropertiesDictionary 1384PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SdkResolvedEnvironmentVariablePropertiesDictionary 1411ProjectPropertyInstance.SdkResolvedEnvironmentVariablePropertyInstance property = new(name, value); 1429((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this) 1437private void LogIfValueDiffers(PropertyDictionary<ProjectPropertyInstance> propertyDictionary, string name, string attemptedValue, string messageResourceName) 1439ProjectPropertyInstance existingProperty = propertyDictionary.GetProperty(name); 1449ISet<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GlobalPropertiesToTreatAsLocal 1465PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Properties 1475IEnumerable<ProjectItemDefinitionInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ItemDefinitionsEnumerable 1485IItemDictionary<ProjectItemInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Items 1496List<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.InitialTargets 1514List<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.DefaultTargets 1532IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.BeforeTargets 1542IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AfterTargets 1555Dictionary<string, List<string>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ConditionedProperties 1569bool IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ShouldEvaluateForDesignTime 1587internal PropertyDictionary<ProjectPropertyInstance> GlobalPropertiesDictionary 1654internal PropertyDictionary<ProjectPropertyInstance> PropertiesToBuildWith 1661internal ICollection<ProjectPropertyInstance> TestEnvironmentalProperties => new ReadOnlyCollection<ProjectPropertyInstance>(_environmentVariableProperties); 1763public static string GetPropertyValueEscaped(ProjectPropertyInstance property) 1786void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>. 1796void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.FinishEvaluation() 1806void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddItem(ProjectItemInstance item) 1817void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddItemIgnoringCondition(ProjectItemInstance item) 1826IItemDefinition<ProjectMetadataInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddItemDefinition(string itemType) 1844void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddToAllEvaluatedPropertiesList(ProjectPropertyInstance property) 1858void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddToAllEvaluatedItemDefinitionMetadataList(ProjectMetadataInstance itemDefinitionMetadatum) 1872void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddToAllEvaluatedItemsList(ProjectItemInstance item) 1880IItemDefinition<ProjectMetadataInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GetItemDefinition(string itemType) 1895ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable, bool isCommandLineProperty) 1898ProjectPropertyInstance property = ProjectPropertyInstance.Create(name, evaluatedValueEscaped, mayBeReserved, _isImmutable, isEnvironmentVariable, loggingContext); 1908ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext) 1911ProjectPropertyInstance property = ProjectPropertyInstance.Create(propertyElement.Name, evaluatedValueEscaped, false /* may not be reserved */, _isImmutable); 1919ProjectTargetInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GetTarget(string targetName) 1932void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddTarget(ProjectTargetInstance target) 1940void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.RecordImport( 1951_sdkResolvedEnvironmentVariableProperties.Set(ProjectPropertyInstance.Create(environmentVariable.Key, environmentVariable.Value, importElement.Location, isImmutable: true)); 1954((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).RecordImportWithDuplicates(importElement, import, versionEvaluated); 1960void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.RecordImportWithDuplicates(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated) 1970public ProjectPropertyInstance GetProperty(string name) 1981ProjectPropertyInstance IPropertyProvider<ProjectPropertyInstance>.GetProperty(string name, int startIndex, int endIndex) 2033public ProjectPropertyInstance SetProperty(string name, string evaluatedValue) 2037ProjectPropertyInstance property = ProjectPropertyInstance.Create(name, evaluatedValue, false /* may not be reserved */, _isImmutable); 2346Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(this, this, FileSystems.Default, _loggingContext); 2364Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(this, this, FileSystems.Default, _loggingContext); 2410foreach (ProjectPropertyInstance property in _properties) 2443_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(projectState._globalProperties); 2444_properties = new PropertyDictionary<ProjectPropertyInstance>(projectState._properties); 2514translator.TranslateDictionary(ref _globalProperties, ProjectPropertyInstance.FactoryForDeserialization); 2515translator.TranslateDictionary(ref _properties, ProjectPropertyInstance.FactoryForDeserialization); 2554translator.TranslateDictionary(ref _environmentVariableProperties, ProjectPropertyInstance.FactoryForDeserialization); 2555translator.TranslateDictionary(ref _globalProperties, ProjectPropertyInstance.FactoryForDeserialization); 2556translator.TranslateDictionary(ref _properties, ProjectPropertyInstance.FactoryForDeserialization); 2640PropertyDictionary<ProjectPropertyInstance> globalPropertiesInstances, 2659foreach (ProjectPropertyInstance propertyInstance in globalPropertiesInstances) 2863if (((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).BeforeTargets.TryGetValue(target, out beforeTargetsForTarget)) 2880if (((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).AfterTargets.TryGetValue(target, out afterTargetsForTarget)) 3164private static ProjectPropertyInstance InstantiateProjectPropertyInstance(ProjectProperty property, bool isImmutable) 3168var instance = ProjectPropertyInstance.Create( 3210_properties = new PropertyDictionary<ProjectPropertyInstance>(); 3218_globalProperties = new PropertyDictionary<ProjectPropertyInstance>((globalProperties == null) ? 0 : globalProperties.Count); 3273_globalProperties.Set(ProjectPropertyInstance.Create(globalProperty.Key, explicitSubToolsetVersion, false /* may not be reserved */, _isImmutable)); 3277_globalProperties.Set(ProjectPropertyInstance.Create(globalProperty.Key, globalProperty.Value, false /* may not be reserved */, _isImmutable)); 3291Evaluator<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Evaluate( 3345((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).BeforeTargets = CreateCloneDictionary(beforeTargets, StringComparer.OrdinalIgnoreCase); 3346((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).AfterTargets = CreateCloneDictionary(afterTargets, StringComparer.OrdinalIgnoreCase); 3384private void CreateEnvironmentVariablePropertiesSnapshot(PropertyDictionary<ProjectPropertyInstance> environmentVariableProperties) 3386_environmentVariableProperties = new PropertyDictionary<ProjectPropertyInstance>(environmentVariableProperties.Count); 3388foreach (ProjectPropertyInstance environmentProperty in environmentVariableProperties) 3397private void CreateGlobalPropertiesSnapshot(PropertyDictionary<ProjectPropertyInstance> globalPropertiesDictionary) 3399_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(globalPropertiesDictionary.Count); 3401foreach (ProjectPropertyInstance globalProperty in globalPropertiesDictionary) 3565_properties = new PropertyDictionary<ProjectPropertyInstance>(properties.Count); 3569ProjectPropertyInstance instance = InstantiateProjectPropertyInstance(property, isImmutable);
Instance\ProjectItemInstance.cs (2)
1445Expander<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) :
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
320Func<string, ProjectPropertyInstance> getProperty, 652Func<string, ProjectPropertyInstance> getProperty)
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)
485internal static PropertyDictionary<ProjectPropertyInstance> GetEnvironmentProperties(bool makeReadOnly) 489var envPropertiesHashSet = new RetrievableValuedEntryHashSet<ProjectPropertyInstance>(environmentVariablesBag.Count + 2, MSBuildNameIgnoreCaseComparer.Default); 506envPropertiesHashSet.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.extensionsPath32, extensionsPath32, true)); 523envPropertiesHashSet.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.extensionsPath64, extensionsPath64, true)); 546envPropertiesHashSet.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.extensionsPath, extensionsPath, true)); 552ProjectPropertyInstance localAppDataProp = envPropertiesHashSet.Get(ReservedPropertyNames.localAppData); 574envPropertiesHashSet.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.localAppData, localAppData)); 578envPropertiesHashSet.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.userExtensionsPath, userExtensionsPath)); 591ProjectPropertyInstance environmentProperty = ProjectPropertyInstance.Create(environmentVariableName, environmentVariable.Value); 607var environmentProperties = new PropertyDictionary<ProjectPropertyInstance>(envPropertiesHashSet); 689if (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)
238ProjectPropertyInstance 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 (1080)
BackEnd\AssemblyTaskFactory_Tests.cs (14)
259(string propName) => ProjectPropertyInstance.Create("test", "test"), 297(string propName) => ProjectPropertyInstance.Create("test", "test"), 335(string propName) => ProjectPropertyInstance.Create("test", "test"), 375(string propName) => ProjectPropertyInstance.Create("test", "test"), 415(string propName) => ProjectPropertyInstance.Create("test", "test"), 457(string propName) => ProjectPropertyInstance.Create("test", "test"), 497(string propName) => ProjectPropertyInstance.Create("test", "test"), 535(string propName) => ProjectPropertyInstance.Create("test", "test"), 577(string propName) => ProjectPropertyInstance.Create("test", "test"), 615(string propName) => ProjectPropertyInstance.Create("test", "test"), 655(string propName) => ProjectPropertyInstance.Create("test", "test"), 695(string propName) => ProjectPropertyInstance.Create("test", "test"), 736(string propName) => ProjectPropertyInstance.Create("test", "test"), 766(string propName) => ProjectPropertyInstance.Create("test", "test"),
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)
175Assert.Equal(props.Count, Helpers.MakeList((IEnumerable<ProjectPropertyInstance>)(config1.GlobalProperties)).Count); 229PropertyDictionary<ProjectPropertyInstance> props = new PropertyDictionary<ProjectPropertyInstance>(); 230props.Set(ProjectPropertyInstance.Create("prop1", "value1")); 242PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 243properties.Set(ProjectPropertyInstance.Create("this", "that")); 244properties.Set(ProjectPropertyInstance.Create("foo", "bar"));
BackEnd\ConfigurationMetadata_Tests.cs (3)
125var globalProperties = new PropertyDictionary<ProjectPropertyInstance>(); 126globalProperties["a"] = ProjectPropertyInstance.Create("a", "b"); 136Assert.Equal(copy.GlobalProperties, initial.GlobalProperties, EqualityComparer<ProjectPropertyInstance>.Default);
BackEnd\IntrinsicTask_Tests.cs (32)
40PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 60PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 77PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 132PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 547lookup.SetProperty(ProjectPropertyInstance.Create("Keep", "m1;m2")); 650lookup.SetProperty(ProjectPropertyInstance.Create("Remove", "m1;m2")); 745PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 746properties.Set(ProjectPropertyInstance.Create("p0", " v0 ")); 973PropertyDictionary<ProjectPropertyInstance> properties = GeneratePropertyGroup(); 997PropertyDictionary<ProjectPropertyInstance> properties = GeneratePropertyGroup(); 1148PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 1903PropertyDictionary<ProjectPropertyInstance> properties = GeneratePropertyGroup(); 1937PropertyDictionary<ProjectPropertyInstance> properties = GeneratePropertyGroup(); 1975PropertyDictionary<ProjectPropertyInstance> properties = GeneratePropertyGroup(); 2539PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 3906private static PropertyDictionary<ProjectPropertyInstance> GeneratePropertyGroup() 3908PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 3909properties.Set(ProjectPropertyInstance.Create("p0", "v0")); 3915PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3916pg.Set(ProjectPropertyInstance.Create("p0", "v0")); 3924return GenerateLookup(project, new PropertyDictionary<ProjectPropertyInstance>()); 3927private static Lookup GenerateLookup(ProjectInstance project, PropertyDictionary<ProjectPropertyInstance> properties) 4005var 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")); 1588Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(), new PropertyDictionary<ProjectPropertyInstance>()); 1594Lookup lookup = new Lookup(items, new PropertyDictionary<ProjectPropertyInstance>()); 1598internal static Lookup CreateLookup(PropertyDictionary<ProjectPropertyInstance> properties) 1604internal static Lookup CreateLookup(PropertyDictionary<ProjectPropertyInstance> properties, ItemDictionary<ProjectItemInstance> items)
BackEnd\RequestBuilder_Tests.cs (3)
401PropertyDictionary<ProjectPropertyInstance>[] properties = new PropertyDictionary<ProjectPropertyInstance>[_newRequests.Length]; 407properties[i] = new PropertyDictionary<ProjectPropertyInstance>(_newRequests[i].Config.GlobalProperties);
BackEnd\TargetBuilder_Tests.cs (2)
1486Task<BuildResult[]> IRequestBuilderCallback.BuildProjects(string[] projectFiles, PropertyDictionary<ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets) 1576Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
BackEnd\TargetEntry_Tests.cs (4)
92Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties)); 122Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties)); 835Task<BuildResult[]> IRequestBuilderCallback.BuildProjects(string[] projectFiles, PropertyDictionary<ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets) 925Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
BackEnd\TargetUpToDateChecker_Tests.cs (1)
614ItemBucket itemBucket = new ItemBucket(null, null, new Lookup(itemsByName, new PropertyDictionary<ProjectPropertyInstance>()), 0);
BackEnd\TaskBuilder_Tests.cs (1)
872Task<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")); 1294_bucket = new ItemBucket(FrozenSet<string>.Empty, new Dictionary<string, string>(), new Lookup(itemsByName, new PropertyDictionary<ProjectPropertyInstance>()), 0);
BackEnd\TaskHost_Tests.cs (1)
1414public Task<BuildResult[]> BuildProjects(string[] projectFiles, PropertyDictionary<ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets)
BackEnd\TaskRegistry_Tests.cs (24)
45private static Expander<ProjectPropertyInstance, ProjectItemInstance> s_registryExpander; 1756ProjectPropertyInstance.Create("bp1", "v1"), 1757ProjectPropertyInstance.Create("bp2", "v2") 1762ProjectPropertyInstance.Create("ep1", "v1"), 1763ProjectPropertyInstance.Create("ep2", "v2") 1768ProjectPropertyInstance.Create("gp1", "v1"), 1769ProjectPropertyInstance.Create("gp2", "v2") 1774ProjectPropertyInstance.Create("sp1", "v1"), 1775ProjectPropertyInstance.Create("sp2", "v2") 1781new PropertyDictionary<ProjectPropertyInstance>(toolsetBuildProperties), 1782new PropertyDictionary<ProjectPropertyInstance>(toolsetEnvironmentProperties), 1783new PropertyDictionary<ProjectPropertyInstance>(toolsetGlobalProperties), 1786{"1.0", new SubToolset("1.0", new PropertyDictionary<ProjectPropertyInstance>(subToolsetProperties)) }, 1787{"2.0", new SubToolset("2.0", new PropertyDictionary<ProjectPropertyInstance>(subToolsetProperties)) } 2031internal static Expander<ProjectPropertyInstance, ProjectItemInstance> RegistryExpander => s_registryExpander ?? (s_registryExpander = GetExpander()); 2065internal static Expander<ProjectPropertyInstance, ProjectItemInstance> GetExpander() 2068PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2071pg.Set(ProjectPropertyInstance.Create("Property" + i, "Value" + i)); 2074pg.Set(ProjectPropertyInstance.Create("TrueString", "True")); 2075pg.Set(ProjectPropertyInstance.Create("FalseString", "False")); 2076pg.Set(ProjectPropertyInstance.Create("ItaskItem", "Microsoft.Build.Framework.ItaskItem[]")); 2116Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(
BuildEventArgsDataEnumeration.cs (1)
32ProjectPropertyInstance.Create("prop", "val"),
Collections\MSBuildNameIgnoreCaseComparer_Tests.cs (5)
44PropertyDictionary<ProjectPropertyInstance> dictionary = new PropertyDictionary<ProjectPropertyInstance>(comparer); 46ProjectPropertyInstance p = ProjectPropertyInstance.Create("foo", "bar"); 51ProjectPropertyInstance value = dictionary.GetProperty(s, 2, 4);
Collections\OMcollections_tests.cs (30)
33PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 35ProjectPropertyInstance p1 = GetPropertyInstance("p1", "v1"); 36ProjectPropertyInstance p2 = GetPropertyInstance("p2", "v2"); 37ProjectPropertyInstance p3 = GetPropertyInstance("p1", "v1"); 38ProjectPropertyInstance p4 = GetPropertyInstance("p2", "v3"); 66PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 68ProjectPropertyInstance p1 = GetPropertyInstance("p1", "v1"); 69ProjectPropertyInstance p2 = GetPropertyInstance("p2", "v2"); 70ProjectPropertyInstance p3 = GetPropertyInstance("p1", "v1"); 71ProjectPropertyInstance p4 = GetPropertyInstance("p2", "v3"); 79TranslationHelpers.GetWriteTranslator().TranslateDictionary<PropertyDictionary<ProjectPropertyInstance>, ProjectPropertyInstance>(ref properties, ProjectPropertyInstance.FactoryForDeserialization); 80PropertyDictionary<ProjectPropertyInstance> deserializedProperties = null; 81TranslationHelpers.GetReadTranslator().TranslateDictionary<PropertyDictionary<ProjectPropertyInstance>, ProjectPropertyInstance>(ref deserializedProperties, ProjectPropertyInstance.FactoryForDeserialization); 92PropertyDictionary<ProjectPropertyInstance> properties = new PropertyDictionary<ProjectPropertyInstance>(); 94TranslationHelpers.GetWriteTranslator().TranslateDictionary<PropertyDictionary<ProjectPropertyInstance>, ProjectPropertyInstance>(ref properties, ProjectPropertyInstance.FactoryForDeserialization); 95PropertyDictionary<ProjectPropertyInstance> deserializedProperties = null; 96TranslationHelpers.GetReadTranslator().TranslateDictionary<PropertyDictionary<ProjectPropertyInstance>, ProjectPropertyInstance>(ref deserializedProperties, ProjectPropertyInstance.FactoryForDeserialization); 308private static ProjectPropertyInstance GetPropertyInstance(string name, string value) 312ProjectPropertyInstance property = projectInstance.SetProperty(name, value);
Definition\Toolset_Tests.cs (28)
91PropertyDictionary<ProjectPropertyInstance> buildProperties = new PropertyDictionary<ProjectPropertyInstance>(); 92buildProperties.Set(ProjectPropertyInstance.Create("a", "a1")); 94PropertyDictionary<ProjectPropertyInstance> environmentProperties = new PropertyDictionary<ProjectPropertyInstance>(); 95environmentProperties.Set(ProjectPropertyInstance.Create("b", "b1")); 97PropertyDictionary<ProjectPropertyInstance> globalProperties = new PropertyDictionary<ProjectPropertyInstance>(); 98globalProperties.Set(ProjectPropertyInstance.Create("c", "c1")); 100PropertyDictionary<ProjectPropertyInstance> subToolsetProperties = new PropertyDictionary<ProjectPropertyInstance>(); 101subToolsetProperties.Set(ProjectPropertyInstance.Create("d", "d1")); 498PropertyDictionary<ProjectPropertyInstance> subToolset12Properties = new PropertyDictionary<ProjectPropertyInstance>(); 499subToolset12Properties.Set(ProjectPropertyInstance.Create("d", "d4")); 500subToolset12Properties.Set(ProjectPropertyInstance.Create("e", "e5")); 503PropertyDictionary<ProjectPropertyInstance> subToolset11Properties = new PropertyDictionary<ProjectPropertyInstance>(); 504subToolset11Properties.Set(ProjectPropertyInstance.Create("b", "b2")); 505subToolset11Properties.Set(ProjectPropertyInstance.Create("c", "c2")); 508PropertyDictionary<ProjectPropertyInstance> fakeSubToolsetProperties = new PropertyDictionary<ProjectPropertyInstance>(); 509fakeSubToolsetProperties.Set(ProjectPropertyInstance.Create("a", "a3")); 510fakeSubToolsetProperties.Set(ProjectPropertyInstance.Create("c", "c3")); 513PropertyDictionary<ProjectPropertyInstance> subToolset13Properties = new PropertyDictionary<ProjectPropertyInstance>(); 514subToolset13Properties.Set(ProjectPropertyInstance.Create("f", "f6")); 515subToolset13Properties.Set(ProjectPropertyInstance.Create("g", "g7"));
Definition\ToolsetConfigurationReader_Tests.cs (3)
561reader.ReadToolsets(toolsets, new PropertyDictionary<ProjectPropertyInstance>(), 562new PropertyDictionary<ProjectPropertyInstance>(), true, 665return new ToolsetConfigurationReader(collection.EnvironmentProperties, new PropertyDictionary<ProjectPropertyInstance>(), ToolsetConfigurationReaderTestHelper.ReadApplicationConfigurationTest);
Definition\ToolsetReader_Tests.cs (96)
115string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 159string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 198PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 199pg.Set(ProjectPropertyInstance.Create("DotDotSlash", @".." + Path.DirectorySeparatorChar)); 202reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), pg, true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 242reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 265reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 294reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 307ToolsetReader reader = new ToolsetConfigurationReader(new ProjectCollection().EnvironmentProperties, new PropertyDictionary<ProjectPropertyInstance>(), ToolsetConfigurationReaderTestHelper.ReadApplicationConfigurationTest); 313reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 334reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 355reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 384string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 419reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 441string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 466string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 494reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 526string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 563reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 593reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 624reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 652new PropertyDictionary<ProjectPropertyInstance>(), 671PropertyDictionary<ProjectPropertyInstance> globalProperties = new PropertyDictionary<ProjectPropertyInstance>(); 672globalProperties.Set(ProjectPropertyInstance.Create("VisualStudioVersion", "11.0")); 717reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 742new PropertyDictionary<ProjectPropertyInstance>(), 770new PropertyDictionary<ProjectPropertyInstance>(), 809reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 836new PropertyDictionary<ProjectPropertyInstance>(), 864new PropertyDictionary<ProjectPropertyInstance>(), 894reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 924reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 957string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), true, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 1018new PropertyDictionary<ProjectPropertyInstance>(), 1070new PropertyDictionary<ProjectPropertyInstance>(), 1126new PropertyDictionary<ProjectPropertyInstance>(), 1157new PropertyDictionary<ProjectPropertyInstance>(), 1182new PropertyDictionary<ProjectPropertyInstance>(), 1213new PropertyDictionary<ProjectPropertyInstance>(), 1245new PropertyDictionary<ProjectPropertyInstance>(), 1292new PropertyDictionary<ProjectPropertyInstance>(), 1344new PropertyDictionary<ProjectPropertyInstance>(), 1375new PropertyDictionary<ProjectPropertyInstance>(), 1408new PropertyDictionary<ProjectPropertyInstance>(), 1440new PropertyDictionary<ProjectPropertyInstance>(), 1479new PropertyDictionary<ProjectPropertyInstance>(), 1517new PropertyDictionary<ProjectPropertyInstance>(), 1547new PropertyDictionary<ProjectPropertyInstance>(), 1572new PropertyDictionary<ProjectPropertyInstance>(), 1597new PropertyDictionary<ProjectPropertyInstance>(), 1639new PropertyDictionary<ProjectPropertyInstance>(), 1801new PropertyDictionary<ProjectPropertyInstance>(), 1861new PropertyDictionary<ProjectPropertyInstance>(), 1904new PropertyDictionary<ProjectPropertyInstance>(), 1949new PropertyDictionary<ProjectPropertyInstance>(), 1998new PropertyDictionary<ProjectPropertyInstance>(), 2082new PropertyDictionary<ProjectPropertyInstance>(), 2113new PropertyDictionary<ProjectPropertyInstance>(), 2137new PropertyDictionary<ProjectPropertyInstance>(), 2178new PropertyDictionary<ProjectPropertyInstance>(), 2211new ToolsetRegistryReader(new ProjectCollection().EnvironmentProperties, new PropertyDictionary<ProjectPropertyInstance>(), mockRegistryKey), 2216new PropertyDictionary<ProjectPropertyInstance>(), 2266new PropertyDictionary<ProjectPropertyInstance>(), 2310new PropertyDictionary<ProjectPropertyInstance>(), 2359new PropertyDictionary<ProjectPropertyInstance>(), 2407new PropertyDictionary<ProjectPropertyInstance>(), 2446new PropertyDictionary<ProjectPropertyInstance>(), 2487new PropertyDictionary<ProjectPropertyInstance>(), 2528new PropertyDictionary<ProjectPropertyInstance>(), 2569new PropertyDictionary<ProjectPropertyInstance>(), 2730return new ToolsetRegistryReader(collection.EnvironmentProperties, new PropertyDictionary<ProjectPropertyInstance>(), registryKey); 2737return new ToolsetConfigurationReader(collection.EnvironmentProperties, new PropertyDictionary<ProjectPropertyInstance>(), ToolsetConfigurationReaderTestHelper.ReadApplicationConfigurationTest);
Definition\ToolsetRegistryReader_Tests.cs (47)
90reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 105ToolsetReader reader = new ToolsetRegistryReader(collection.EnvironmentProperties, new PropertyDictionary<ProjectPropertyInstance>()); // we don't use the test registry key because we want to verify the install 110string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 126ToolsetReader reader = new ToolsetRegistryReader(collection.EnvironmentProperties, new PropertyDictionary<ProjectPropertyInstance>(), registry); 134string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 149string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 169string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 190string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 217reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 248reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 286reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 334reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 368reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 408reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 431string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 446string defaultToolsVersion = reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 466reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 475return new ToolsetRegistryReader(collection.EnvironmentProperties, new PropertyDictionary<ProjectPropertyInstance>(), registry); 495reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 510reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 529reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 544reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 559reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 578reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion); 599reader.ReadToolsets(values, new PropertyDictionary<ProjectPropertyInstance>(), new PropertyDictionary<ProjectPropertyInstance>(), false, out msbuildOverrideTasksPath, out defaultOverrideToolsVersion);
Definition\ToolsVersion_Tests.cs (9)
37Toolset t = new Toolset("toolsversionname", dir, new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), overrideDir, new DirectoryExists(this.directoryExists)); 80Toolset t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), "msbuildoverridetasks", new DirectoryExists(this.directoryExists)); 100Toolset 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)); 119Toolset t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), tooLong, new DirectoryExists(this.directoryExists)); 139Toolset 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)); 161new PropertyDictionary<ProjectPropertyInstance>(), 197Toolset 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)); 220Toolset t = new Toolset("toolsversionname", "invalid||path", new PropertyDictionary<ProjectPropertyInstance>(), p, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), null, new DirectoryExists(this.directoryExists)); 928new PropertyDictionary<ProjectPropertyInstance>(),
Evaluation\Evaluator_Tests.cs (14)
4484PropertyDictionary<ProjectPropertyInstance> propertyBag = new PropertyDictionary<ProjectPropertyInstance>(); 4485Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, FileSystems.Default); 4489propertyBag.Set(ProjectPropertyInstance.Create("TargetOSFamily", "*")); 4509propertyBag.Set(ProjectPropertyInstance.Create("TargetOSFamily", "3")); 5158PropertyDictionary<ProjectPropertyInstance> subToolset11Properties = new PropertyDictionary<ProjectPropertyInstance>(); 5159subToolset11Properties.Set(ProjectPropertyInstance.Create("b", "b2")); 5160subToolset11Properties.Set(ProjectPropertyInstance.Create("c", "c2")); 5163PropertyDictionary<ProjectPropertyInstance> fakeSubToolsetProperties = new PropertyDictionary<ProjectPropertyInstance>(); 5164fakeSubToolsetProperties.Set(ProjectPropertyInstance.Create("a", "a3")); 5165fakeSubToolsetProperties.Set(ProjectPropertyInstance.Create("c", "c3"));
Evaluation\Expander_Tests.cs (574)
53PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 54Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 64PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 65Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 75PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 76Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 90PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 103Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>( 123PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 124pg.Set(ProjectPropertyInstance.Create("a", "aaa")); 125pg.Set(ProjectPropertyInstance.Create("b", "bbb")); 126pg.Set(ProjectPropertyInstance.Create("c", "cc;dd")); 128Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 147PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 148pg.Set(ProjectPropertyInstance.Create("a", "aaa")); 149pg.Set(ProjectPropertyInstance.Create("b", "bbb")); 150pg.Set(ProjectPropertyInstance.Create("c", "cc;dd")); 152Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 167PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 169Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 243Expander<ProjectPropertyInstance, ProjectItemInstance> expander = CreateItemFunctionExpander(); 790private Expander<ProjectPropertyInstance, ProjectItemInstance> CreateItemFunctionExpander() 793PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 794pg.Set(ProjectPropertyInstance.Create("p", "v0")); 795pg.Set(ProjectPropertyInstance.Create("p", "v1")); 796pg.Set(ProjectPropertyInstance.Create("Val", "2")); 797pg.Set(ProjectPropertyInstance.Create("a", "filename")); 830Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, ig, itemMetadata, FileSystems.Default); 839private Expander<ProjectPropertyInstance, ProjectItemInstance> CreateExpander() 842PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 843pg.Set(ProjectPropertyInstance.Create("p", "v0")); 844pg.Set(ProjectPropertyInstance.Create("p", "v1")); 852Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>( 1408PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 1409pg.Set(ProjectPropertyInstance.Create("Gee_Aych_Ayee", "ghi")); 1410pg.Set(ProjectPropertyInstance.Create("OutputPath", @"\jk ; l\mno%253bpqr\stu")); 1411pg.Set(ProjectPropertyInstance.Create("TargetPath", "@(IntermediateAssembly->'%(RelativeDir)')")); 1465Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1497Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1550Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1576Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1598Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1617var pg = new PropertyDictionary<ProjectPropertyInstance>(); 1618pg.Set(ProjectPropertyInstance.Create("ManySpacesProperty", manySpaces)); 1647Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1679Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1710Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1731Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1771PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 1773Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1787PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 1789Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1805PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 1807Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1822PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 1824Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1836PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 1838Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1858PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 1860Expander<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); 1906PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 1908Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1928PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 1930Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1950PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 1952Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2045PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2047Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2060PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2062Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2079PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2080pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2082Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2095PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2096pg.Set(ProjectPropertyInstance.Create("FileName", " foo.ext ")); 2098Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2111PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2112pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2114Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2127PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2128pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2130Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2143PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2144pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2146Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2159PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2160pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2162Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2175PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2176pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2178Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2191PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2192pg.Set(ProjectPropertyInstance.Create("RootPath", Path.Combine(s_rootPathPrefix, "this", "is", "the", "root"))); 2193pg.Set(ProjectPropertyInstance.Create("MyPath", Path.Combine(s_rootPathPrefix, "this", "is", "the", "root", "my", "project", "is", "here.proj"))); 2195Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2208PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2209pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2210pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2212Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2225PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2226pg.Set(ProjectPropertyInstance.Create("PathRoot", Path.Combine(s_rootPathPrefix, "goo"))); 2227pg.Set(ProjectPropertyInstance.Create("PathRoot2", Path.Combine(s_rootPathPrefix, "goop") + Path.DirectorySeparatorChar)); 2229Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2243PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2244pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2245pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2247Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2261PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2262pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2263pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2265Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2277PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2278pg.Set(ProjectPropertyInstance.Create("Value", "12345")); 2279pg.Set(ProjectPropertyInstance.Create("SomeStuff", "1234567890")); 2281Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2294PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2296Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2309PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2310pg.Set(ProjectPropertyInstance.Create("List", "A-B-C-D")); 2312Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2327PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2329Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2343PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2344pg.Set(ProjectPropertyInstance.Create("List", "A-B-C-D")); 2345pg.Set(ProjectPropertyInstance.Create("Splitter", "-")); 2347Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2360PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2361pg.Set(ProjectPropertyInstance.Create("PathRoot", Path.Combine(s_rootPathPrefix, "goo"))); 2362pg.Set(ProjectPropertyInstance.Create("PathRoot2", Path.Combine(s_rootPathPrefix, "goop") + Path.DirectorySeparatorChar)); 2364Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2396PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2397pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2398pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2400Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2414PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2415pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2416pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2418Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2431PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2432pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2433pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2435Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2448PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2449pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2450pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2452Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2466PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2467pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2469Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2482PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2483pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2485Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2498PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2499pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2501Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2514PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2516Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2527PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2529Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2542PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2543pg.Set(ProjectPropertyInstance.Create("System", "The System Namespace")); 2545Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2560PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2561pg.Set(ProjectPropertyInstance.Create("ParentPath", Path.Combine(s_rootPathPrefix, "abc", "def"))); 2562pg.Set(ProjectPropertyInstance.Create("FilePath", Path.Combine(s_rootPathPrefix, "abc", "def", "foo.cpp"))); 2564Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2577PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2578pg.Set(ProjectPropertyInstance.Create("Drive", s_rootPathPrefix)); 2579pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo", "file.txt"))); 2581Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2594PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2595pg.Set(ProjectPropertyInstance.Create("ver1", @"1.2.3.4")); 2597Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2617PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2618pg.Set(ProjectPropertyInstance.Create("ver1", @"1.2.3.4")); 2619pg.Set(ProjectPropertyInstance.Create("ver2", @"2.2.3.4")); 2621Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2638PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2640Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2661PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2663Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2690PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2692Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2723PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2724pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo", "file.txt"))); 2726Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2739PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2740pg.Set(ProjectPropertyInstance.Create("File", "foo goo" + Path.DirectorySeparatorChar + "file.txt")); 2742Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2757PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2758pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo bar", "baz.txt"))); 2760Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2775PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2776pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo bar", "baz.txt"))); 2778Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2792PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2794Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2808PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2810Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2823PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2825Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2838PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2839pg.Set(ProjectPropertyInstance.Create("File", "foo" + Path.DirectorySeparatorChar + "file.txt")); 2841Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2856PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2857pg.Set(ProjectPropertyInstance.Create("File", "foo" + Path.DirectorySeparatorChar + "file.txt")); 2859Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2882PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2884Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2897PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 2899Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2928var pg = new PropertyDictionary<ProjectPropertyInstance>(); 2929var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2958var pg = new PropertyDictionary<ProjectPropertyInstance>(); 2959var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2980var pg = new PropertyDictionary<ProjectPropertyInstance>(); 2981var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2996var pg = new PropertyDictionary<ProjectPropertyInstance>(); 2997var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3012var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3013var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3030var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3031var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3046var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3047var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3065var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3066var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3081var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3082var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3100var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3101var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3240var pg = new PropertyDictionary<ProjectPropertyInstance> 3241{ [propertyName] = ProjectPropertyInstance.Create(propertyName, properyValue) }; 3243var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3260var pg = new PropertyDictionary<ProjectPropertyInstance> 3261{ [propertyName] = ProjectPropertyInstance.Create(propertyName, propertyValue) }; 3263var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3271var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3272var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3287var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3288var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3320var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3321var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3339var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3340var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3353var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3354var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3366var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3367var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3380var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3381var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3402var pg = new PropertyDictionary<ProjectPropertyInstance>(); 3403var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3408private void AssertThrows(Expander<ProjectPropertyInstance, ProjectItemInstance> expander, string expression, string expectedMessage) 3419private void AssertSuccess(Expander<ProjectPropertyInstance, ProjectItemInstance> expander, object expected, string expression) 3435PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3437Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3456PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3457pg.Set(ProjectPropertyInstance.Create("StartingDirectory", directoryStart)); 3458pg.Set(ProjectPropertyInstance.Create("FileToFind", tempFile)); 3460Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3491PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3492pg.Set(ProjectPropertyInstance.Create("FileToFind", Path.GetFileName(fileToFind))); 3494Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3534PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3535pg.Set(ProjectPropertyInstance.Create("FileWithPath", fileWithPath)); 3537Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3551PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3553Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3570PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3572Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3585PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3587Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3600PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3602Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3619PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3621pg["DifferentTargetsPath"] = ProjectPropertyInstance.Create("DifferentTargetsPath", "Different"); 3623Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3629pg["DifferentTargetsPath"] = ProjectPropertyInstance.Create("DifferentTargetsPath", String.Empty); 3643PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3645Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3659PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3661Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3673Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(new[] 3675ProjectPropertyInstance.Create("MyPath", "one"), 3676ProjectPropertyInstance.Create("MySecondPath", "two"), 3696PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3698Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3714PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3716pg["Runtime"] = ProjectPropertyInstance.Create("Runtime", "CurrentRuntime"); 3717pg["Architecture"] = ProjectPropertyInstance.Create("Architecture", "CurrentArchitecture"); 3719Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3741PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3743Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3766PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3768Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3793PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3795Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3844PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3846Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3863PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3864pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 3866Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3880PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3881pg.Set(ProjectPropertyInstance.Create("SomeProperty", "Value")); 3883Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3904PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3905pg.Set(ProjectPropertyInstance.Create("SomeProperty", "Value")); 3907Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3928PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3929pg.Set(ProjectPropertyInstance.Create("SomeProperty", "Value")); 3931Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3952PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3953pg.Set(ProjectPropertyInstance.Create("SomeProperty", "Value")); 3955Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3976PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 3982pg.Set(ProjectPropertyInstance.Create("SomePath", Path.Combine(s_rootPathPrefix, "some", "path"))); 3988Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, itemsByType, itemMetadata, FileSystems.Default); 4024PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 4025Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 4061PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 4062Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 4090PropertyDictionary<ProjectPropertyInstance> pg = new(); 4091Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new(pg, FileSystems.Default); 4104PropertyDictionary<ProjectPropertyInstance> pg = new(); 4105Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new(pg, FileSystems.Default); 4116PropertyDictionary<ProjectPropertyInstance> pg = new(); 4117Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new(pg, FileSystems.Default); 4131PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 4132pg.Set(ProjectPropertyInstance.Create("File", @"foo\file.txt")); 4134pg.Set(ProjectPropertyInstance.Create("a", "no")); 4135pg.Set(ProjectPropertyInstance.Create("b", "true")); 4136pg.Set(ProjectPropertyInstance.Create("c", "1")); 4137pg.Set(ProjectPropertyInstance.Create("position", "4")); 4138pg.Set(ProjectPropertyInstance.Create("d", "xxx")); 4139pg.Set(ProjectPropertyInstance.Create("e", "xxx")); 4140pg.Set(ProjectPropertyInstance.Create("and", "and")); 4141pg.Set(ProjectPropertyInstance.Create("a_semi_b", "a;b")); 4142pg.Set(ProjectPropertyInstance.Create("a_apos_b", "a'b")); 4143pg.Set(ProjectPropertyInstance.Create("foo_apos_foo", "foo'foo")); 4144pg.Set(ProjectPropertyInstance.Create("a_escapedsemi_b", "a%3bb")); 4145pg.Set(ProjectPropertyInstance.Create("a_escapedapos_b", "a%27b")); 4146pg.Set(ProjectPropertyInstance.Create("has_trailing_slash", @"foo\")); 4147pg.Set(ProjectPropertyInstance.Create("emptystring", @"")); 4148pg.Set(ProjectPropertyInstance.Create("space", @" ")); 4149pg.Set(ProjectPropertyInstance.Create("listofthings", @"a;b;c;d;e;f;g;h;i;j;k;l")); 4150pg.Set(ProjectPropertyInstance.Create("input", @"EXPORT a")); 4151pg.Set(ProjectPropertyInstance.Create("propertycontainingnullasastring", @"null")); 4153Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 4412PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 4414pg.Set(ProjectPropertyInstance.Create("SomeProperty", path)); 4416Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 4438PropertyDictionary<ProjectPropertyInstance> pg = new PropertyDictionary<ProjectPropertyInstance>(); 4440pg.Set(ProjectPropertyInstance.Create("SomeProperty", "6C8546D5297C424F962201B0E0E9F142")); 4442Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 4488var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 4500var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 4512var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 4857var properties = new PropertyDictionary<ProjectPropertyInstance>(); 4858properties.Set(ProjectPropertyInstance.Create(propertyName, propertyValue)); 4859var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(properties, FileSystems.Default); 5251_ = new Expander<ProjectPropertyInstance, ProjectItemInstance>( 5252new PropertyDictionary<ProjectPropertyInstance>(), 5289var result = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default, loggingContext) 5361var pg = new PropertyDictionary<ProjectPropertyInstance>(); 5362var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default);
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>(),
ExpressionTree_Tests.cs (98)
29Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 45Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 70Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 89Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 101Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), new ItemDictionary<ProjectItemInstance>(), FileSystems.Default, null); 111new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>( 138var propertyBag = new PropertyDictionary<ProjectPropertyInstance>(); 139propertyBag.Set(ProjectPropertyInstance.Create("foo", "true")); 140propertyBag.Set(ProjectPropertyInstance.Create("bar", "yes")); 141propertyBag.Set(ProjectPropertyInstance.Create("one", "1")); 142propertyBag.Set(ProjectPropertyInstance.Create("onepointzero", "1.0")); 143propertyBag.Set(ProjectPropertyInstance.Create("two", "2")); 144propertyBag.Set(ProjectPropertyInstance.Create("simple", "simplestring")); 145propertyBag.Set(ProjectPropertyInstance.Create("complex", "This is a complex string")); 146propertyBag.Set(ProjectPropertyInstance.Create("c1", "Another (complex) one.")); 147propertyBag.Set(ProjectPropertyInstance.Create("c2", "Another (complex) one.")); 148propertyBag.Set(ProjectPropertyInstance.Create("x86", "x86")); 149propertyBag.Set(ProjectPropertyInstance.Create("no", "no")); 151Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, new ItemDictionary<ProjectItemInstance>(), FileSystems.Default, null); 189Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), itemBag, FileSystems.Default, null); 218PropertyDictionary<ProjectPropertyInstance> propertyBag = new PropertyDictionary<ProjectPropertyInstance>(); 219propertyBag.Set(ProjectPropertyInstance.Create("foo", "true")); 220propertyBag.Set(ProjectPropertyInstance.Create("bar", "yes")); 221propertyBag.Set(ProjectPropertyInstance.Create("one", "1")); 222propertyBag.Set(ProjectPropertyInstance.Create("onepointzero", "1.0")); 223propertyBag.Set(ProjectPropertyInstance.Create("two", "2")); 224propertyBag.Set(ProjectPropertyInstance.Create("simple", "simplestring")); 225propertyBag.Set(ProjectPropertyInstance.Create("complex", "This is a complex string")); 226propertyBag.Set(ProjectPropertyInstance.Create("c1", "Another (complex) one.")); 227propertyBag.Set(ProjectPropertyInstance.Create("c2", "Another (complex) one.")); 228propertyBag.Set(ProjectPropertyInstance.Create("TestQuote", "Contains'Quote'")); 229propertyBag.Set(ProjectPropertyInstance.Create("AnotherTestQuote", "Here's Johnny!")); 230propertyBag.Set(ProjectPropertyInstance.Create("Atsign", "Test the @ replacement")); 232Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, itemBag, FileSystems.Default, null); 253PropertyDictionary<ProjectPropertyInstance> propertyBag = new PropertyDictionary<ProjectPropertyInstance>(); 254propertyBag.Set(ProjectPropertyInstance.Create("foo", "true")); 255propertyBag.Set(ProjectPropertyInstance.Create("bar", "yes")); 256propertyBag.Set(ProjectPropertyInstance.Create("one", "1")); 257propertyBag.Set(ProjectPropertyInstance.Create("onepointzero", "1.0")); 258propertyBag.Set(ProjectPropertyInstance.Create("two", "2")); 259propertyBag.Set(ProjectPropertyInstance.Create("simple", "simplestring")); 260propertyBag.Set(ProjectPropertyInstance.Create("complex", "This is a complex string")); 261propertyBag.Set(ProjectPropertyInstance.Create("c1", "Another (complex) one.")); 262propertyBag.Set(ProjectPropertyInstance.Create("c2", "Another (complex) one.")); 264Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, itemBag, FileSystems.Default, null); 283PropertyDictionary<ProjectPropertyInstance> propertyBag = new PropertyDictionary<ProjectPropertyInstance>(); 285Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, itemBag, FileSystems.Default, null); 302PropertyDictionary<ProjectPropertyInstance> propertyBag = new PropertyDictionary<ProjectPropertyInstance>(); 304propertyBag.Set(ProjectPropertyInstance.Create("foo", "true")); 305propertyBag.Set(ProjectPropertyInstance.Create("bar", "yes")); 306propertyBag.Set(ProjectPropertyInstance.Create("one", "1")); 307propertyBag.Set(ProjectPropertyInstance.Create("onepointzero", "1.0")); 308propertyBag.Set(ProjectPropertyInstance.Create("two", "2")); 309propertyBag.Set(ProjectPropertyInstance.Create("simple", "simplestring")); 310propertyBag.Set(ProjectPropertyInstance.Create("complex", "This is a complex string")); 311propertyBag.Set(ProjectPropertyInstance.Create("c1", "Another (complex) one.")); 312propertyBag.Set(ProjectPropertyInstance.Create("c2", "Another (complex) one.")); 314Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, itemBag, FileSystems.Default, null); 331Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), itemBag, FileSystems.Default, null); 334new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>( 414PropertyDictionary<ProjectPropertyInstance> propertyBag = new PropertyDictionary<ProjectPropertyInstance>(); 415propertyBag.Set(ProjectPropertyInstance.Create("foo", "4")); 416propertyBag.Set(ProjectPropertyInstance.Create("bar", "32")); 418Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, new ItemDictionary<ProjectItemInstance>(), FileSystems.Default, null); 426private void AssertParseEvaluate(Parser p, string expression, Expander<ProjectPropertyInstance, ProjectItemInstance> expander, bool expected) 431private void AssertParseEvaluate(Parser p, string expression, Expander<ProjectPropertyInstance, ProjectItemInstance> expander, bool expected, ConditionEvaluator.IConditionEvaluationState state) 443new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>( 458private void AssertParseEvaluateThrow(Parser p, string expression, Expander<ProjectPropertyInstance, ProjectItemInstance> expander) 463private void AssertParseEvaluateThrow(Parser p, string expression, Expander<ProjectPropertyInstance, ProjectItemInstance> expander, ConditionEvaluator.IConditionEvaluationState state) 479new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>( 505Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default);
ExpressionTreeExpression_Tests.cs (20)
27private readonly Expander<ProjectPropertyInstance, ProjectItemInstance> _expander; 383PropertyDictionary<ProjectPropertyInstance> propertyBag = new PropertyDictionary<ProjectPropertyInstance>(); 385propertyBag.Set(ProjectPropertyInstance.Create("a", "no")); 386propertyBag.Set(ProjectPropertyInstance.Create("b", "true")); 387propertyBag.Set(ProjectPropertyInstance.Create("c", "1")); 388propertyBag.Set(ProjectPropertyInstance.Create("d", "xxx")); 389propertyBag.Set(ProjectPropertyInstance.Create("e", "xxx")); 390propertyBag.Set(ProjectPropertyInstance.Create("f", "1.9.5")); 391propertyBag.Set(ProjectPropertyInstance.Create("and", "and")); 392propertyBag.Set(ProjectPropertyInstance.Create("a_semi_c", "a;c")); 393propertyBag.Set(ProjectPropertyInstance.Create("a_apos_b", "a'b")); 394propertyBag.Set(ProjectPropertyInstance.Create("foo_apos_foo", "foo'foo")); 395propertyBag.Set(ProjectPropertyInstance.Create("a_escapedsemi_b", "a%3bb")); 396propertyBag.Set(ProjectPropertyInstance.Create("a_escapedapos_b", "a%27b")); 397propertyBag.Set(ProjectPropertyInstance.Create("has_trailing_slash", @"foo\")); 403_expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, itemBag, itemMetadata, FileSystems.Default); 437new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>( 461new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>( 493new 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)
710var toolsPath32 = ProjectCollection.GlobalProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion).Properties["MSBuildToolsPath32"];
MSBuild.Benchmarks (3)
LookupGetItemsBenchmark.cs (3)
102var lookup = new Lookup(_baseItems, new PropertyDictionary<ProjectPropertyInstance>()); 125var lookup = new Lookup(_baseItems, new PropertyDictionary<ProjectPropertyInstance>()); 151var lookup = new Lookup(_baseItems, new PropertyDictionary<ProjectPropertyInstance>());