93 references to AppendSwitchIfNotNull
Microsoft.Build.Tasks.CodeAnalysis (57)
CommandLineBuilderExtension.cs (3)
104
AppendSwitchIfNotNull
(switchName, value.ToString(CultureInfo.InvariantCulture));
153
AppendSwitchIfNotNull
(outerSwitchName, innerSwitchName + quotedParameter);
248
AppendSwitchIfNotNull
(switchName, parameter.ItemSpec);
Csc.cs (15)
207
commandLine.
AppendSwitchIfNotNull
("/moduleassemblyname:", ModuleAssemblyName);
208
commandLine.
AppendSwitchIfNotNull
("/pdb:", PdbFile);
210
commandLine.
AppendSwitchIfNotNull
("/platform:", PlatformWith32BitPreference);
211
commandLine.
AppendSwitchIfNotNull
("/errorreport:", ErrorReport);
213
commandLine.
AppendSwitchIfNotNull
("/doc:", DocumentationFile);
214
commandLine.
AppendSwitchIfNotNull
("/baseaddress:", BaseAddress);
216
commandLine.
AppendSwitchIfNotNull
("/win32res:", Win32Resource);
217
commandLine.
AppendSwitchIfNotNull
("/main:", MainEntryPoint);
218
commandLine.
AppendSwitchIfNotNull
("/appconfig:", ApplicationConfiguration);
220
commandLine.
AppendSwitchIfNotNull
("/preferreduilang:", PreferredUILang);
222
commandLine.
AppendSwitchIfNotNull
("/nullable:", Nullable);
239
commandLine.
AppendSwitchIfNotNull
("/sqmsessionguid:", VsSessionGuid);
274
commandLine.
AppendSwitchIfNotNull
("@", response.ItemSpec);
295
commandLine.
AppendSwitchIfNotNull
("/features:", $"InterceptorsNamespaces={featureValue}");
426
commandLine.
AppendSwitchIfNotNull
(switchName, reference.ItemSpec);
InteractiveCompiler.cs (2)
212
commandLine.
AppendSwitchIfNotNull
("@", response.ItemSpec);
230
commandLine.
AppendSwitchIfNotNull
("@", scriptResponse.ItemSpec);
ManagedCompiler.cs (20)
874
commandLine.
AppendSwitchIfNotNull
("/debug:", DebugType);
881
commandLine.
AppendSwitchIfNotNull
("/generatedfilesout:", GeneratedFilesOutputPath);
882
commandLine.
AppendSwitchIfNotNull
("/keycontainer:", KeyContainer);
883
commandLine.
AppendSwitchIfNotNull
("/keyfile:", KeyFile);
889
commandLine.
AppendSwitchIfNotNull
("/pathmap:", PathMap);
893
commandLine.
AppendSwitchIfNotNull
("/ruleset:", CodeAnalysisRuleSet);
894
commandLine.
AppendSwitchIfNotNull
("/errorlog:", ErrorLog);
895
commandLine.
AppendSwitchIfNotNull
("/subsystemversion:", SubsystemVersion);
899
commandLine.
AppendSwitchIfNotNull
("/target:", TargetType);
902
commandLine.
AppendSwitchIfNotNull
("/win32icon:", Win32Icon);
903
commandLine.
AppendSwitchIfNotNull
("/win32manifest:", Win32Manifest);
917
commandLine.
AppendSwitchIfNotNull
("/runtimemetadataversion:", RuntimeMetadataVersion);
918
commandLine.
AppendSwitchIfNotNull
("/checksumalgorithm:", ChecksumAlgorithm);
920
commandLine.
AppendSwitchIfNotNull
("/sourcelink:", SourceLink);
921
commandLine.
AppendSwitchIfNotNull
("/langversion:", LangVersion);
941
commandLine.
AppendSwitchIfNotNull
("/features:", feature.Trim());
959
commandLine.
AppendSwitchIfNotNull
("/analyzer:", analyzer.ItemSpec);
972
commandLine.
AppendSwitchIfNotNull
("/additionalfile:", additionalFile.ItemSpec);
991
commandLine.
AppendSwitchIfNotNull
("/embed:", embeddedFile.ItemSpec);
1005
commandLine.
AppendSwitchIfNotNull
("/analyzerconfig:", analyzerConfigFile.ItemSpec);
Vbc.cs (17)
387
commandLine.
AppendSwitchIfNotNull
("/baseaddress:", this.GetBaseAddressInHex());
395
commandLine.
AppendSwitchIfNotNull
("/optioncompare:", this.OptionCompare);
429
commandLine.
AppendSwitchIfNotNull
("/optionstrict:", this.OptionStrictType);
436
commandLine.
AppendSwitchIfNotNull
("/errorreport:", this.ErrorReport);
437
commandLine.
AppendSwitchIfNotNull
("/platform:", this.PlatformWith32BitPreference);
439
commandLine.
AppendSwitchIfNotNull
("/rootnamespace:", this.RootNamespace);
440
commandLine.
AppendSwitchIfNotNull
("/sdkpath:", this.SdkPath);
441
commandLine.
AppendSwitchIfNotNull
("/moduleassemblyname:", this.ModuleAssemblyName);
443
commandLine.
AppendSwitchIfNotNull
("/preferreduilang:", this.PreferredUILang);
448
commandLine.
AppendSwitchIfNotNull
("/vbruntime:", this.VBRuntimePath);
467
commandLine.
AppendSwitchIfNotNull
("/vbruntime:", vbRuntimeSwitch);
481
commandLine.
AppendSwitchIfNotNull
("/", this.Verbosity);
490
commandLine.
AppendSwitchIfNotNull
("/doc:", this.DocumentationFile);
495
commandLine.
AppendSwitchIfNotNull
("/win32resource:", this.Win32Resource);
500
commandLine.
AppendSwitchIfNotNull
("/main:", this.MainEntryPoint);
537
commandLine.
AppendSwitchIfNotNull
("/sqmsessionguid:", this.VsSessionGuid);
549
commandLine.
AppendSwitchIfNotNull
("@", response.ItemSpec);
Microsoft.Build.Tasks.Core (10)
CommandLineBuilderExtension.cs (3)
121
AppendSwitchIfNotNull
(switchName, value.ToString(CultureInfo.InvariantCulture));
145
AppendSwitchIfNotNull
(outerSwitchName, innerSwitchName + quotedParameter);
245
AppendSwitchIfNotNull
(switchName, parameter.ItemSpec);
LC.cs (4)
146
commandLine.
AppendSwitchIfNotNull
("/target:", LicenseTarget.ItemSpec);
150
commandLine.
AppendSwitchIfNotNull
("/complist:", item.ItemSpec);
153
commandLine.
AppendSwitchIfNotNull
("/outdir:", OutputDirectory);
159
commandLine.
AppendSwitchIfNotNull
("/i:", item.ItemSpec);
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (3)
103
commandLine.
AppendSwitchIfNotNull
(ReferenceSwitch, reference.ItemSpec);
110
commandLine.
AppendSwitchIfNotNull
("/target:", TargetType);
161
commandLine.
AppendSwitchIfNotNull
("/rootnamespace:", RootNamespace);
Microsoft.Build.Tasks.UnitTests (2)
ToolTaskExtension_Tests.cs (2)
108
commandLineBuilder.
AppendSwitchIfNotNull
("/A:", "D66B977148114482A88B0EFC1E531F02");
109
commandLineBuilder.
AppendSwitchIfNotNull
("/B:", "F9E03765A87543F4B385664B8DB7619D");
Microsoft.Build.Utilities.Core (1)
CommandLineBuilder.cs (1)
551
AppendSwitchIfNotNull
(switchName, parameter.ItemSpec);
Microsoft.Build.Utilities.UnitTests (14)
CommandLineBuilder_Tests.cs (14)
42
c.
AppendSwitchIfNotNull
("/animal:", "dog");
55
c.
AppendSwitchIfNotNull
("/animal:", "dog and pony");
68
c.
AppendSwitchIfNotNull
("/i:", "iI");
300
c.
AppendSwitchIfNotNull
("/D", "LSYSTEM_COMPATIBLE_ASSEMBLY_NAME=L\"Microsoft.Windows.SystemCompatible\"");
311
c.
AppendSwitchIfNotNull
("/D", @"ASSEMBLY_KEY_FILE=""c:\\foo\\FinalKeyFile.snk""");
322
c.
AppendSwitchIfNotNull
("/D", @"""A B"" and ""C""");
333
c.
AppendSwitchIfNotNull
("/D", @"A \B");
344
c.
AppendSwitchIfNotNull
("/D", @"A"" \""B");
367
c.
AppendSwitchIfNotNull
("/D", @"A B\");
378
c.
AppendSwitchIfNotNull
("/D", @"AB\");
389
c.
AppendSwitchIfNotNull
("/D", @"foo-bar");
400
c.
AppendSwitchIfNotNull
("/D", @"foo-bar");
436
c.
AppendSwitchIfNotNull
("/D", @"A='""'"); // /DA='"'
445
c.
AppendSwitchIfNotNull
("/foo:", "bar");
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);