protected override void GenerateCommandLineCommands(CommandLineBuilder commandLineBuilder) { commandLineBuilder.AppendSwitch("restore"); commandLineBuilder.AppendFileNameIfNotNull(File); commandLineBuilder.AppendSwitchIfTrue("-RequireConsent", RequireConsent); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-PackagesDirectory ", PackagesDirectory); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-SolutionDirectory ", SolutionDirectory); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-MSBuildVersion ", MsBuildVersion); if (IsNuGetVersion4OrGreater()) { commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-MSBuildPath ", MSBuildPath); } commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-Project2ProjectTimeOut ", Project2ProjectTimeOut); commandLineBuilder.AppendTextUnquoted(AdditionalArguments); base.GenerateCommandLineCommands(commandLineBuilder); }
protected override void GenerateCommandLineCommands(CommandLineBuilder commandLineBuilder) { commandLineBuilder.AppendSwitch("push"); commandLineBuilder.AppendFileNameIfNotNull(Package); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-Source ", Source); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-ApiKey ", ApiKey); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-Timeout ", PushTimeout); commandLineBuilder.AppendSwitchIfTrue("-DisableBuffering", DisableBuffering); }
protected override void GenerateCommandLineCommands(CommandLineBuilder commandLineBuilder) { commandLineBuilder.AppendSwitch("delete"); commandLineBuilder.AppendFileNameIfNotNull(PackageId); commandLineBuilder.AppendFileNameIfNotNull(PackageVersion); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-Source", Source); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-ApiKey ", ApiKey); commandLineBuilder.AppendSwitchIfTrue("-NoPrompt", NoPrompt); }
protected override void GenerateCommandLineCommands(CommandLineBuilder commandLineBuilder) { commandLineBuilder.AppendSwitch("setApiKey"); commandLineBuilder.AppendFileNameIfNotNull(ApiKey); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-Source ", Source); }
protected override void GenerateCommandLineCommands(CommandLineBuilder commandLineBuilder) { commandLineBuilder.AppendSwitch("add"); commandLineBuilder.AppendFileNameIfNotNull(Package); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-Source ", Source); commandLineBuilder.AppendSwitchIfTrue("-Expand", Expand); }
protected override void GenerateCommandLineCommands(CommandLineBuilder commandLineBuilder) { commandLineBuilder.AppendSwitch("pack"); commandLineBuilder.AppendFileNameIfNotNull(File); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-OutputDirectory ", OutputDirectory); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-BasePath ", BasePath); commandLineBuilder.AppendSwitchIfTrue("-Verbose", Verbose); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-Version ", Version); commandLineBuilder.AppendSwitchIfAny("-Exclude ", Exclude); commandLineBuilder.AppendSwitchIfTrue("-Symbols", Symbols); commandLineBuilder.AppendSwitchIfTrue("-Tool", Tool); commandLineBuilder.AppendSwitchIfTrue("-Build", Build); commandLineBuilder.AppendSwitchIfTrue("-NoDefaultExcludes", NoDefaultExcludes); commandLineBuilder.AppendSwitchIfTrue("-NoPackageAnalysis", NoPackageAnalysis); commandLineBuilder.AppendSwitchIfTrue("-ExcludeEmptyDirectories", ExcludeEmptyDirectories); commandLineBuilder.AppendSwitchIfTrue("-IncludeReferencedProjects", IncludeReferencedProjects); commandLineBuilder.AppendSwitchIfAny("-Properties ", Properties); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-MinClientVersion ", MinClientVersion); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-MSBuildVersion ", MsBuildVersion); commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-Suffix ", Suffix); }