3 writes to Name
Microsoft.Build.Tasks.Core (3)
XamlTaskFactory\Property.cs (1)
218Name = Name,
XamlTaskFactory\TaskParser.cs (2)
313propertyToAdd.Name = "AlwaysAppend"; 442parameter.Name = baseProperty.Name;
40 references to Name
Microsoft.Build.Tasks.Core (29)
XamlTaskFactory\CommandLineGenerator.cs (2)
58if (parameterValues.TryGetValue(property.Name, out object value)) 169_activeCommandLineToolSwitches[property.Name] = switchToAdd;
XamlTaskFactory\Property.cs (1)
218Name = Name,
XamlTaskFactory\TaskGenerator.cs (20)
345if (String.Equals(property.Name, propertyToIgnore, StringComparison.OrdinalIgnoreCase)) 431new CodeSnippetExpression(SurroundWithQuotes(property.Name))), 437removeExisting.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(property.Name), new CodeSnippetExpression(property.DefaultValue))); 441removeExisting.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(property.Name), new CodeSnippetExpression(SurroundWithQuotes(property.DefaultValue)))); 482if (!String.Equals(property.Name, ImportType, StringComparison.OrdinalIgnoreCase)) 492Name = property.Name, 515_taskParser.FallbackSet.Add(property.Name, property.Fallback); 539LogError("ImproperType", property.Name, property.Type); 546if (!dependentProperty.Parents.Contains(property.Name)) 548dependentProperty.Parents.AddLast(property.Name); 619new CodeSnippetExpression(SurroundWithQuotes(property.Name))) 621isSet.TrueStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(new CodeArrayIndexerExpression(new CodeVariableReferenceExpression(DictionaryOfSwitches), new CodeVariableReferenceExpression(SurroundWithQuotes(property.Name))), valueName))); 703new CodeSnippetExpression(SurroundWithQuotes(property.Name))); 720string name = property.SwitchName != String.Empty ? property.Prefix + property.SwitchName : property.Name; 749new CodeSnippetExpression(SurroundWithQuotes(property.Name))); 769new CodeSnippetExpression(SurroundWithQuotes(property.Name))); 820new CodeSnippetExpression(SurroundWithQuotes(property.Name)), 870new CodeSnippetExpression(SurroundWithQuotes(property.Name))); 881new CodeSnippetExpression(SurroundWithQuotes(property.Name))); 1015new CodeSnippetExpression(SurroundWithQuotes(property.Name)));
XamlTaskFactory\TaskParser.cs (6)
311if (String.IsNullOrEmpty(propertyToAdd.Name)) 317if (!_switchOrderList.Contains(propertyToAdd.Name)) 319_switchOrderList.Add(propertyToAdd.Name); 323throw new XamlParseException(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("Xaml.DuplicatePropertyName", propertyToAdd.Name)); 404if (argumentDependencyLookup?.ContainsKey(propertyToAdd.Name) == false) 406argumentDependencyLookup.Add(propertyToAdd.Name, propertyToAdd);
Microsoft.Build.Tasks.UnitTests (11)
XamlTaskFactory_Tests.cs (11)
181Assert.Equal("GlobalOptimizations", properties.First.Value.Name); 189Assert.Equal("IntrinsicFunctions", properties.First.Value.Name); 232Assert.Equal("KeepComments", properties.First.Value.Name); 257Assert.Equal("SuppressStartupBanner", properties.First.Value.Name); 286Assert.Equal("GeneratePreprocessedFile", properties.First.Value.Name); 309Assert.Equal("CLBeforeTargets", properties.First.Value.Name); 330Assert.Equal("TargetAssembly", properties.First.Value.Name); 354Assert.Equal("TargetAssembly", properties.First.Value.Name); 383Assert.Equal("TargetAssembly", properties.First.Value.Name); 410Assert.Equal("TargetAssembly", properties.First.Value.Name); 437Assert.Equal("TargetAssembly", properties.First.Value.Name);