401 references to Strings
NuGet.CommandLine.XPlat (401)
Commands\CommonOptions.cs (1)
18
Description =
Strings
.Verbosity_Description
Commands\ConfigCommands\ConfigCommand.cs (13)
26
Description =
Strings
.ConfigSetConfigKeyDescription,
32
Description =
Strings
.ConfigUnsetConfigKeyDescription,
38
Description =
Strings
.ConfigSetConfigValueDescription,
44
Description =
Strings
.ConfigGetAllOrConfigKeyDescription
50
Description =
Strings
.ConfigPathsWorkingDirectoryDescription
56
Description =
Strings
.ConfigGetShowPathDescription,
62
Description =
Strings
.Option_ConfigFile,
85
configCmd.Description =
Strings
.Config_Description;
91
var ConfigCmd = new DocumentedCommand(name: "config", description:
Strings
.Config_Description, "https://aka.ms/dotnet/nuget/config");
97
var PathsCmd = new DocumentedCommand(name: "paths", description:
Strings
.ConfigPathsCommandDescription, "https://aka.ms/dotnet/nuget/config/paths");
105
var GetCmd = new DocumentedCommand(name: "get", description:
Strings
.ConfigGetCommandDescription, "https://aka.ms/dotnet/nuget/config/get");
113
var SetCmd = new DocumentedCommand(name: "set", description:
Strings
.ConfigSetCommandDescription, "https://aka.ms/dotnet/nuget/config/set");
121
var UnsetCmd = new DocumentedCommand(name: "unset", description:
Strings
.ConfigUnsetCommandDescription, "https://aka.ms/dotnet/nuget/config/unset");
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 (11)
22
delete.Description =
Strings
.Delete_Description;
27
Strings
.ForceEnglishOutput_Description,
32
Strings
.Source_Description,
37
Strings
.NonInteractive_Description,
42
Strings
.ApiKey_Description,
47
Strings
.Delete_PackageIdAndVersion_Description,
52
Strings
.NoServiceEndpoint_Description,
57
Strings
.NuGetXplatCommand_Interactive,
64
throw new ArgumentException(
Strings
.Delete_MissingArguments);
104
Console.WriteLine(string.Format(CultureInfo.CurrentCulture,
Strings
.ConsoleConfirmMessage, description));
106
return result.StartsWith(
Strings
.ConsoleConfirmMessageAccept, StringComparison.OrdinalIgnoreCase);
Commands\LocalsCommand.cs (8)
20
locals.Description =
Strings
.LocalsCommand_Description;
25
Strings
.ForceEnglishOutput_Description,
30
Strings
.LocalsCommand_ClearDescription,
35
Strings
.LocalsCommand_ListDescription,
40
Strings
.LocalsCommand_ArgumentDescription,
54
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.LocalsCommand_NoArguments));
58
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.LocalsCommand_MultipleOperations));
62
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.LocalsCommand_NoOperation));
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,
237
logger.LogError(
Strings
.Error_PackageDownload_VersionNotFound);
264
Strings
.PackageDownloadCommand_PackageSourceMapping_NoSuchSource,
312
Strings
.PackageDownloadCommand_AlreadyInstalled,
329
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 (15)
23
addpkg.Description =
Strings
.AddPkg_Description;
28
Strings
.ForceEnglishOutput_Description,
33
Strings
.AddPkg_PackageIdDescription,
38
Strings
.AddPkg_PackageVersionDescription,
43
Strings
.AddPkg_DgFileDescription,
48
Strings
.AddPkg_ProjectPathDescription,
53
Strings
.AddPkg_FrameworksDescription,
58
Strings
.AddPkg_NoRestoreDescription,
63
Strings
.AddPkg_SourcesDescription,
68
Strings
.AddPkg_PackageDirectoryDescription,
73
Strings
.AddPkg_InteractiveDescription,
78
Strings
.Prerelease_Description,
123
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.Error_PrereleaseWhenVersionSpecified,
132
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.Error_PkgMissingArgument,
145
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 (22)
31
listpkg.Description =
Strings
.ListPkg_Description;
36
Strings
.ForceEnglishOutput_Description,
41
Strings
.ListPkg_PathDescription,
46
Strings
.ListPkg_FrameworkDescription,
51
Strings
.ListPkg_DeprecatedDescription,
56
Strings
.ListPkg_OutdatedDescription,
61
Strings
.ListPkg_VulnerableDescription,
66
Strings
.ListPkg_TransitiveDescription,
71
Strings
.ListPkg_PrereleaseDescription,
76
Strings
.ListPkg_HighestPatchDescription,
81
Strings
.ListPkg_HighestMinorDescription,
86
Strings
.ListPkg_SourceDescription,
91
Strings
.ListPkg_ConfigDescription,
96
Strings
.ListPkg_OutputFormatDescription,
101
Strings
.ListPkg_OutputVersionDescription,
106
Strings
.NuGetXplatCommand_Interactive,
111
Strings
.Verbosity_Description,
171
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.ListPkg_InvalidOptions));
181
throw new ArgumentException(string.Format(
Strings
.ListPkg_InvalidOutputFormat, outputFormatOption, currentlySupportedFormat));
188
throw new ArgumentException(string.Format(
Strings
.ListPkg_OutputVersionNotApplicable));
199
throw new ArgumentException(string.Format(
Strings
.ListPkg_InvalidOutputVersion, outputVersionOption, string.Join(" ,", currentlySupportedReportVersions)));
214
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 (7)
22
removePkg.Description =
Strings
.RemovePkg_Description;
27
Strings
.ForceEnglishOutput_Description,
32
Strings
.RemovePkg_PackageIdDescription,
37
Strings
.RemovePkg_ProjectPathDescription,
42
Strings
.AddPkg_InteractiveDescription,
69
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.Error_PkgMissingArgument,
82
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)
28
var searchCommand = new DocumentedCommand("search",
Strings
.pkgSearch_Description, "https://aka.ms/dotnet/package/search");
32
Description =
Strings
.pkgSearch_termDescription,
38
Description =
Strings
.pkgSearch_SourceDescription,
44
Description =
Strings
.pkgSearch_ExactMatchDescription,
50
Description =
Strings
.pkgSearch_PrereleaseDescription,
56
Description =
Strings
.pkgSearch_InteractiveDescription,
62
Description =
Strings
.pkgSearch_TakeDescription,
68
Description =
Strings
.pkgSearch_SkipDescription,
74
Description =
Strings
.pkgSearch_FormatDescription,
80
Description =
Strings
.pkgSearch_VerbosityDescription,
86
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 (18)
23
push.Description =
Strings
.Push_Description;
28
Strings
.ForceEnglishOutput_Description,
33
Strings
.Source_Description,
38
Strings
.AllowInsecureConnections_Description,
43
Strings
.SymbolSource_Description,
48
Strings
.Push_Timeout_Description,
53
Strings
.ApiKey_Description,
58
Strings
.SymbolApiKey_Description,
63
Strings
.DisableBuffering_Description,
68
Strings
.NoSymbols_Description,
73
Strings
.Push_Package_ApiKey_Description,
78
Strings
.NoServiceEndpoint_Description,
83
Strings
.NuGetXplatCommand_Interactive,
88
Strings
.PushCommandSkipDuplicateDescription,
93
Strings
.Option_ConfigFile,
100
throw new ArgumentException(
Strings
.Push_MissingArguments);
117
throw new ArgumentException(
Strings
.Push_InvalidTimeout);
146
throw new AggregateException(ex, new Exception(
Strings
.Push_Timeout_Error));
Commands\Signing\SignCommand.cs (23)
31
Strings
.SignCommandPackagePathDescription,
36
Strings
.SignCommandOutputDirectoryDescription,
41
Strings
.SignCommandCertificatePathDescription,
46
Strings
.SignCommandCertificateStoreNameDescription,
51
Strings
.SignCommandCertificateStoreLocationDescription,
56
Strings
.SignCommandCertificateSubjectNameDescription,
61
Strings
.SignCommandCertificateFingerprintDescription,
66
Strings
.SignCommandCertificatePasswordDescription,
71
Strings
.SignCommandHashAlgorithmDescription,
76
Strings
.SignCommandTimestamperDescription,
81
Strings
.SignCommandTimestampHashAlgorithmDescription,
86
Strings
.SignCommandOverwriteDescription,
91
Strings
.SignCommandAllowUntrustedRootDescription,
96
Strings
.Verbosity_Description,
101
signCmd.Description =
Strings
.SignCommandDescription;
154
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.Error_PkgMissingArgument,
164
logger.Log(LogMessage.CreateWarning(NuGetLogCode.NU3002,
Strings
.SignCommandNoTimestamperWarning));
191
Strings
.Err_InvalidValue,
210
Strings
.Err_InvalidValue,
227
throw new ArgumentException(
Strings
.SignCommandNoCertificateException);
236
throw new ArgumentException(
Strings
.SignCommandMultipleCertificateException);
241
throw new ArgumentException(
Strings
.SignCommandMultipleCertificateException);
247
string message = string.Format(CultureInfo.CurrentCulture,
Strings
.SignCommandInvalidCertificateFingerprint, NuGetLogCode.NU3043);
Commands\Signing\TrustedSignersCommand.cs (36)
29
listCommand.Description =
Strings
.TrustListCommandDescription;
32
Strings
.Option_ConfigFile,
47
syncCommand.Description =
Strings
.TrustSyncCommandDescription;
50
Strings
.Option_ConfigFile,
58
Strings
.TrustedSignerNameExists);
68
syncCommand.Description =
Strings
.TrustRemoveCommandDescription;
71
Strings
.Option_ConfigFile,
79
Strings
.TrustedSignerNameToRemove);
89
authorCommand.Description =
Strings
.TrustAuthorCommandDescription;
93
Strings
.TrustCommandAllowUntrustedRoot,
98
Strings
.Option_ConfigFile,
106
Strings
.TrustedSignerNameToAdd);
108
Strings
.TrustLocalSignedNupkgPath);
118
repositoryCommand.Description =
Strings
.TrustRepositoryCommandDescription;
122
Strings
.TrustCommandAllowUntrustedRoot,
127
Strings
.Option_ConfigFile,
134
Strings
.TrustCommandOwners,
140
Strings
.TrustedSignerNameToAdd);
142
Strings
.TrustLocalSignedNupkgPath);
152
certificateCommand.Description =
Strings
.TrustRepositoryCommandDescription;
156
Strings
.TrustCommandAlgorithm,
161
Strings
.TrustCommandAllowUntrustedRoot,
166
Strings
.Option_ConfigFile,
174
Strings
.TrustedCertificateSignerNameToAdd);
176
Strings
.TrustCertificateFingerprint);
186
sourceCommand.Description =
Strings
.TrustSourceCommandDescription;
190
Strings
.Option_ConfigFile,
197
Strings
.TrustCommandOwners,
202
Strings
.TrustSourceUrl,
208
Strings
.TrustSourceSignerName);
217
trustedSignersCmd.Description =
Strings
.TrustCommandDescription;
220
Strings
.Option_ConfigFile,
291
var error_TrustedSignerAlreadyExistsMessage = string.Format(CultureInfo.CurrentCulture,
Strings
.Error_TrustedSignerAlreadyExists, name);
302
var error_TrustedRepoAlreadyExists = string.Format(CultureInfo.CurrentCulture,
Strings
.Error_TrustedRepoAlreadyExists, sourceUrl);
317
logger.LogError(string.Format(CultureInfo.CurrentCulture,
Strings
.Error_TrustFingerPrintAlreadyExist));
329
Strings
.Verbosity_Description,
Commands\Signing\VerifyCommand.cs (7)
29
Strings
.VerifyCommandPackagePathDescription,
34
Strings
.VerifyCommandAllDescription,
39
Strings
.VerifyCommandCertificateFingerprintDescription,
44
Strings
.Option_ConfigFile,
49
Strings
.Verbosity_Description,
53
verifyCmd.Description =
Strings
.VerifyCommandDescription;
85
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.Error_PkgMissingArgument,
Commands\Verbs.cs (65)
23
"PackageSourcePath",
Strings
.SourcesCommandSourceDescription);
26
Strings
.SourcesCommandNameDescription,
30
Strings
.SourcesCommandUsernameDescription,
34
Strings
.SourcesCommandPasswordDescription,
38
Strings
.SourcesCommandStorePasswordInClearTextDescription,
42
Strings
.SourcesCommandValidAuthenticationTypesDescription,
46
Strings
.SourcesCommandProtocolVersionDescription,
50
Strings
.Option_ConfigFile,
54
Strings
.SourcesCommandAllowInsecureConnectionsDescription,
57
SourceCmd.Description =
Strings
.AddSourceCommandDescription;
81
Strings
.Option_PackageSource,
85
Strings
.Option_Path,
89
Strings
.Option_Password,
93
Strings
.Option_StorePasswordInClearText,
97
Strings
.Option_StoreLocation,
101
Strings
.Option_StoreName,
105
Strings
.Option_FindBy,
109
Strings
.Option_FindValue,
113
Strings
.Option_Force,
117
Strings
.Option_ConfigFile,
120
ClientCertCmd.Description =
Strings
.AddClientCertCommandDescription;
142
AddCmd.Description =
Strings
.Add_Description;
162
"name",
Strings
.SourcesCommandNameDescription);
165
Strings
.Option_ConfigFile,
168
SourceCmd.Description =
Strings
.DisableSourceCommandDescription;
182
DisableCmd.Description =
Strings
.Disable_Description;
202
"name",
Strings
.SourcesCommandNameDescription);
205
Strings
.Option_ConfigFile,
208
SourceCmd.Description =
Strings
.EnableSourceCommandDescription;
222
EnableCmd.Description =
Strings
.Enable_Description;
243
Strings
.SourcesCommandFormatDescription,
247
Strings
.Option_ConfigFile,
250
SourceCmd.Description =
Strings
.ListSourceCommandDescription;
267
Strings
.Option_ConfigFile,
270
ClientCertCmd.Description =
Strings
.ListClientCertCommandDescription;
283
ListCmd.Description =
Strings
.List_Description;
303
"name",
Strings
.SourcesCommandNameDescription);
306
Strings
.Option_ConfigFile,
309
SourceCmd.Description =
Strings
.RemoveSourceCommandDescription;
326
Strings
.Option_PackageSource,
330
Strings
.Option_ConfigFile,
333
ClientCertCmd.Description =
Strings
.RemoveClientCertCommandDescription;
347
RemoveCmd.Description =
Strings
.Remove_Description;
367
"name",
Strings
.SourcesCommandNameDescription);
370
Strings
.SourcesCommandSourceDescription,
374
Strings
.SourcesCommandUsernameDescription,
378
Strings
.SourcesCommandPasswordDescription,
382
Strings
.SourcesCommandStorePasswordInClearTextDescription,
386
Strings
.SourcesCommandValidAuthenticationTypesDescription,
390
Strings
.SourcesCommandProtocolVersionDescription,
394
Strings
.Option_ConfigFile,
398
Strings
.SourcesCommandAllowInsecureConnectionsDescription,
401
SourceCmd.Description =
Strings
.UpdateSourceCommandDescription;
425
Strings
.Option_PackageSource,
429
Strings
.Option_Path,
433
Strings
.Option_Password,
437
Strings
.Option_StorePasswordInClearText,
441
Strings
.Option_StoreLocation,
445
Strings
.Option_StoreName,
449
Strings
.Option_FindBy,
453
Strings
.Option_FindValue,
457
Strings
.Option_Force,
461
Strings
.Option_ConfigFile,
464
ClientCertCmd.Description =
Strings
.UpdateClientCertCommandDescription;
486
UpdateCmd.Description =
Strings
.Update_Description;
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 (5)
25
whyCmd.Description =
Strings
.WhyCommand_Description;
63
var whyCommand = new DocumentedCommand("why",
Strings
.WhyCommand_Description, "https://aka.ms/dotnet/nuget/why");
67
Description =
Strings
.WhyCommand_PathArgument_Description,
102
Description =
Strings
.WhyCommand_PackageArgument_Description,
108
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 (5)
90
log.LogDebug(string.Format(CultureInfo.CurrentCulture,
Strings
.Debug_CurrentUICulture, CultureInfo.DefaultThreadCurrentUICulture));
111
interactiveOption.Description =
Strings
.AddPkg_InteractiveDescription;
179
log.LogVerbose(string.Format(CultureInfo.CurrentCulture,
Strings
.OutputNuGetVersion, app.FullName, app.LongVersionGetter()));
214
Strings
.Sources_Redirect, $"dotnet nuget {verb} source"));
343
app.FullName =
Strings
.App_FullName;
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)
106
Strings
.Error_MultipleProjectOrSolutionFilesInDirectory,
117
Strings
.Error_NoProjectOrSolutionFilesInDirectory,