32 references to AppendSwitchUnquotedIfNotNull
Microsoft.Build.Tasks.CodeAnalysis (5)
src\Compilers\Core\MSBuildTask\CommandLineBuilderExtension.cs (3)
64AppendSwitchUnquotedIfNotNull(switchName, (value ? "+" : "-")); 85AppendSwitchUnquotedIfNotNull(switchName, (value ? choice1 : choice2)); 114AppendSwitchUnquotedIfNotNull(switchName, alias + "=");
src\Compilers\Core\MSBuildTask\Csc.cs (1)
222commandLine.AppendSwitchUnquotedIfNotNull("/define:", GetDefineConstantsSwitch(DefineConstants, Log));
src\Compilers\Core\MSBuildTask\Vbc.cs (1)
500commandLine.AppendSwitchUnquotedIfNotNull("/define:", Vbc.GetDefineConstantsSwitch(this.DefineConstants));
Microsoft.Build.Tasks.CodeAnalysis.Sdk (5)
src\Compilers\Core\MSBuildTask\CommandLineBuilderExtension.cs (3)
64AppendSwitchUnquotedIfNotNull(switchName, (value ? "+" : "-")); 85AppendSwitchUnquotedIfNotNull(switchName, (value ? choice1 : choice2)); 114AppendSwitchUnquotedIfNotNull(switchName, alias + "=");
src\Compilers\Core\MSBuildTask\Csc.cs (1)
222commandLine.AppendSwitchUnquotedIfNotNull("/define:", GetDefineConstantsSwitch(DefineConstants, Log));
src\Compilers\Core\MSBuildTask\Vbc.cs (1)
500commandLine.AppendSwitchUnquotedIfNotNull("/define:", Vbc.GetDefineConstantsSwitch(this.DefineConstants));
Microsoft.Build.Tasks.Core (4)
CommandLineBuilderExtension.cs (4)
71AppendSwitchUnquotedIfNotNull(switchName, value ? "+" : "-"); 84AppendSwitchUnquotedIfNotNull(switchName, value.Value ? "+" : "-"); 104AppendSwitchUnquotedIfNotNull(switchName, value ? choice1 : choice2); 131AppendSwitchUnquotedIfNotNull(switchName, alias + "=");
Microsoft.Build.Utilities.Core (1)
CommandLineBuilder.cs (1)
668AppendSwitchUnquotedIfNotNull(switchName, parameter.ItemSpec);
Microsoft.Build.Utilities.UnitTests (2)
CommandLineBuilder_Tests.cs (2)
97c.AppendSwitchUnquotedIfNotNull("/animal:", "dog and pony"); 355c.AppendSwitchUnquotedIfNotNull("/D", @"A"" \""B");
Microsoft.NET.Sdk.Publish.Tasks (15)
Tasks\MsDeploy\MSDeploy.cs (15)
603commandLineBuilder.AppendSwitchUnquotedIfNotNull("-replace:", arguments.Count == 0 ? null : string.Join(",", arguments.ToArray())); 618commandLineBuilder.AppendSwitchUnquotedIfNotNull("-skip:", arguments.Count == 0 ? null : string.Join(",", arguments.ToArray())); 683commandLineBuilder.AppendSwitchUnquotedIfNotNull("-declareParam:", arguments.Count == 0 ? null : string.Join(",", arguments.ToArray())); 738commandLineBuilder.AppendSwitchUnquotedIfNotNull("-setParam:", arguments.Count == 0 ? null : string.Join(",", arguments.ToArray())); 816commandLineBuilder.AppendSwitchUnquotedIfNotNull("-setParam:", arguments.Count == 0 ? null : string.Join(",", arguments.ToArray())); 904commandLineBuilder.AppendSwitchUnquotedIfNotNull(dest, arguments.Count == 0 ? null : string.Join(",", arguments.ToArray())); 922commandLine.AppendSwitchUnquotedIfNotNull(strSwitch, dl); 971commandLine.AppendSwitchUnquotedIfNotNull("-verb:", m_verb); 972commandLine.AppendSwitchUnquotedIfNotNull("-failureLevel:", m_failureLevel); 973commandLine.AppendSwitchUnquotedIfNotNull("-xpath:", m_xpath); 974commandLine.AppendSwitchUnquotedIfNotNull("-replace:", m_replace); 975commandLine.AppendSwitchUnquotedIfNotNull("-skip:", m_skip); 1001if (m_retryAttempts > 0) commandLine.AppendSwitchUnquotedIfNotNull("-retryAttempts=", m_retryAttempts.ToString(CultureInfo.InvariantCulture)); 1002if (m_retryInterval > 0) commandLine.AppendSwitchUnquotedIfNotNull("-retryInterval=", m_retryInterval.ToString(CultureInfo.InvariantCulture)); 1006commandLine.AppendSwitchUnquotedIfNotNull("-userAgent=", string.Concat("\"", UserAgent, "\""));