34 references to AddIfNotNullOrWhiteSpace
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (34)
MSBuild\CSharp\CSharpCommandLineArgumentReader.cs (16)
36
AddIfNotNullOrWhiteSpace
("appconfig", Project.ReadPropertyString(PropertyNames.AppConfigForCompiler));
37
AddIfNotNullOrWhiteSpace
("baseaddress", Project.ReadPropertyString(PropertyNames.BaseAddress));
39
AddIfNotNullOrWhiteSpace
("define", Project.ReadPropertyString(PropertyNames.DefineConstants));
40
AddIfNotNullOrWhiteSpace
("filealign", Project.ReadPropertyString(PropertyNames.FileAlignment));
41
AddIfNotNullOrWhiteSpace
("doc", Project.ReadItemsAsString(ItemNames.DocFileItem));
44
AddIfNotNullOrWhiteSpace
("langversion", Project.ReadPropertyString(PropertyNames.LangVersion));
45
AddIfNotNullOrWhiteSpace
("main", Project.ReadPropertyString(PropertyNames.StartupObject));
46
AddIfNotNullOrWhiteSpace
("moduleassemblyname", Project.ReadPropertyString(PropertyNames.ModuleAssemblyName));
48
AddIfNotNullOrWhiteSpace
("nowarn", Project.ReadPropertyString(PropertyNames.NoWarn));
50
AddIfNotNullOrWhiteSpace
("out", Project.ReadItemsAsString(PropertyNames.IntermediateAssembly));
51
AddIfNotNullOrWhiteSpace
("pdb", Project.ReadPropertyString(PropertyNames.PdbFile));
52
AddIfNotNullOrWhiteSpace
("ruleset", Project.ReadPropertyString(PropertyNames.ResolvedCodeAnalysisRuleSet));
53
AddIfNotNullOrWhiteSpace
("subsystemversion", Project.ReadPropertyString(PropertyNames.SubsystemVersion));
54
AddIfNotNullOrWhiteSpace
("target", Project.ReadPropertyString(PropertyNames.OutputType));
58
AddIfNotNullOrWhiteSpace
("warnaserror+", Project.ReadPropertyString(PropertyNames.WarningsAsErrors));
59
AddIfNotNullOrWhiteSpace
("warnaserror-", Project.ReadPropertyString(PropertyNames.WarningsNotAsErrors));
MSBuild\ProjectFile\CommandLineArgumentReader.cs (2)
217
AddIfNotNullOrWhiteSpace
("imports", string.Join(",", imports.Select(ReadImportItem)), addQuoteIfValueContainsWhitespace: false);
236
AddIfNotNullOrWhiteSpace
("platform", platform);
MSBuild\VisualBasic\VisualBasicCommandLineArgumentReader.cs (16)
41
AddIfNotNullOrWhiteSpace
("baseaddress", Project.ReadPropertyString(PropertyNames.BaseAddress));
42
AddIfNotNullOrWhiteSpace
("define", Project.ReadPropertyString(PropertyNames.FinalDefineConstants));
43
AddIfNotNullOrWhiteSpace
("filealign", Project.ReadPropertyString(PropertyNames.FileAlignment));
45
AddIfNotNullOrWhiteSpace
("langversion", Project.ReadPropertyString(PropertyNames.LangVersion));
46
AddIfNotNullOrWhiteSpace
("main", Project.ReadPropertyString(PropertyNames.StartupObject));
47
AddIfNotNullOrWhiteSpace
("moduleassemblyname", Project.ReadPropertyString(PropertyNames.ModuleAssemblyName));
50
AddIfNotNullOrWhiteSpace
("nowarn", Project.ReadPropertyString(PropertyNames.NoWarn));
53
AddIfNotNullOrWhiteSpace
("out", Project.ReadItemsAsString(PropertyNames.IntermediateAssembly));
55
AddIfNotNullOrWhiteSpace
("rootnamespace", Project.ReadPropertyString(PropertyNames.RootNamespace));
56
AddIfNotNullOrWhiteSpace
("ruleset", Project.ReadPropertyString(PropertyNames.ResolvedCodeAnalysisRuleSet));
57
AddIfNotNullOrWhiteSpace
("sdkpath", Project.ReadPropertyString(PropertyNames.FrameworkPathOverride));
58
AddIfNotNullOrWhiteSpace
("subsystemversion", Project.ReadPropertyString(PropertyNames.SubsystemVersion));
59
AddIfNotNullOrWhiteSpace
("target", Project.ReadPropertyString(PropertyNames.OutputType));
61
AddIfNotNullOrWhiteSpace
("warnaserror+", Project.ReadPropertyString(PropertyNames.WarningsAsErrors));
62
AddIfNotNullOrWhiteSpace
("warnaserror-", Project.ReadPropertyString(PropertyNames.WarningsNotAsErrors));
102
AddIfNotNullOrWhiteSpace
("optionstrict", Project.ReadPropertyString(PropertyNames.OptionStrictType));