91 references to AppendSwitchIfNotNull
Microsoft.Build.Tasks.CodeAnalysis (59)
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 (16)
207
commandLine.
AppendSwitchIfNotNull
("/sdkpath:", RuntimeEnvironment.GetRuntimeDirectory());
234
commandLine.
AppendSwitchIfNotNull
("/moduleassemblyname:", ModuleAssemblyName);
235
commandLine.
AppendSwitchIfNotNull
("/pdb:", PdbFile);
237
commandLine.
AppendSwitchIfNotNull
("/platform:", PlatformWith32BitPreference);
238
commandLine.
AppendSwitchIfNotNull
("/errorreport:", ErrorReport);
240
commandLine.
AppendSwitchIfNotNull
("/doc:", DocumentationFile);
241
commandLine.
AppendSwitchIfNotNull
("/baseaddress:", BaseAddress);
243
commandLine.
AppendSwitchIfNotNull
("/win32res:", Win32Resource);
244
commandLine.
AppendSwitchIfNotNull
("/main:", MainEntryPoint);
245
commandLine.
AppendSwitchIfNotNull
("/appconfig:", ApplicationConfiguration);
247
commandLine.
AppendSwitchIfNotNull
("/preferreduilang:", PreferredUILang);
249
commandLine.
AppendSwitchIfNotNull
("/nullable:", Nullable);
266
commandLine.
AppendSwitchIfNotNull
("/sqmsessionguid:", VsSessionGuid);
301
commandLine.
AppendSwitchIfNotNull
("@", response.ItemSpec);
322
commandLine.
AppendSwitchIfNotNull
("/features:", $"InterceptorsNamespaces={featureValue}");
453
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 (18)
391
commandLine.
AppendSwitchIfNotNull
("/sdkpath:", RuntimeEnvironment.GetRuntimeDirectory());
413
commandLine.
AppendSwitchIfNotNull
("/baseaddress:", this.GetBaseAddressInHex());
421
commandLine.
AppendSwitchIfNotNull
("/optioncompare:", this.OptionCompare);
455
commandLine.
AppendSwitchIfNotNull
("/optionstrict:", this.OptionStrictType);
462
commandLine.
AppendSwitchIfNotNull
("/errorreport:", this.ErrorReport);
463
commandLine.
AppendSwitchIfNotNull
("/platform:", this.PlatformWith32BitPreference);
465
commandLine.
AppendSwitchIfNotNull
("/rootnamespace:", this.RootNamespace);
466
commandLine.
AppendSwitchIfNotNull
("/sdkpath:", this.SdkPath);
467
commandLine.
AppendSwitchIfNotNull
("/moduleassemblyname:", this.ModuleAssemblyName);
469
commandLine.
AppendSwitchIfNotNull
("/preferreduilang:", this.PreferredUILang);
474
commandLine.
AppendSwitchIfNotNull
("/vbruntime:", this.VBRuntimePath);
493
commandLine.
AppendSwitchIfNotNull
("/vbruntime:", vbRuntimeSwitch);
507
commandLine.
AppendSwitchIfNotNull
("/", this.Verbosity);
516
commandLine.
AppendSwitchIfNotNull
("/doc:", this.DocumentationFile);
521
commandLine.
AppendSwitchIfNotNull
("/win32resource:", this.Win32Resource);
526
commandLine.
AppendSwitchIfNotNull
("/main:", this.MainEntryPoint);
563
commandLine.
AppendSwitchIfNotNull
("/sqmsessionguid:", this.VsSessionGuid);
575
commandLine.
AppendSwitchIfNotNull
("@", response.ItemSpec);
Microsoft.Build.Tasks.Core (11)
CommandLineBuilderExtension.cs (3)
121
AppendSwitchIfNotNull
(switchName, value.ToString(CultureInfo.InvariantCulture));
145
AppendSwitchIfNotNull
(outerSwitchName, innerSwitchName + quotedParameter);
243
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 (7)
Wix\CommandLineBuilderExtensions.cs (1)
25
builder.
AppendSwitchIfNotNull
(switchName, value);
Wix\HarvesterToolTask.cs (4)
109
CommandLineBuilder.
AppendSwitchIfNotNull
("dir ", SourceDirectory);
110
CommandLineBuilder.
AppendSwitchIfNotNull
("-cg ", ComponentGroupName);
135
CommandLineBuilder.
AppendSwitchIfNotNull
("-dr ", DirectoryReference);
136
CommandLineBuilder.
AppendSwitchIfNotNull
("-o ", OutputFile);
Wix\WixToolTask.cs (2)
89
CommandLineBuilder.
AppendSwitchIfNotNull
("-arch ", Architecture);
96
CommandLineBuilder.
AppendSwitchIfNotNull
("-out ", OutputPath);
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);