95 references to AppendSwitchIfNotNull
Microsoft.Build.Tasks.CodeAnalysis (61)
src\roslyn\src\Compilers\Core\MSBuildTask\CommandLineBuilderExtension.cs (3)
104
AppendSwitchIfNotNull
(switchName, value.ToString(CultureInfo.InvariantCulture));
153
AppendSwitchIfNotNull
(outerSwitchName, innerSwitchName + quotedParameter);
248
AppendSwitchIfNotNull
(switchName, parameter.ItemSpec);
src\roslyn\src\Compilers\Core\MSBuildTask\Csc.cs (17)
207
commandLine.
AppendSwitchIfNotNull
("/sdkpath:", RuntimeEnvironment.GetRuntimeDirectory());
214
commandLine.
AppendSwitchIfNotNull
("@", rspFile);
224
commandLine.
AppendSwitchIfNotNull
("/moduleassemblyname:", ModuleAssemblyName);
225
commandLine.
AppendSwitchIfNotNull
("/pdb:", PdbFile);
227
commandLine.
AppendSwitchIfNotNull
("/platform:", PlatformWith32BitPreference);
228
commandLine.
AppendSwitchIfNotNull
("/errorreport:", ErrorReport);
230
commandLine.
AppendSwitchIfNotNull
("/doc:", DocumentationFile);
231
commandLine.
AppendSwitchIfNotNull
("/baseaddress:", BaseAddress);
233
commandLine.
AppendSwitchIfNotNull
("/win32res:", Win32Resource);
234
commandLine.
AppendSwitchIfNotNull
("/main:", MainEntryPoint);
235
commandLine.
AppendSwitchIfNotNull
("/appconfig:", ApplicationConfiguration);
237
commandLine.
AppendSwitchIfNotNull
("/preferreduilang:", PreferredUILang);
239
commandLine.
AppendSwitchIfNotNull
("/nullable:", Nullable);
256
commandLine.
AppendSwitchIfNotNull
("/sqmsessionguid:", VsSessionGuid);
291
commandLine.
AppendSwitchIfNotNull
("@", response.ItemSpec);
312
commandLine.
AppendSwitchIfNotNull
("/features:", $"InterceptorsNamespaces={featureValue}");
443
commandLine.
AppendSwitchIfNotNull
(switchName, reference.ItemSpec);
src\roslyn\src\Compilers\Core\MSBuildTask\InteractiveCompiler.cs (2)
210
commandLine.
AppendSwitchIfNotNull
("@", response.ItemSpec);
228
commandLine.
AppendSwitchIfNotNull
("@", scriptResponse.ItemSpec);
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (20)
883
commandLine.
AppendSwitchIfNotNull
("/debug:", DebugType);
890
commandLine.
AppendSwitchIfNotNull
("/generatedfilesout:", GeneratedFilesOutputPath);
891
commandLine.
AppendSwitchIfNotNull
("/keycontainer:", KeyContainer);
892
commandLine.
AppendSwitchIfNotNull
("/keyfile:", KeyFile);
898
commandLine.
AppendSwitchIfNotNull
("/pathmap:", PathMap);
902
commandLine.
AppendSwitchIfNotNull
("/ruleset:", CodeAnalysisRuleSet);
903
commandLine.
AppendSwitchIfNotNull
("/errorlog:", ErrorLog);
904
commandLine.
AppendSwitchIfNotNull
("/subsystemversion:", SubsystemVersion);
908
commandLine.
AppendSwitchIfNotNull
("/target:", TargetType);
911
commandLine.
AppendSwitchIfNotNull
("/win32icon:", Win32Icon);
912
commandLine.
AppendSwitchIfNotNull
("/win32manifest:", Win32Manifest);
936
commandLine.
AppendSwitchIfNotNull
("/runtimemetadataversion:", RuntimeMetadataVersion);
937
commandLine.
AppendSwitchIfNotNull
("/checksumalgorithm:", ChecksumAlgorithm);
939
commandLine.
AppendSwitchIfNotNull
("/sourcelink:", SourceLink);
940
commandLine.
AppendSwitchIfNotNull
("/langversion:", LangVersion);
960
commandLine.
AppendSwitchIfNotNull
("/features:", feature.Trim());
978
commandLine.
AppendSwitchIfNotNull
("/analyzer:", analyzer.ItemSpec);
991
commandLine.
AppendSwitchIfNotNull
("/additionalfile:", additionalFile.ItemSpec);
1010
commandLine.
AppendSwitchIfNotNull
("/embed:", embeddedFile.ItemSpec);
1024
commandLine.
AppendSwitchIfNotNull
("/analyzerconfig:", analyzerConfigFile.ItemSpec);
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (19)
391
commandLine.
AppendSwitchIfNotNull
("/sdkpath:", RuntimeEnvironment.GetRuntimeDirectory());
398
commandLine.
AppendSwitchIfNotNull
("@", rspFile);
403
commandLine.
AppendSwitchIfNotNull
("/baseaddress:", this.GetBaseAddressInHex());
411
commandLine.
AppendSwitchIfNotNull
("/optioncompare:", this.OptionCompare);
445
commandLine.
AppendSwitchIfNotNull
("/optionstrict:", this.OptionStrictType);
452
commandLine.
AppendSwitchIfNotNull
("/errorreport:", this.ErrorReport);
453
commandLine.
AppendSwitchIfNotNull
("/platform:", this.PlatformWith32BitPreference);
455
commandLine.
AppendSwitchIfNotNull
("/rootnamespace:", this.RootNamespace);
456
commandLine.
AppendSwitchIfNotNull
("/sdkpath:", this.SdkPath);
457
commandLine.
AppendSwitchIfNotNull
("/moduleassemblyname:", this.ModuleAssemblyName);
459
commandLine.
AppendSwitchIfNotNull
("/preferreduilang:", this.PreferredUILang);
464
commandLine.
AppendSwitchIfNotNull
("/vbruntime:", this.VBRuntimePath);
483
commandLine.
AppendSwitchIfNotNull
("/vbruntime:", vbRuntimeSwitch);
497
commandLine.
AppendSwitchIfNotNull
("/", this.Verbosity);
506
commandLine.
AppendSwitchIfNotNull
("/doc:", this.DocumentationFile);
511
commandLine.
AppendSwitchIfNotNull
("/win32resource:", this.Win32Resource);
516
commandLine.
AppendSwitchIfNotNull
("/main:", this.MainEntryPoint);
553
commandLine.
AppendSwitchIfNotNull
("/sqmsessionguid:", this.VsSessionGuid);
565
commandLine.
AppendSwitchIfNotNull
("@", response.ItemSpec);
Microsoft.Build.Tasks.Core (11)
CommandLineBuilderExtension.cs (3)
121
AppendSwitchIfNotNull
(switchName, value.ToString(CultureInfo.InvariantCulture));
145
AppendSwitchIfNotNull
(outerSwitchName, innerSwitchName + quotedParameter);
245
AppendSwitchIfNotNull
(switchName, parameter.ItemSpec);
LC.cs (4)
156
commandLine.
AppendSwitchIfNotNull
("/target:", LicenseTarget.ItemSpec);
160
commandLine.
AppendSwitchIfNotNull
("/complist:", item.ItemSpec);
163
commandLine.
AppendSwitchIfNotNull
("/outdir:", OutputDirectory);
169
commandLine.
AppendSwitchIfNotNull
("/i:", item.ItemSpec);
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (4)
109
commandLine.
AppendSwitchIfNotNull
(ReferenceSwitch, reference.ItemSpec);
116
commandLine.
AppendSwitchIfNotNull
("/nowarn:", NoWarn);
117
commandLine.
AppendSwitchIfNotNull
("/target:", TargetType);
168
commandLine.
AppendSwitchIfNotNull
("/rootnamespace:", RootNamespace);
Microsoft.Build.Utilities.Core (1)
CommandLineBuilder.cs (1)
556
AppendSwitchIfNotNull
(switchName, parameter.ItemSpec);
Microsoft.DotNet.Build.Tasks.Workloads (9)
Wix\CommandLineBuilderExtensions.cs (1)
25
builder.
AppendSwitchIfNotNull
(switchName, value);
Wix\CompilerToolTask.cs (2)
74
CommandLineBuilder.
AppendSwitchIfNotNull
("-out ", OutputPath);
78
CommandLineBuilder.
AppendSwitchIfNotNull
("-arch ", Architecture);
Wix\HarvesterToolTask.cs (4)
110
CommandLineBuilder.
AppendSwitchIfNotNull
("dir ", SourceDirectory);
112
CommandLineBuilder.
AppendSwitchIfNotNull
("-cg ", ComponentGroupName);
136
CommandLineBuilder.
AppendSwitchIfNotNull
("-dr ", DirectoryReference);
137
CommandLineBuilder.
AppendSwitchIfNotNull
("-o ", OutputFile);
Wix\LinkerToolTask.cs (2)
76
CommandLineBuilder.
AppendSwitchIfNotNull
("-o ", OutputFile);
79
CommandLineBuilder.
AppendSwitchIfNotNull
("-sice:", SuppressIces);
Microsoft.NET.Sdk.Publish.Tasks (3)
Tasks\MsDeploy\MSDeploy.cs (3)
1013
commandLine.
AppendSwitchIfNotNull
("-appHostConfigDir:", WebServerAppHostConfigDirectory);
1014
commandLine.
AppendSwitchIfNotNull
("-webServerDir:", WebServerDirectory);
1016
commandLine.
AppendSwitchIfNotNull
("-webServerManifest:", Path.GetFileName(WebServerManifest));
Microsoft.TestPlatform.Build (10)
Tasks\TestTaskUtils.cs (10)
51
builder.
AppendSwitchIfNotNull
("--settings:", task.VSTestSetting);
62
builder.
AppendSwitchIfNotNull
("--framework:", task.VSTestFramework);
67
builder.
AppendSwitchIfNotNull
("--platform:", task.VSTestPlatform);
70
builder.
AppendSwitchIfNotNull
("--testCaseFilter:", task.VSTestTestCaseFilter);
76
builder.
AppendSwitchIfNotNull
("--logger:", arg);
93
builder.
AppendSwitchIfNotNull
("--diag:", task.VSTestDiag);
165
builder.
AppendSwitchIfNotNull
("--Blame:", string.Join(";", dumpArgs));
191
builder.
AppendSwitchIfNotNull
("--collect:", arg);
227
builder.
AppendSwitchIfNotNull
("--testSessionCorrelationId:", task.VSTestSessionCorrelationId);
235
builder.
AppendSwitchIfNotNull
(string.Empty, arg);