393 references to Strings
NuGet.CommandLine.XPlat (393)
Commands\CommonOptions.cs (1)
18Description = Strings.Verbosity_Description
Commands\ConfigCommands\ConfigCommand.cs (14)
34var ConfigCmd = new DocumentedCommand(name: "config", description: Strings.Config_Description, "https://aka.ms/dotnet/nuget/config"); 39var PathsCmd = new DocumentedCommand(name: "paths", description: Strings.ConfigPathsCommandDescription, "https://aka.ms/dotnet/nuget/config/paths"); 47var GetCmd = new DocumentedCommand(name: "get", description: Strings.ConfigGetCommandDescription, "https://aka.ms/dotnet/nuget/config/get"); 55var SetCmd = new DocumentedCommand(name: "set", description: Strings.ConfigSetCommandDescription, "https://aka.ms/dotnet/nuget/config/set"); 63var UnsetCmd = new DocumentedCommand(name: "unset", description: Strings.ConfigUnsetCommandDescription, "https://aka.ms/dotnet/nuget/config/unset"); 80Description = Strings.ConfigPathsWorkingDirectoryDescription 102Description = Strings.ConfigGetAllOrConfigKeyDescription 108Description = Strings.ConfigPathsWorkingDirectoryDescription 114Description = Strings.ConfigGetShowPathDescription, 141Description = Strings.ConfigSetConfigKeyDescription, 147Description = Strings.ConfigSetConfigValueDescription, 153Description = Strings.Option_ConfigFile, 179Description = Strings.ConfigUnsetConfigKeyDescription, 185Description = Strings.Option_ConfigFile,
Commands\ConfigCommands\ConfigRunners.cs (4)
86logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.ConfigCommandKeyNotFound, args.AllOrConfigKey)); 137getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, Strings.ConfigUnsetNonExistingKey, args.ConfigKey)); 160throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PathNotFound, directory)); 286throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.Error_ConfigSetInvalidKey, configKey));
Commands\DeleteCommand.cs (10)
19var deleteCmd = new Command("delete", Strings.Delete_Description); 24Description = Strings.Source_Description, 30Description = Strings.NonInteractive_Description, 36Description = Strings.ApiKey_Description, 42Description = Strings.NoServiceEndpoint_Description, 48Description = Strings.NuGetXplatCommand_Interactive, 54Description = Strings.Delete_PackageIdAndVersion_Description, 60Description = Strings.Delete_PackageIdAndVersion_Description, 112Console.WriteLine(string.Format(CultureInfo.CurrentCulture, Strings.ConsoleConfirmMessage, description)); 114return result != null && result.StartsWith(Strings.ConsoleConfirmMessageAccept, StringComparison.OrdinalIgnoreCase);
Commands\LocalsCommand.cs (7)
19var localsCmd = new Command("locals", Strings.LocalsCommand_Description); 24Description = Strings.LocalsCommand_ClearDescription, 30Description = Strings.LocalsCommand_ListDescription, 36Description = Strings.LocalsCommand_ArgumentDescription, 58throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_NoArguments)); 62throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_MultipleOperations)); 66throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_NoOperation));
Commands\NuGet\Add\DotnetNuGetAddCommand.cs (22)
15var addCmd = new Command("add", Strings.Add_Description); 25var sourceCmd = new Command("source", Strings.AddSourceCommandDescription); 27var sourceArg = new Argument<string>("PackageSourcePath") { Description = Strings.SourcesCommandSourceDescription }; 28var name = new Option<string>("--name", "-n") { Description = Strings.SourcesCommandNameDescription }; 29var username = new Option<string>("--username", "-u") { Description = Strings.SourcesCommandUsernameDescription }; 30var password = new Option<string>("--password", "-p") { Description = Strings.SourcesCommandPasswordDescription }; 31var storePasswordInClearText = new Option<bool>("--store-password-in-clear-text") { Description = Strings.SourcesCommandStorePasswordInClearTextDescription }; 32var validAuthenticationTypes = new Option<string>("--valid-authentication-types") { Description = Strings.SourcesCommandValidAuthenticationTypesDescription }; 33var protocolVersion = new Option<string>("--protocol-version") { Description = Strings.SourcesCommandProtocolVersionDescription }; 34var configfile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile }; 35var allowInsecureConnections = new Option<bool>("--allow-insecure-connections") { Description = Strings.SourcesCommandAllowInsecureConnectionsDescription }; 71var clientCertCmd = new Command("client-cert", Strings.AddClientCertCommandDescription); 73var packagesource = new Option<string>("--package-source", "-s") { Description = Strings.Option_PackageSource }; 74var path = new Option<string>("--path") { Description = Strings.Option_Path }; 75var password = new Option<string>("--password") { Description = Strings.Option_Password }; 76var storePasswordInClearText = new Option<bool>("--store-password-in-clear-text") { Description = Strings.Option_StorePasswordInClearText }; 77var storeLocation = new Option<string>("--store-location") { Description = Strings.Option_StoreLocation }; 78var storeName = new Option<string>("--store-name") { Description = Strings.Option_StoreName }; 79var findBy = new Option<string>("--find-by") { Description = Strings.Option_FindBy }; 80var findValue = new Option<string>("--find-value") { Description = Strings.Option_FindValue }; 81var force = new Option<bool>("--force", "-f") { Description = Strings.Option_Force }; 82var configfile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile };
Commands\NuGet\Disable\DotnetNuGetDisableCommand.cs (4)
15var disableCmd = new Command("disable", Strings.Disable_Description); 17var sourceCmd = new Command("source", Strings.DisableSourceCommandDescription); 19var nameArg = new Argument<string>("name") { Description = Strings.SourcesCommandNameDescription }; 20var configfile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile };
Commands\NuGet\Enable\DotnetNuGetEnableCommand.cs (4)
15var enableCmd = new Command("enable", Strings.Enable_Description); 17var sourceCmd = new Command("source", Strings.EnableSourceCommandDescription); 19var nameArg = new Argument<string>("name") { Description = Strings.SourcesCommandNameDescription }; 20var configfile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile };
Commands\NuGet\List\DotnetNuGetListCommand.cs (6)
15var listCmd = new Command("list", Strings.List_Description); 25var sourceCmd = new Command("source", Strings.ListSourceCommandDescription); 27var format = new Option<string>("--format") { Description = Strings.SourcesCommandFormatDescription }; 28var configfile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile }; 50var clientCertCmd = new Command("client-cert", Strings.ListClientCertCommandDescription); 52var configfile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile };
Commands\NuGet\Remove\DotnetNuGetRemoveCommand.cs (7)
15var removeCmd = new Command("remove", Strings.Remove_Description); 25var sourceCmd = new Command("source", Strings.RemoveSourceCommandDescription); 27var nameArg = new Argument<string>("name") { Description = Strings.SourcesCommandNameDescription }; 28var configfile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile }; 50var clientCertCmd = new Command("client-cert", Strings.RemoveClientCertCommandDescription); 52var packagesource = new Option<string>("--package-source", "-s") { Description = Strings.Option_PackageSource }; 53var configfile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile };
Commands\NuGet\Update\DotnetNuGetUpdateCommand.cs (22)
15var updateCmd = new Command("update", Strings.Update_Description); 25var sourceCmd = new Command("source", Strings.UpdateSourceCommandDescription); 27var nameArg = new Argument<string>("name") { Description = Strings.SourcesCommandNameDescription }; 28var source = new Option<string>("--source", "-s") { Description = Strings.SourcesCommandSourceDescription }; 29var username = new Option<string>("--username", "-u") { Description = Strings.SourcesCommandUsernameDescription }; 30var password = new Option<string>("--password", "-p") { Description = Strings.SourcesCommandPasswordDescription }; 31var storePasswordInClearText = new Option<bool>("--store-password-in-clear-text") { Description = Strings.SourcesCommandStorePasswordInClearTextDescription }; 32var validAuthenticationTypes = new Option<string>("--valid-authentication-types") { Description = Strings.SourcesCommandValidAuthenticationTypesDescription }; 33var protocolVersion = new Option<string>("--protocol-version") { Description = Strings.SourcesCommandProtocolVersionDescription }; 34var configfile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile }; 35var allowInsecureConnections = new Option<bool>("--allow-insecure-connections") { Description = Strings.SourcesCommandAllowInsecureConnectionsDescription }; 71var clientCertCmd = new Command("client-cert", Strings.UpdateClientCertCommandDescription); 73var packagesource = new Option<string>("--package-source", "-s") { Description = Strings.Option_PackageSource }; 74var path = new Option<string>("--path") { Description = Strings.Option_Path }; 75var password = new Option<string>("--password") { Description = Strings.Option_Password }; 76var storePasswordInClearText = new Option<bool>("--store-password-in-clear-text") { Description = Strings.Option_StorePasswordInClearText }; 77var storeLocation = new Option<string>("--store-location") { Description = Strings.Option_StoreLocation }; 78var storeName = new Option<string>("--store-name") { Description = Strings.Option_StoreName }; 79var findBy = new Option<string>("--find-by") { Description = Strings.Option_FindBy }; 80var findValue = new Option<string>("--find-value") { Description = Strings.Option_FindValue }; 81var force = new Option<bool>("--force", "-f") { Description = Strings.Option_Force }; 82var configfile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile };
Commands\Package\Download\PackageDownloadCommand.cs (7)
25Strings.PackageDownloadCommand_Description, 31Description = Strings.PackageUpdate_PackageArgumentDescription, 39Description = Strings.PackageDownloadCommand_AllowInsecureConnectionsDescription, 45Description = Strings.Option_ConfigFile, 51Description = Strings.PackageDownloadCommand_OutputDirectoryDescription, 57Description = Strings.Prerelease_Description, 63Description = Strings.PackageDownloadCommand_SourcesDescription,
Commands\Package\Download\PackageDownloadRunner.cs (9)
82Strings.PackageDownloadCommand_Starting, 84string.IsNullOrEmpty(package.NuGetVersion?.ToNormalizedString()) ? Strings.PackageDownloadCommand_LatestVersion : package.NuGetVersion.ToNormalizedString())); 105Strings.PackageDownloadCommand_PackageSourceMapping_NoSourcesMapped, 154Strings.PackageDownloadCommand_Succeeded, 163Strings.PackageDownloadCommand_Failed, 242logger.LogError(Strings.Error_PackageDownload_VersionNotFound); 269Strings.PackageDownloadCommand_PackageSourceMapping_NoSuchSource, 317Strings.PackageDownloadCommand_AlreadyInstalled, 334Strings.PackageDownloadCommand_UnableToDownload,
Commands\Package\Update\PackageUpdateCommand.cs (4)
25var command = new DocumentedCommand("update", Strings.PackageUpdateCommand_Description, "https://aka.ms/dotnet/package/update"); 29Description = Strings.PackageUpdate_PackageArgumentDescription, 36projectOption.Description = Strings.PackageUpdateCommand_ProjectOptionDescription; 40vulnerableOption.Description = Strings.PackageUpdateCommand_VulnerableOptionDescription;
Commands\Package\Update\PackageUpdateCommandRunner.cs (15)
58logger.LogVerbose(Strings.PackageUpdate_LoadingDGSpec); 64string.Format(CultureInfo.CurrentCulture, Strings.Error_PathIsMissingOrInvalid, args.Project), 80logger.LogVerbose(Strings.PackageUpdate_FindingUpdateVersions); 89logger.LogDebug(Strings.PackageUpdate_PreviewRestore); 95logger.LogMinimal(Strings.PackageUpdate_PreviewRestoreFailed, ConsoleColor.Red); 141logger.LogWarning(Strings.PackageUpdate_AuditModeIsDirect); 266logger.LogError(Strings.PackageUpdate_AuditDisabled); 337logger.LogMinimal(Strings.PackageUpdate_NoVulnerablePackages, ConsoleColor.Green); 342logger.LogMinimal(Strings.PackageUpdate_AlreadyUpToDate, ConsoleColor.Green); 400throw new ArgumentException(Strings.ArgumentNullOrEmpty, nameof(packages)); 728return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_UpdatingOutdatedPackages, projectPath); 733return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_UpdatingVulnerablePackages, projectPath); 738return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_UpdatedMessage, packageId, currentVersion, newVersion); 743return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_FinalSummary, updatedCount, scannedCount); 748return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_AllVersionsHaveAdvisories, packageId);
Commands\PackageReferenceCommands\AddPackageReferenceCommand.cs (14)
21var addCommand = new Command("add", Strings.AddPkg_Description); 25Description = Strings.AddPkg_PackageIdDescription, 31Description = Strings.AddPkg_PackageVersionDescription, 37Description = Strings.AddPkg_DgFileDescription, 43Description = Strings.AddPkg_ProjectPathDescription, 49Description = Strings.AddPkg_FrameworksDescription, 55Description = Strings.AddPkg_NoRestoreDescription, 61Description = Strings.AddPkg_SourcesDescription, 67Description = Strings.AddPkg_PackageDirectoryDescription, 73Description = Strings.AddPkg_InteractiveDescription, 79Description = Strings.Prerelease_Description, 148throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PrereleaseWhenVersionSpecified, 157throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PkgMissingArgument, 170Strings.Error_PkgMissingOrInvalidProjectFile,
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (13)
34Strings.Info_AddPkgAddingReference, 41Strings.Warn_AddPkgWithoutRestore)); 73packageReferenceArgs.Logger.LogDebug(Strings.Error_NoDgSpec); 75throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_NoDgSpec)); 97Strings.Error_UnsupportedProject, 164throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.PrereleaseVersionsAvailable, latestVersion)); 226Strings.Error_AddPkgIncompatibleWithAllFrameworks, 228packageReferenceArgs.Frameworks?.Any() == true ? Strings.AddPkg_UserSpecified : Strings.AddPkg_All, 248Strings.Info_AddPkgCompatibleWithAllFrameworks, 262Strings.Info_AddPkgCompatibleWithSubsetFrameworks, 290Strings.Error_AddPkgUnresolved, 300Strings.Error_AddPkgProjectReference,
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (21)
31var listCommand = new Command("list", Strings.ListPkg_Description); 40Description = Strings.ListPkg_PathDescription, 46Description = Strings.ListPkg_FrameworkDescription, 52Description = Strings.ListPkg_DeprecatedDescription, 58Description = Strings.ListPkg_OutdatedDescription, 64Description = Strings.ListPkg_VulnerableDescription, 70Description = Strings.ListPkg_TransitiveDescription, 76Description = Strings.ListPkg_PrereleaseDescription, 82Description = Strings.ListPkg_HighestPatchDescription, 88Description = Strings.ListPkg_HighestMinorDescription, 94Description = Strings.ListPkg_SourceDescription, 100Description = Strings.ListPkg_ConfigDescription, 106Description = Strings.ListPkg_OutputFormatDescription, 112Description = Strings.ListPkg_OutputVersionDescription, 118Description = Strings.NuGetXplatCommand_Interactive, 124Description = Strings.Verbosity_Description, 208throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_InvalidOptions)); 218throw new ArgumentException(string.Format(Strings.ListPkg_InvalidOutputFormat, outputFormatOption, currentlySupportedFormat)); 225throw new ArgumentException(string.Format(Strings.ListPkg_OutputVersionNotApplicable)); 235throw new ArgumentException(string.Format(Strings.ListPkg_InvalidOutputVersion, outputVersionOption, string.Join(" ,", currentlySupportedReportVersions))); 250reportRenderer.AddProblem(ProblemType.Warning, Strings.ListPkg_VulnerableIgnoredOptions);
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (6)
59Strings.ListPkg_ErrorFileNotFound, 104string.Format(CultureInfo.CurrentCulture, Strings.Error_NotPRProject, projectPath)); 120string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_InvalidFramework, frameworkAlias, projectPath)); 244string.Format(CultureInfo.CurrentCulture, Strings.Error_AssetsFileNotFound, projectPath)); 258string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_ErrorReadingAssetsFile, assetsPath)); 283string.Format(CultureInfo.CurrentCulture, Strings.Warning_AuditSourceWithoutData, source.Name)
Commands\PackageReferenceCommands\RemovePackageReferenceCommand.cs (6)
20var removeCommand = new Command("remove", Strings.RemovePkg_Description); 24Description = Strings.RemovePkg_PackageIdDescription, 30Description = Strings.RemovePkg_ProjectPathDescription, 36Description = Strings.AddPkg_InteractiveDescription, 72throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PkgMissingArgument, 85Strings.Error_PkgMissingOrInvalidProjectFile,
Commands\PackageReferenceCommands\RemovePackageReferenceCommandRunner.cs (1)
19Strings.Info_RemovePkgRemovingReference,
Commands\PackageSearch\PackageSearchArgs.cs (1)
53throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidOptionValue, number, option));
Commands\PackageSearch\PackageSearchCommand.cs (11)
27var searchCommand = new DocumentedCommand("search", Strings.pkgSearch_Description, "https://aka.ms/dotnet/package/search"); 31Description = Strings.pkgSearch_termDescription, 37Description = Strings.pkgSearch_SourceDescription, 43Description = Strings.pkgSearch_ExactMatchDescription, 49Description = Strings.pkgSearch_PrereleaseDescription, 55Description = Strings.pkgSearch_InteractiveDescription, 61Description = Strings.pkgSearch_TakeDescription, 67Description = Strings.pkgSearch_SkipDescription, 73Description = Strings.pkgSearch_FormatDescription, 79Description = Strings.pkgSearch_VerbosityDescription, 85Description = Strings.Option_ConfigFile,
Commands\PackageSearch\PackageSearchRunner.cs (2)
71packageSearchResultRenderer.Add(new PackageSearchProblem(PackageSearchProblemType.Error, Strings.Error_NoSource)); 127packageSearchResultRenderer.Add(source, new PackageSearchProblem(PackageSearchProblemType.Warning, Strings.Error_CannotObtainSearchSource));
Commands\PushCommand.cs (17)
19var pushCmd = new Command("push", Strings.Push_Description); 24Description = Strings.Source_Description, 30Description = Strings.AllowInsecureConnections_Description, 36Description = Strings.SymbolSource_Description, 42Description = Strings.Push_Timeout_Description, 48Description = Strings.ApiKey_Description, 54Description = Strings.SymbolApiKey_Description, 60Description = Strings.DisableBuffering_Description, 66Description = Strings.NoSymbols_Description, 72Description = Strings.NoServiceEndpoint_Description, 78Description = Strings.NuGetXplatCommand_Interactive, 84Description = Strings.PushCommandSkipDuplicateDescription, 90Description = Strings.Option_ConfigFile, 96Description = Strings.Push_Package_ApiKey_Description, 118throw new ArgumentException(Strings.Push_MissingArguments); 137throw new ArgumentException(Strings.Push_InvalidTimeout); 166throw new AggregateException(ex, new Exception(Strings.Push_Timeout_Error));
Commands\Signing\SignCommand.cs (23)
29var signCmd = new Command(CommandName, Strings.SignCommandDescription); 33Description = Strings.SignCommandPackagePathDescription, 39Description = Strings.SignCommandOutputDirectoryDescription, 45Description = Strings.SignCommandCertificatePathDescription, 51Description = Strings.SignCommandCertificateStoreNameDescription, 57Description = Strings.SignCommandCertificateStoreLocationDescription, 63Description = Strings.SignCommandCertificateSubjectNameDescription, 69Description = Strings.SignCommandCertificateFingerprintDescription, 75Description = Strings.SignCommandCertificatePasswordDescription, 81Description = Strings.SignCommandHashAlgorithmDescription, 87Description = Strings.SignCommandTimestamperDescription, 93Description = Strings.SignCommandTimestampHashAlgorithmDescription, 99Description = Strings.SignCommandOverwriteDescription, 105Description = Strings.SignCommandAllowUntrustedRootDescription, 111Description = Strings.Verbosity_Description, 194throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PkgMissingArgument, 204logger.Log(LogMessage.CreateWarning(NuGetLogCode.NU3002, Strings.SignCommandNoTimestamperWarning)); 228Strings.Err_InvalidValue, 246Strings.Err_InvalidValue, 263throw new ArgumentException(Strings.SignCommandNoCertificateException); 272throw new ArgumentException(Strings.SignCommandMultipleCertificateException); 277throw new ArgumentException(Strings.SignCommandMultipleCertificateException); 283string message = string.Format(CultureInfo.CurrentCulture, Strings.SignCommandInvalidCertificateFingerprint, NuGetLogCode.NU3043);
Commands\Signing\TrustedSignersCommand.cs (36)
24var trustedSignersCmd = new Command("trust", Strings.TrustCommandDescription); 27var listCommand = new Command("list", Strings.TrustListCommandDescription); 29var configFile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne }; 43var syncCommand = new Command("sync", Strings.TrustSyncCommandDescription); 45var name = new Argument<string>("NAME") { Description = Strings.TrustedSignerNameExists }; 46var configFile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne }; 61var removeCommand = new Command("remove", Strings.TrustRemoveCommandDescription); 63var name = new Argument<string>("NAME") { Description = Strings.TrustedSignerNameToRemove }; 64var configFile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne }; 79var authorCommand = new Command("author", Strings.TrustAuthorCommandDescription); 81var name = new Argument<string>("NAME") { Description = Strings.TrustedSignerNameToAdd }; 82var package = new Argument<string>("PACKAGE") { Description = Strings.TrustLocalSignedNupkgPath }; 83var allowUntrustedRootOption = new Option<bool>("--allow-untrusted-root") { Description = Strings.TrustCommandAllowUntrustedRoot, Arity = ArgumentArity.Zero }; 84var configFile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne }; 101var repositoryCommand = new Command("repository", Strings.TrustRepositoryCommandDescription); 103var name = new Argument<string>("NAME") { Description = Strings.TrustedSignerNameToAdd }; 104var package = new Argument<string>("PACKAGE") { Description = Strings.TrustLocalSignedNupkgPath }; 105var allowUntrustedRootOption = new Option<bool>("--allow-untrusted-root") { Description = Strings.TrustCommandAllowUntrustedRoot, Arity = ArgumentArity.Zero }; 106var owners = new Option<string>("--owners") { Description = Strings.TrustCommandOwners, Arity = ArgumentArity.ZeroOrOne }; 107var configFile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne }; 125var certificateCommand = new Command("certificate", Strings.TrustRepositoryCommandDescription); 127var name = new Argument<string>("NAME") { Description = Strings.TrustedCertificateSignerNameToAdd }; 128var fingerprint = new Argument<string>("FINGERPRINT") { Description = Strings.TrustCertificateFingerprint }; 129var algorithm = new Option<string>("--algorithm") { Description = Strings.TrustCommandAlgorithm, Arity = ArgumentArity.ZeroOrOne }; 130var allowUntrustedRootOption = new Option<bool>("--allow-untrusted-root") { Description = Strings.TrustCommandAllowUntrustedRoot, Arity = ArgumentArity.Zero }; 131var configFile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne }; 149var sourceCommand = new Command("source", Strings.TrustSourceCommandDescription); 151var name = new Argument<string>("NAME") { Description = Strings.TrustSourceSignerName }; 152var sourceUrl = new Option<string>("--source-url") { Description = Strings.TrustSourceUrl, Arity = ArgumentArity.ZeroOrOne }; 153var owners = new Option<string>("--owners") { Description = Strings.TrustCommandOwners, Arity = ArgumentArity.ZeroOrOne }; 154var configFile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne }; 171var mainConfigFile = new Option<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne }; 242var error_TrustedSignerAlreadyExistsMessage = string.Format(CultureInfo.CurrentCulture, Strings.Error_TrustedSignerAlreadyExists, name); 253var error_TrustedRepoAlreadyExists = string.Format(CultureInfo.CurrentCulture, Strings.Error_TrustedRepoAlreadyExists, sourceUrl); 268logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_TrustFingerPrintAlreadyExist)); 280Description = Strings.Verbosity_Description,
Commands\Signing\VerifyCommand.cs (7)
26var verifyCmd = new Command("verify", Strings.VerifyCommandDescription); 30Description = Strings.VerifyCommandPackagePathDescription, 36Description = Strings.VerifyCommandAllDescription, 42Description = Strings.VerifyCommandCertificateFingerprintDescription, 48Description = Strings.Option_ConfigFile, 54Description = Strings.Verbosity_Description, 96throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PkgMissingArgument,
Commands\Why\DependencyGraphFinder.cs (1)
44throw new FileFormatException(Strings.WhyCommand_Error_InconsistentAssetsFile);
Commands\Why\DependencyGraphPrinter.cs (1)
58tree.AddNode(Strings.WhyCommand_Message_NoDependencyGraphsFoundForFramework);
Commands\Why\WhyCommand.cs (4)
53var whyCommand = new DocumentedCommand("why", Strings.WhyCommand_Description, "https://aka.ms/dotnet/nuget/why"); 57Description = Strings.WhyCommand_PathArgument_Description, 92Description = Strings.WhyCommand_PackageArgument_Description, 98Description = Strings.WhyCommand_FrameworksOption_Description,
Commands\Why\WhyCommandRunner.cs (17)
51Strings.WhyCommand_Error_ArgumentExceptionThrown, 76Strings.WhyCommand_Message_DependencyGraphsFoundInProject, 86Strings.WhyCommand_Message_NoDependencyGraphsFoundInProject, 121Strings.Error_NotPRProject, 132Strings.Error_AssetsFileNotFound, 145Strings.WhyCommand_Message_NonSDKStyleProjectsAreNotSupported, 165Strings.WhyCommand_Error_ArgumentCannotBeEmpty, 181Strings.WhyCommand_Error_ArgumentExceptionThrown, 182string.Format(CultureInfo.CurrentCulture, Strings.Error_PathIsMissingOrInvalid, path)); 199Strings.WhyCommand_Error_ArgumentExceptionThrown, 200string.Format(CultureInfo.CurrentCulture, Strings.Error_PathIsMissingOrInvalid, path)); 212Strings.WhyCommand_Error_ArgumentCannotBeEmpty, 232Strings.WhyCommand_Warning_AssetsFileDoesNotContainSpecifiedTarget, 256Strings.Error_AssetsFileNotFound, 264Strings.Error_PathIsMissingOrInvalid, 284Strings.WhyCommand_Error_InvalidAssetsFile_WithoutProject, 292Strings.WhyCommand_Error_InvalidAssetsFile_WithProject,
ListPackage\ListPackageConsoleRenderer.cs (15)
63_consoleOut.WriteLine(Strings.ListPkg_SourcesUsedDescription); 77_consoleOut.WriteLine(Strings.ListPkg_AutoReferenceDescription); 87consoleOut.WriteLine(Strings.ListPkg_SourcesUsedDescription); 106consoleOut.WriteLine(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_NoPackagesFoundForFrameworks, project.ProjectName)); 119consoleOut.WriteLine(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_NoUpdatesForProject, project.ProjectName)); 122consoleOut.WriteLine(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_NoDeprecatedPackagesForProject, project.ProjectName)); 125consoleOut.WriteLine(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_NoVulnerablePackagesForProject, project.ProjectName)); 153consoleOut.WriteLine(string.Format(CultureInfo.CurrentCulture, " [{0}]: " + Strings.ListPkg_NoUpdatesForFramework, frameworkHeader)); 156consoleOut.WriteLine(string.Format(CultureInfo.CurrentCulture, " [{0}]: " + Strings.ListPkg_NoDeprecationsForFramework, frameworkHeader)); 159consoleOut.WriteLine(string.Format(CultureInfo.CurrentCulture, " [{0}]: " + Strings.ListPkg_NoVulnerabilitiesForFramework, frameworkHeader)); 162consoleOut.WriteLine(string.Format(CultureInfo.CurrentCulture, " [{0}]: " + Strings.ListPkg_NoPackagesForFramework, frameworkHeader)); 240return string.Format(Strings.ListPkg_ProjectUpdatesHeaderLog, projectName); 242return string.Format(Strings.ListPkg_ProjectDeprecationsHeaderLog, projectName); 244return string.Format(Strings.ListPkg_ProjectVulnerabilitiesHeaderLog, projectName); 249return string.Format(Strings.ListPkg_ProjectHeaderLog, projectName);
Messages.cs (20)
12/// <inheritdoc cref="Strings.Error_NoVersionsAvailable"/> 15return string.Format(CultureInfo.CurrentCulture, Strings.Error_NoVersionsAvailable, packageId); 18/// <inheritdoc cref="Strings.Error_CouldNotFindPackageVersionForCpmPackage"/> 21return string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotFindPackageVersionForCpmPackage, packageId); 24/// <inheritdoc cref="Strings.Unsupported_UpdatePackageWithDifferentPerTfmVersions"/> 27return string.Format(CultureInfo.CurrentCulture, Strings.Unsupported_UpdatePackageWithDifferentPerTfmVersions, packageId, projectPath); 30/// <inheritdoc cref="Strings.Warning_AlreadyHighestVersion"/> 33return string.Format(CultureInfo.CurrentCulture, Strings.Warning_AlreadyHighestVersion, packageId, version, projectPath); 36/// <inheritdoc cref="Strings.Warning_AlreadyUsingSameVersion"/> 39return string.Format(CultureInfo.CurrentCulture, Strings.Warning_AlreadyUsingSameVersion, packageId, version); 42/// <inheritdoc cref="Strings.Error_MissingVersion"/> 45return string.Format(CultureInfo.CurrentCulture, Strings.Error_MissingVersion, packageId); 48/// <inheritdoc cref="Strings.Error_InvalidVersionRange"/> 51return string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidVersionRange, input); 54/// <inheritdoc cref="Strings.Error_InvalidVersion"/> 57return string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidVersion, input); 60/// <inheritdoc cref="Strings.Error_PackageSourceMappingNotFound"/> 63return string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageSourceMappingNotFound, packageId); 66/// <inheritdoc cref="Strings.Error_CannotUpgradeAutoReferencedPackage"/> 69return string.Format(CultureInfo.CurrentCulture, Strings.Error_CannotUpgradeAutoReferencedPackage, project, packageId);
NuGetCommands.cs (1)
51Description = Strings.AddPkg_InteractiveDescription,
Program.cs (3)
87log.LogDebug(string.Format(CultureInfo.CurrentCulture, Strings.Debug_CurrentUICulture, CultureInfo.DefaultThreadCurrentUICulture)); 102Description = Strings.ForceEnglishOutput_Description, 108Description = Strings.AddPkg_InteractiveDescription,
Strings.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NuGet.CommandLine.XPlat.Strings", typeof(Strings).Assembly);
UILanguageOverride.cs (2)
62Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidCultureInfo, DOTNET_CLI_UI_LANGUAGE, dotnetCliLanguage)); 77Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidCultureInfo, VSLANG, vsLang));
Utility\CommandLineUtility.cs (1)
62Strings.Err_InvalidValue,
Utility\HttpSourcesUtility.cs (2)
45Strings.Error_HttpServerUsage, 53Strings.Error_HttpServerUsage_MultipleSources,
Utility\MSBuildAPIUtility.cs (19)
66throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_MsBuildUnableToOpenProject, projectCSProjPath)); 81throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_MsBuildUnableToOpenProject, projectCSProjPath)); 148Strings.Error_PathIsMissingOrInvalid, 185Strings.Error_UpdatePkgNoSuchPackage, 215packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_VersionOverrideDisabled, string.Join(";", dependenciesWithVersionOverride.Select(d => d.Name)))); 224packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_VersionsNotAllowed, string.Join(";", dependenciesWithDefinedVersion.Select(d => d.Name)))); 230packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_AutoreferencedReferencesNotAllowed, string.Join(";", autoReferencedAndDefinedInCentralFile.Select(d => d.Name)))); 236packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_MissingPackageVersion, string.Join(";", packageReferencedDependenciesWithoutCentralVersionDefined.Select(d => d.Name)))); 245packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_FloatingVersionsAreNotAllowed)); 254packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_AddPkg_CentralPackageVersions_PackageVersion_WrongLocation, packageReferenceArgs.PackageId)); 262packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_AddPkg_CentralPackageVersions_PackageReference_WrongLocation, packageReferenceArgs.PackageId)); 450Logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Info_AddPkgAdded, libraryDependency.Name, packageVersion, itemGroup.ContainingProject.FullPath 466Logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Info_AddPkgAdded, libraryDependency.Name, packageVersion, itemGroup.ContainingProject.FullPath)); 481Logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Info_AddPkgCPM, libraryDependency.Name, itemGroup.ContainingProject.FullPath, project.GetPropertyValue(DirectoryPackagesPropsPathPropertyName))); 602Strings.Info_AddPkgUpdated, 668"\t " + Strings.Error_AddPkgErrorStringForImportedEdit, 674Strings.Error_AddPkgFailOnImportEdit, 797throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_ErrorReadingAssetsFile, assetsFile.Path)); 830throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_ErrorReadingReferenceFromProject, project.FullPath));
Utility\ProjectPackagesPrintUtility.cs (10)
261return Strings.ListPkg_NotFoundAtSources; 279result.Add(Strings.ListPkg_TransitiveHeader); 284result.Add(Strings.ListPkg_TopLevelHeader); 286result.Add(Strings.ListPkg_Requested); 289result.Add(Strings.ListPkg_Resolved); 294result.Add(Strings.ListPkg_Latest); 297result.Add(Strings.ListPkg_DeprecationReasons); 298result.Add(Strings.ListPkg_DeprecationAlternative); 301result.Add(Strings.ListPkg_VulnerabilitySeverity); 302result.Add(Strings.ListPkg_VulnerabilityAdvisoryUrl);
Utility\XPlatUtility.cs (2)
104Strings.Error_MultipleProjectOrSolutionFilesInDirectory, 115Strings.Error_NoProjectOrSolutionFilesInDirectory,