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