public static string BuildDotNetNuGetDelete(string aTokenizedCommandLine) { StringBuilder vResult = new StringBuilder(aTokenizedCommandLine); vResult .Replace(PACKAGE_ID.AsToken(), PackageId) .Replace(PACKAGE_VERSION.AsToken(), PackageVersion) .Replace(SOURCE.AsToken(), Source) .Replace(API_KEY.AsToken(), ApiKey) .Replace(VERBOSITY_DOTNET.AsToken(), VerbosityDotNet); return(vResult.ToString()); }
public static string BuildDotNetNuGetPush(string aTokenizedCommandLine) { StringBuilder vResult = new StringBuilder(aTokenizedCommandLine); vResult .Replace(PACKAGE_PATH.AsToken(), PackagePath) .Replace(SOURCE.AsToken(), Source) .Replace(API_KEY.AsToken(), ApiKey) .Replace(SYMBOL_SOURCE.AsToken(), SymbolSource) .Replace(SYMBOL_API_KEY.AsToken(), SymbolApiKey) .Replace(TIMEOUT.AsToken(), Timeout) .Replace(VERBOSITY_DOTNET.AsToken(), VerbosityDotNet); return(vResult.ToString()); }
// DotNet nuget command builders public static string BuildDotNetNuGetPack(string aTokenizedCommandLine) { StringBuilder vResult = new StringBuilder(aTokenizedCommandLine); vResult .Replace(PROJECT_PATH.AsToken(), ProjectPath) .Replace(CONFIGURATION_NAME.AsToken(), ConfigurationName) .Replace ( OUTPUT_PACKAGE_TO.AsToken() , PackageDir + Path.DirectorySeparatorChar ) .Replace(PACKAGE_VERSION.AsToken(), PackageVersion) .Replace(RUNTIME_IDENTIFIER.AsToken(), RuntimeIdentifier) .Replace(VERSION_SUFFIX_DOTNET.AsToken(), VersionSuffixDotNet) .Replace(VERBOSITY_DOTNET.AsToken(), VerbosityDotNet); return(vResult.ToString()); }