示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        protected override void GenerateCommandLineCommands(CommandLineBuilder commandLineBuilder)
        {
            commandLineBuilder.AppendSwitch("setApiKey");

            commandLineBuilder.AppendFileNameIfNotNull(ApiKey);

            commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-Source ", Source);
        }
示例#5
0
        protected override void GenerateCommandLineCommands(CommandLineBuilder commandLineBuilder)
        {
            commandLineBuilder.AppendSwitch("add");

            commandLineBuilder.AppendFileNameIfNotNull(Package);

            commandLineBuilder.AppendSwitchIfNotNullOrWhiteSpace("-Source ", Source);

            commandLineBuilder.AppendSwitchIfTrue("-Expand", Expand);
        }
示例#6
0
        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);
        }