protected internal override void AddCommandLineCommands(CommandLineBuilderExtension commandLine) { base.AddCommandLineCommands(commandLine); commandLine.AppendSwitchIfTrue("/nostdlib", NoStandardLib); commandLine.AppendPlusOrMinusSwitch("/optionexplicit", OptionExplicit); commandLine.AppendSwitchIfNotNull("/rootnamespace:", RootNamespace); }
protected internal override void AddCommandLineCommands(CommandLineBuilderExtension commandLine) { #if RUNTIME_TYPE_NETCORE commandLine.AppendFileNameIfNotNull(_executablePath.Value); commandLine.AppendTextUnquoted(" "); #endif commandLine.AppendSwitchIfTrue("/noconfig", NoConfig); if (References != null) { foreach (ITaskItem reference in References) { commandLine.AppendSwitchIfNotNull(ReferenceSwitch, reference.ItemSpec); } } commandLine.AppendPlusOrMinusSwitch("/deterministic", Deterministic); commandLine.AppendSwitchIfTrue("/nologo", NoLogo); commandLine.AppendPlusOrMinusSwitch("/optimize", Optimize); commandLine.AppendSwitchIfNotNull("/target:", TargetType); commandLine.AppendSwitchIfNotNull("/out:", OutputAssembly); commandLine.AppendFileNamesIfNotNull(Sources, " "); }