26 references to AppendSwitchUnquotedIfNotNull
Microsoft.Build.Tasks.CodeAnalysis (5)
src\roslyn\src\Compilers\Core\MSBuildTask\CommandLineBuilderExtension.cs (3)
64
AppendSwitchUnquotedIfNotNull
(switchName, (value ? "+" : "-"));
85
AppendSwitchUnquotedIfNotNull
(switchName, (value ? choice1 : choice2));
114
AppendSwitchUnquotedIfNotNull
(switchName, alias + "=");
src\roslyn\src\Compilers\Core\MSBuildTask\Csc.cs (1)
232
commandLine.
AppendSwitchUnquotedIfNotNull
("/define:", GetDefineConstantsSwitch(DefineConstants, Log));
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (1)
509
commandLine.
AppendSwitchUnquotedIfNotNull
("/define:", Vbc.GetDefineConstantsSwitch(this.DefineConstants));
Microsoft.Build.Tasks.Core (4)
CommandLineBuilderExtension.cs (4)
71
AppendSwitchUnquotedIfNotNull
(switchName, value ? "+" : "-");
84
AppendSwitchUnquotedIfNotNull
(switchName, value.Value ? "+" : "-");
104
AppendSwitchUnquotedIfNotNull
(switchName, value ? choice1 : choice2);
131
AppendSwitchUnquotedIfNotNull
(switchName, alias + "=");
Microsoft.Build.Utilities.Core (1)
CommandLineBuilder.cs (1)
668
AppendSwitchUnquotedIfNotNull
(switchName, parameter.ItemSpec);
Microsoft.NET.Sdk.Publish.Tasks (15)
Tasks\MsDeploy\MSDeploy.cs (15)
603
commandLineBuilder.
AppendSwitchUnquotedIfNotNull
("-replace:", arguments.Count == 0 ? null : string.Join(",", arguments.ToArray()));
618
commandLineBuilder.
AppendSwitchUnquotedIfNotNull
("-skip:", arguments.Count == 0 ? null : string.Join(",", arguments.ToArray()));
683
commandLineBuilder.
AppendSwitchUnquotedIfNotNull
("-declareParam:", arguments.Count == 0 ? null : string.Join(",", arguments.ToArray()));
738
commandLineBuilder.
AppendSwitchUnquotedIfNotNull
("-setParam:", arguments.Count == 0 ? null : string.Join(",", arguments.ToArray()));
816
commandLineBuilder.
AppendSwitchUnquotedIfNotNull
("-setParam:", arguments.Count == 0 ? null : string.Join(",", arguments.ToArray()));
904
commandLineBuilder.
AppendSwitchUnquotedIfNotNull
(dest, arguments.Count == 0 ? null : string.Join(",", arguments.ToArray()));
922
commandLine.
AppendSwitchUnquotedIfNotNull
(strSwitch, dl);
971
commandLine.
AppendSwitchUnquotedIfNotNull
("-verb:", m_verb);
972
commandLine.
AppendSwitchUnquotedIfNotNull
("-failureLevel:", m_failureLevel);
973
commandLine.
AppendSwitchUnquotedIfNotNull
("-xpath:", m_xpath);
974
commandLine.
AppendSwitchUnquotedIfNotNull
("-replace:", m_replace);
975
commandLine.
AppendSwitchUnquotedIfNotNull
("-skip:", m_skip);
1001
if (m_retryAttempts > 0) commandLine.
AppendSwitchUnquotedIfNotNull
("-retryAttempts=", m_retryAttempts.ToString(CultureInfo.InvariantCulture));
1002
if (m_retryInterval > 0) commandLine.
AppendSwitchUnquotedIfNotNull
("-retryInterval=", m_retryInterval.ToString(CultureInfo.InvariantCulture));
1006
commandLine.
AppendSwitchUnquotedIfNotNull
("-userAgent=", string.Concat("\"", UserAgent, "\""));
Microsoft.TestPlatform.Build (1)
Tasks\TestTaskUtils.cs (1)
125
builder.
AppendSwitchUnquotedIfNotNull
("--logger:", $"{loggerToUse};Verbosity={vsTestVerbosity}");