2 writes to SwitchName
Microsoft.Build.Tasks.Core (2)
XamlTaskFactory\Property.cs (1)
205SwitchName = SwitchName,
XamlTaskFactory\TaskParser.cs (1)
501parameter.SwitchName = baseProperty.Switch;
22 references to SwitchName
Microsoft.Build.Tasks.Core (13)
XamlTaskFactory\CommandLineGenerator.cs (2)
78if (!String.IsNullOrEmpty(property.SwitchName)) 80switchToAdd.SwitchValue = property.Prefix + property.SwitchName;
XamlTaskFactory\Property.cs (1)
205SwitchName = SwitchName,
XamlTaskFactory\TaskGenerator.cs (10)
706GenerateAssignToolSwitch(propertyName, SwitchValueProperty, property.Prefix, property.SwitchName); 720string name = property.SwitchName != String.Empty ? property.Prefix + property.SwitchName : property.Name; 752GenerateAssignToolSwitch(propertyName, SwitchValueProperty, property.Prefix, property.SwitchName); 763GenerateAssignToolSwitch(propertyName, SwitchValueProperty, property.Prefix, property.SwitchName); 885CodeAssignStatement setToolSwitchName = new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), SwitchValueProperty), property.SwitchName != String.Empty ? new CodeSnippetExpression(SurroundWithQuotes(property.Prefix + property.SwitchName)) : new CodeSnippetExpression(SurroundWithQuotes(""))); 914return ContainsCurrentPlatform(property.SwitchName); 962if (_relationsParser.SwitchRelationsList.TryGetValue(property.SwitchName, out SwitchRelations rel)) 1011GenerateAssignToolSwitch(propertyName, SwitchValueProperty, property.Prefix, property.SwitchName);
Microsoft.Build.Tasks.UnitTests (9)
XamlTaskFactory_Tests.cs (9)
182Assert.Equal("Og", properties.First.Value.SwitchName); 190Assert.Equal("Oi", properties.First.Value.SwitchName); 233Assert.Equal("C", properties.First.Value.SwitchName); 258Assert.Equal("nologo", properties.First.Value.SwitchName); 332Assert.Equal("/target:\"[value]\"", properties.First.Value.SwitchName); 356Assert.Equal("/target:\"[value]\"", properties.First.Value.SwitchName); 385Assert.Equal("/target:\"[value]\"", properties.First.Value.SwitchName); 412Assert.Equal("/target:\"[value]\"", properties.First.Value.SwitchName); 439Assert.Equal("/target:\"[value]\"", properties.First.Value.SwitchName);