91 references to AppendSwitchIfNotNull
Microsoft.Build.Tasks.CodeAnalysis (59)
src\roslyn\src\Compilers\Core\MSBuildTask\CommandLineBuilderExtension.cs (3)
104AppendSwitchIfNotNull(switchName, value.ToString(CultureInfo.InvariantCulture)); 153AppendSwitchIfNotNull(outerSwitchName, innerSwitchName + quotedParameter); 248AppendSwitchIfNotNull(switchName, parameter.ItemSpec);
src\roslyn\src\Compilers\Core\MSBuildTask\Csc.cs (16)
207commandLine.AppendSwitchIfNotNull("/sdkpath:", RuntimeEnvironment.GetRuntimeDirectory()); 234commandLine.AppendSwitchIfNotNull("/moduleassemblyname:", ModuleAssemblyName); 235commandLine.AppendSwitchIfNotNull("/pdb:", PdbFile); 237commandLine.AppendSwitchIfNotNull("/platform:", PlatformWith32BitPreference); 238commandLine.AppendSwitchIfNotNull("/errorreport:", ErrorReport); 240commandLine.AppendSwitchIfNotNull("/doc:", DocumentationFile); 241commandLine.AppendSwitchIfNotNull("/baseaddress:", BaseAddress); 243commandLine.AppendSwitchIfNotNull("/win32res:", Win32Resource); 244commandLine.AppendSwitchIfNotNull("/main:", MainEntryPoint); 245commandLine.AppendSwitchIfNotNull("/appconfig:", ApplicationConfiguration); 247commandLine.AppendSwitchIfNotNull("/preferreduilang:", PreferredUILang); 249commandLine.AppendSwitchIfNotNull("/nullable:", Nullable); 266commandLine.AppendSwitchIfNotNull("/sqmsessionguid:", VsSessionGuid); 301commandLine.AppendSwitchIfNotNull("@", response.ItemSpec); 322commandLine.AppendSwitchIfNotNull("/features:", $"InterceptorsNamespaces={featureValue}"); 453commandLine.AppendSwitchIfNotNull(switchName, reference.ItemSpec);
src\roslyn\src\Compilers\Core\MSBuildTask\InteractiveCompiler.cs (2)
210commandLine.AppendSwitchIfNotNull("@", response.ItemSpec); 228commandLine.AppendSwitchIfNotNull("@", scriptResponse.ItemSpec);
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (20)
883commandLine.AppendSwitchIfNotNull("/debug:", DebugType); 890commandLine.AppendSwitchIfNotNull("/generatedfilesout:", GeneratedFilesOutputPath); 891commandLine.AppendSwitchIfNotNull("/keycontainer:", KeyContainer); 892commandLine.AppendSwitchIfNotNull("/keyfile:", KeyFile); 898commandLine.AppendSwitchIfNotNull("/pathmap:", PathMap); 902commandLine.AppendSwitchIfNotNull("/ruleset:", CodeAnalysisRuleSet); 903commandLine.AppendSwitchIfNotNull("/errorlog:", ErrorLog); 904commandLine.AppendSwitchIfNotNull("/subsystemversion:", SubsystemVersion); 908commandLine.AppendSwitchIfNotNull("/target:", TargetType); 911commandLine.AppendSwitchIfNotNull("/win32icon:", Win32Icon); 912commandLine.AppendSwitchIfNotNull("/win32manifest:", Win32Manifest); 936commandLine.AppendSwitchIfNotNull("/runtimemetadataversion:", RuntimeMetadataVersion); 937commandLine.AppendSwitchIfNotNull("/checksumalgorithm:", ChecksumAlgorithm); 939commandLine.AppendSwitchIfNotNull("/sourcelink:", SourceLink); 940commandLine.AppendSwitchIfNotNull("/langversion:", LangVersion); 960commandLine.AppendSwitchIfNotNull("/features:", feature.Trim()); 978commandLine.AppendSwitchIfNotNull("/analyzer:", analyzer.ItemSpec); 991commandLine.AppendSwitchIfNotNull("/additionalfile:", additionalFile.ItemSpec); 1010commandLine.AppendSwitchIfNotNull("/embed:", embeddedFile.ItemSpec); 1024commandLine.AppendSwitchIfNotNull("/analyzerconfig:", analyzerConfigFile.ItemSpec);
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (18)
391commandLine.AppendSwitchIfNotNull("/sdkpath:", RuntimeEnvironment.GetRuntimeDirectory()); 413commandLine.AppendSwitchIfNotNull("/baseaddress:", this.GetBaseAddressInHex()); 421commandLine.AppendSwitchIfNotNull("/optioncompare:", this.OptionCompare); 455commandLine.AppendSwitchIfNotNull("/optionstrict:", this.OptionStrictType); 462commandLine.AppendSwitchIfNotNull("/errorreport:", this.ErrorReport); 463commandLine.AppendSwitchIfNotNull("/platform:", this.PlatformWith32BitPreference); 465commandLine.AppendSwitchIfNotNull("/rootnamespace:", this.RootNamespace); 466commandLine.AppendSwitchIfNotNull("/sdkpath:", this.SdkPath); 467commandLine.AppendSwitchIfNotNull("/moduleassemblyname:", this.ModuleAssemblyName); 469commandLine.AppendSwitchIfNotNull("/preferreduilang:", this.PreferredUILang); 474commandLine.AppendSwitchIfNotNull("/vbruntime:", this.VBRuntimePath); 493commandLine.AppendSwitchIfNotNull("/vbruntime:", vbRuntimeSwitch); 507commandLine.AppendSwitchIfNotNull("/", this.Verbosity); 516commandLine.AppendSwitchIfNotNull("/doc:", this.DocumentationFile); 521commandLine.AppendSwitchIfNotNull("/win32resource:", this.Win32Resource); 526commandLine.AppendSwitchIfNotNull("/main:", this.MainEntryPoint); 563commandLine.AppendSwitchIfNotNull("/sqmsessionguid:", this.VsSessionGuid); 575commandLine.AppendSwitchIfNotNull("@", response.ItemSpec);
Microsoft.Build.Tasks.Core (11)
CommandLineBuilderExtension.cs (3)
121AppendSwitchIfNotNull(switchName, value.ToString(CultureInfo.InvariantCulture)); 145AppendSwitchIfNotNull(outerSwitchName, innerSwitchName + quotedParameter); 243AppendSwitchIfNotNull(switchName, parameter.ItemSpec);
LC.cs (4)
156commandLine.AppendSwitchIfNotNull("/target:", LicenseTarget.ItemSpec); 160commandLine.AppendSwitchIfNotNull("/complist:", item.ItemSpec); 163commandLine.AppendSwitchIfNotNull("/outdir:", OutputDirectory); 169commandLine.AppendSwitchIfNotNull("/i:", item.ItemSpec);
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (4)
109commandLine.AppendSwitchIfNotNull(ReferenceSwitch, reference.ItemSpec); 116commandLine.AppendSwitchIfNotNull("/nowarn:", NoWarn); 117commandLine.AppendSwitchIfNotNull("/target:", TargetType); 168commandLine.AppendSwitchIfNotNull("/rootnamespace:", RootNamespace);
Microsoft.Build.Utilities.Core (1)
CommandLineBuilder.cs (1)
556AppendSwitchIfNotNull(switchName, parameter.ItemSpec);
Microsoft.DotNet.Build.Tasks.Workloads (7)
Wix\CommandLineBuilderExtensions.cs (1)
25builder.AppendSwitchIfNotNull(switchName, value);
Wix\HarvesterToolTask.cs (4)
109CommandLineBuilder.AppendSwitchIfNotNull("dir ", SourceDirectory); 110CommandLineBuilder.AppendSwitchIfNotNull("-cg ", ComponentGroupName); 135CommandLineBuilder.AppendSwitchIfNotNull("-dr ", DirectoryReference); 136CommandLineBuilder.AppendSwitchIfNotNull("-o ", OutputFile);
Wix\WixToolTask.cs (2)
89CommandLineBuilder.AppendSwitchIfNotNull("-arch ", Architecture); 96CommandLineBuilder.AppendSwitchIfNotNull("-out ", OutputPath);
Microsoft.NET.Sdk.Publish.Tasks (3)
Tasks\MsDeploy\MSDeploy.cs (3)
1013commandLine.AppendSwitchIfNotNull("-appHostConfigDir:", WebServerAppHostConfigDirectory); 1014commandLine.AppendSwitchIfNotNull("-webServerDir:", WebServerDirectory); 1016commandLine.AppendSwitchIfNotNull("-webServerManifest:", Path.GetFileName(WebServerManifest));
Microsoft.TestPlatform.Build (10)
Tasks\TestTaskUtils.cs (10)
51builder.AppendSwitchIfNotNull("--settings:", task.VSTestSetting); 62builder.AppendSwitchIfNotNull("--framework:", task.VSTestFramework); 67builder.AppendSwitchIfNotNull("--platform:", task.VSTestPlatform); 70builder.AppendSwitchIfNotNull("--testCaseFilter:", task.VSTestTestCaseFilter); 76builder.AppendSwitchIfNotNull("--logger:", arg); 93builder.AppendSwitchIfNotNull("--diag:", task.VSTestDiag); 165builder.AppendSwitchIfNotNull("--Blame:", string.Join(";", dumpArgs)); 191builder.AppendSwitchIfNotNull("--collect:", arg); 227builder.AppendSwitchIfNotNull("--testSessionCorrelationId:", task.VSTestSessionCorrelationId); 235builder.AppendSwitchIfNotNull(string.Empty, arg);