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