41 writes to CurrentCulture
aspire (1)
src\Shared\LocaleHelpers.cs (1)
32CultureInfo.CurrentCulture = cultureInfo;
Aspire.Dashboard (1)
src\Shared\LocaleHelpers.cs (1)
32CultureInfo.CurrentCulture = cultureInfo;
Aspire.Dashboard.Tests (2)
TelemetryFilterFormatterTests.cs (2)
17CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo("de-DE"); 39CultureInfo.CurrentCulture = originalCulture;
Aspire.Hosting (2)
DistributedApplication.cs (1)
790CultureInfo.CurrentCulture = context.OriginalCurrentCulture!;
src\Shared\LocaleHelpers.cs (1)
32CultureInfo.CurrentCulture = cultureInfo;
Aspire.Hosting.Azure.Tests (2)
DefaultArmClientProviderTests.cs (2)
67CultureInfo.CurrentCulture = new CultureInfo("de-DE"); 89CultureInfo.CurrentCulture = originalCulture;
Aspire.Hosting.Tests (2)
Utils\StringComparersTests.cs (2)
29CultureInfo.CurrentCulture = new CultureInfo("en-AU"); 40CultureInfo.CurrentCulture = currentCulture;
Infrastructure.Common (2)
xunit\WcfCurrentCultureAttribute.cs (2)
26CultureInfo.CurrentCulture = _cultureInfo; 31CultureInfo.CurrentCulture = _savedCultureInfo;
Microsoft.AspNetCore.Components.Endpoints (1)
src\aspnetcore\src\Components\Shared\src\CultureStateProvider.cs (1)
42CultureInfo.CurrentCulture = culture;
Microsoft.AspNetCore.Components.WebAssembly (1)
src\aspnetcore\src\Components\Shared\src\CultureStateProvider.cs (1)
42CultureInfo.CurrentCulture = culture;
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
src\aspnetcore\src\Components\Shared\src\CultureStateProvider.cs (1)
42CultureInfo.CurrentCulture = culture;
Microsoft.AspNetCore.InternalTesting (6)
CultureReplacer.cs (2)
35CultureInfo.CurrentCulture = culture; 75CultureInfo.CurrentCulture = _originalCulture;
ReplaceCulture.cs (2)
59CultureInfo.CurrentCulture = Culture; 65CultureInfo.CurrentCulture = _originalCulture;
UseCultureAttribute.cs (2)
33CultureInfo.CurrentCulture = Culture; 39CultureInfo.CurrentCulture = _originalCulture;
Microsoft.AspNetCore.Localization (1)
RequestLocalizationMiddleware.cs (1)
125CultureInfo.CurrentCulture = requestCulture.Culture;
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (2)
1906CultureInfo.CurrentCulture = _buildParameters.Culture; 1927CultureInfo.CurrentCulture = oldCulture;
BackEnd\Components\Communications\NodeEndpointInProc.cs (1)
370CultureInfo.CurrentCulture = culture;
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
366CultureInfo.CurrentCulture = culture;
BackEnd\Components\Logging\LoggingService.cs (2)
1617CultureInfo.CurrentCulture = _componentHost.BuildParameters.Culture; 1645CultureInfo.CurrentCulture = originalCultureInfo;
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
723CultureInfo.CurrentCulture = _componentHost.BuildParameters.Culture; 993CultureInfo.CurrentCulture = savedCulture;
BackEnd\Node\InProcNode.cs (1)
475CultureInfo.CurrentCulture = configuration.BuildParameters.Culture;
BackEnd\Node\OutOfProcNode.cs (1)
769CultureInfo.CurrentCulture = _buildParameters.Culture;
Microsoft.Data.Analysis.Tests (1)
DataFrame.IOTests.cs (1)
134CultureInfo.CurrentCulture = CultureInfo.InvariantCulture; // or en-US
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (2)
120CultureInfo.CurrentCulture = _culture; 314CultureInfo.CurrentCulture = value;
System.Private.Windows.Core.TestUtilities (2)
ThreadCultureChange.cs (2)
31CultureInfo.CurrentCulture = newCulture; 43CultureInfo.CurrentCulture = _originalCulture;
System.Text.Json.SourceGeneration (4)
JsonSourceGenerator.Roslyn4.0.cs (4)
50CultureInfo.CurrentCulture = CultureInfo.InvariantCulture; 62CultureInfo.CurrentCulture = originalCulture; 107CultureInfo.CurrentCulture = CultureInfo.InvariantCulture; 115CultureInfo.CurrentCulture = originalCulture;
3228 references to CurrentCulture
aspire (301)
Agents\AspireSkills\AspireSkillsBundleProvider.cs (1)
461CultureInfo.CurrentCulture,
Agents\AspireSkills\AspireSkillsInstaller.cs (5)
242CultureInfo.CurrentCulture, 266return AcquisitionResult.Failed(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.AspireSkillsInstaller_InvalidBundle, ex.Message)); 301CultureInfo.CurrentCulture, 363return AcquisitionResult.Failed(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.AspireSkillsInstaller_InvalidBundle, ex.Message)); 377CultureInfo.CurrentCulture,
Agents\DeprecatedMcpCommandScanner.cs (1)
184var description = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.DeprecatedConfigUpdate_Description, location.AgentName);
Agents\McpConfigFileHelper.cs (1)
89string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.MalformedConfigFileError, configFilePath), ex);
Agents\Playwright\PlaywrightCliInstaller.cs (5)
139return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_InvalidVersionOverride, VersionOverrideKey, versionOverride)); 155return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToResolvePackage, NpmPackageInfo.FormatPackageSpecifier(PackageName, effectiveRange))); 204return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToDownload, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version))); 233return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_ProvenanceVerificationFailed, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version), provenanceResult.Outcome)); 249return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToInstallGlobally, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version)));
Backchannel\AppHostCliBackchannel.cs (2)
358string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostIncompatibleWithCli, BaselineCapability), 386string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostIncompatibleWithCli, BaselineCapability),
Backchannel\AppHostConnectionResolver.cs (2)
177ErrorMessage = string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.AppHostNotRunningAtPath, displayPath) 349interactionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.UsingAppHost, selectedDisplay));
Backchannel\ExtensionBackchannel.cs (8)
252throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidSocketPath, endpoint)); 304string.Format(CultureInfo.CurrentCulture, ErrorStrings.ExtensionIncompatibleWithCli, 320string.Format(CultureInfo.CurrentCulture, ErrorStrings.ExtensionIncompatibleWithCli, 524throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 554throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 578throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 604throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 630throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText));
Certificates\CertificateService.cs (2)
104interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, ErrorStrings.CertificateGenerationFailed, generateResult)); 143interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, ErrorStrings.CertificatesMayNotBeFullyTrusted, trustResultCode));
Commands\AddCommand.cs (12)
224var notCompatibleMessage = string.Format(CultureInfo.CurrentCulture, AddCommandStrings.IntegrationNotPolyglotCompatible, integrationName, project.LanguageId); 241InteractionService.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PolyglotIntegrationsHidden, hiddenIntegrationCount)); 260? string.Format(CultureInfo.CurrentCulture, AddCommandStrings.SpecifiedVersionRequiresExactPackageMatch, integrationName) 261: string.Format(CultureInfo.CurrentCulture, AddCommandStrings.NonInteractiveRequiresExactPackageMatch, integrationName); 407return AddCommandFailure(CliExitCodes.FailedToAddPackage, string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageInstallationFailed, CliExitCodes.FailedToAddPackage)); 410InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageAddedSuccessfully, selectedNuGetPackage.Package.Id, selectedNuGetPackage.Package.Version)); 436var errorMessage = string.Format(CultureInfo.CurrentCulture, AddCommandStrings.ErrorOccurredWhileAddingPackage, ex.Message); 500string.Format(CultureInfo.CurrentCulture, AddCommandStrings.SearchingForSpecifiedPackageVersion, selectedPackage.Package.Id, preferredVersion), 508throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.SpecifiedVersionNotFoundForPackage, selectedPackage.Package.Id, preferredVersion)); 587InteractionService.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.NoPackagesMatchedSearchTerm, searchTerm)); 632string.Format(CultureInfo.CurrentCulture, AddCommandStrings.SelectAVersionOfPackage, firstPackage.Package.Id), 725string.Format(CultureInfo.CurrentCulture, AddCommandStrings.SelectAVersionOfPackage, firstPackage.Package.Id),
Commands\AgentInitCommand.cs (8)
455string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.SkippedMalformedConfigFile, combinedMcpApplicator.Description)); 504string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHooksInstalled, clientNames)); 512TelemetryHookSkipReason.MalformedConfig => string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHookSkippedMalformedConfig, clientName), 513TelemetryHookSkipReason.UnexpectedConfigShape => string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHookSkippedUnexpectedShape, clientName), 514_ => string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHookWriteFailed, clientName), 749string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_FailedToInstallSkill, skill.Name, fullSkillDirectoryPath, ex.Message)); 765$" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummarySkills, skillNames)}", 766$" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummaryLocations, locations)}");
Commands\AgentMcpCommand.cs (1)
100return CommandResult.Failure(CliExitCodes.InvalidCommand, string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardUrlInvalid, dashboardUrl));
Commands\ApiGetCommand.cs (1)
59return CommandResult.Failure(CliExitCodes.InvalidCommand, string.Format(CultureInfo.CurrentCulture, ApiCommandStrings.ApiNotFound, id));
Commands\ApiListCommand.cs (2)
61InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ApiCommandStrings.NoApiEntriesFound, scope)); 72InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ApiCommandStrings.FoundApiEntries, items.Count, scope));
Commands\ApiSearchCommand.cs (2)
75InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ApiCommandStrings.NoResultsFound, query)); 86InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ApiCommandStrings.FoundSearchResults, items.Count, query));
Commands\AppHostLauncher.cs (3)
277return string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.LaunchProfileNotSupported, project.DisplayName); 846failureMessage = string.Format(CultureInfo.CurrentCulture, RunCommandStrings.TimeoutWaitingForAppHost, timeoutSeconds, CliConfigNames.AppHostStartupTimeout); 961_ => string.Format(CultureInfo.CurrentCulture, RunCommandStrings.AppHostExitedWithCode, childExitCode)
Commands\AppHostStartupTimeout.cs (1)
32CultureInfo.CurrentCulture,
Commands\BaseCommand.cs (4)
193var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message); 223string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, MarkupHelpers.SafeFileLink(InteractionService, _executionContext.LogFilePath)), 233string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeAppHostLogsAt, MarkupHelpers.SafeFileLink(InteractionService, ExecutionContext.AppHostCliLogFilePath)), 317result.AddError(string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.NonInteractiveRequiresYesFormat, command.Name));
Commands\CacheCommand.cs (1)
67var errorMessage = string.Format(CultureInfo.CurrentCulture, CacheCommandStrings.CacheClearFailed, ex.Message);
Commands\CertificatesCleanCommand.cs (1)
43var details = string.Format(CultureInfo.CurrentCulture, CertificatesCommandStrings.CleanFailureDetailsFormat, result.ErrorMessage);
Commands\CertificatesTrustCommand.cs (1)
52var details = string.Format(CultureInfo.CurrentCulture, CertificatesCommandStrings.TrustFailureDetailsFormat, result.ResultCode);
Commands\ConfigCommand.cs (9)
103InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 182? string.Format(CultureInfo.CurrentCulture, ConfigCommandStrings.ConfigurationKeySetGlobally, key, 184: string.Format(CultureInfo.CurrentCulture, ConfigCommandStrings.ConfigurationKeySetLocally, key, 191var errorMessage = string.Format(CultureInfo.CurrentCulture, ErrorStrings.ErrorSettingConfiguration, ex.Message); 389InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 412InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ConfigCommandStrings.ConfigurationKeyDeletedGlobally, key)); 416InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ConfigCommandStrings.ConfigurationKeyDeletedLocally, key)); 423InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 429var errorMessage = string.Format(CultureInfo.CurrentCulture, ErrorStrings.ErrorDeletingConfiguration, ex.Message);
Commands\DashboardRunCommand.cs (2)
325_ => string.Format(CultureInfo.CurrentCulture, DashboardCommandStrings.DashboardExitedWithError, exitCode), 408InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DashboardCommandStrings.DashboardFailedToStart, ex.Message));
Commands\DescribeCommand.cs (2)
134string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, DescribeCommandStrings.SelectAppHostAction), 203InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DescribeCommandStrings.ResourceNotFound, resourceName));
Commands\DocsGetCommand.cs (1)
68return CommandResult.Failure(CliExitCodes.InvalidCommand, string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.DocumentNotFound, slug));
Commands\DocsListCommand.cs (1)
67InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.FoundDocumentationPages, docs.Count));
Commands\DocsSearchCommand.cs (2)
70InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.NoResultsFound, query)); 82InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.FoundSearchResults, response.Results.Count, query));
Commands\DoctorCommand.cs (2)
154_ansiConsole.MarkupLine($"[bold]{string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.SummaryFormat, passed, warnings, failed)}[/]"); 160_ansiConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DetailedPrerequisitesLink, MarkupHelpers.SafeLink(InteractionService, prerequisitesUrl)));
Commands\ExportCommand.cs (3)
130return CommandResult.Failure(CliExitCodes.DashboardFailure, string.Format(CultureInfo.CurrentCulture, ExportCommandStrings.FailedToExport, ex.Message)); 169InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ExportCommandStrings.ResourceNotFound, resourceName)); 227InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, ExportCommandStrings.ExportComplete, fullPath));
Commands\InitCommand.cs (14)
221string.Format(CultureInfo.CurrentCulture, InitCommandStrings.DeprecatedOptionWarning, optionName)); 278InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FileAlreadyExistsSkipping, "apphost.cs")); 301InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, "apphost.cs")); 379InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FileAlreadyExistsSkipping, $"{appHostDirName}/")); 451InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.TemplateInstallationFailed, installOutcome.ExitCode)); 472InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FailedToCreateAppHostFromTemplate, result)); 476InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, $"{appHostDirName}/")); 491InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FileAlreadyExistsSkipping, existingAppHostFileName)); 499InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FileAlreadyExistsSkipping, displayPath)); 528InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, displayPath)); 554InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FailedToParseExistingConfig, AspireConfigFile.FileName, configPath, ex.Message)); 555InteractionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FixOrRemoveConfigAndRerun, AspireConfigFile.FileName)); 649InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, AspireConfigFile.FileName)); 843InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, fileName));
Commands\InstallationInfoOutput.cs (1)
52CultureInfo.CurrentCulture,
Commands\IntegrationSearchCommand.cs (5)
127InteractionService.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PolyglotIntegrationsHidden, hiddenIntegrationCount)); 143var errorMessage = string.Format(CultureInfo.CurrentCulture, AddCommandStrings.ErrorOccurredWhileSearchingIntegrations, ex.Message); 188InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.NoIntegrationPackagesMatchedSearchTerm, searchTerm)); 200InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.FoundIntegrationPackagesMatchingSearchTerm, results.Length, searchTerm)); 204InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.FoundIntegrationPackages, results.Length));
Commands\LogsCommand.cs (2)
161string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, LogsCommandStrings.SelectAppHostAction), 185return CommandResult.Failure(CliExitCodes.InvalidCommand, string.Format(CultureInfo.CurrentCulture, LogsCommandStrings.ResourceNotFound, resourceName));
Commands\LsCommand.cs (1)
254return string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.LsSearchingForAppHostsStatus, directoriesSearched, appHostsFound);
Commands\McpCallCommand.cs (1)
62string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, "call MCP tool on"),
Commands\McpToolsCommand.cs (1)
48string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, "list MCP tools for"),
Commands\NewCommand.cs (5)
324InteractionService.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NonInteractiveAvailableValues, templateNames)); 423CultureInfo.CurrentCulture, 466CultureInfo.CurrentCulture, 489CultureInfo.CurrentCulture, 509CultureInfo.CurrentCulture,
Commands\ParseResultHelper.cs (1)
375return string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.UnrecognizedOptionDidYouMeanFormat, optionName, correctName);
Commands\PipelineCommandBase.cs (3)
453var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message); 466var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.AppHostConnectionLost, ex.Message); 479var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message);
Commands\ResourceCommand.cs (8)
103result.AddError(string.Format(CultureInfo.CurrentCulture, ResourceCommandStrings.ArgumentRequired, s_resourceArgument.Name)); 110result.AddError(string.Format(CultureInfo.CurrentCulture, ResourceCommandStrings.ArgumentRequired, s_commandArgument.Name)); 133string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, ResourceCommandStrings.SelectAppHostAction), 620string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, ResourceCommandStrings.SelectAppHostAction), 762string.Format(CultureInfo.CurrentCulture, ResourceCommandStrings.CommandSpecificHelpUsageSyntax, resourceName, command.Name)); 880parts.Add(string.Format(CultureInfo.CurrentCulture, ResourceCommandStrings.CommandSpecificHelpAllowedValues, string.Join(", ", options.Keys))); 885parts.Add(string.Format(CultureInfo.CurrentCulture, ResourceCommandStrings.CommandSpecificHelpDefaultValue, value)); 894parts.Add(string.Format(CultureInfo.CurrentCulture, ResourceCommandStrings.CommandSpecificHelpDelimiterHint, optionName, valuePlaceholder));
Commands\RestoreCommand.cs (4)
106string.Format(CultureInfo.CurrentCulture, RestoreCommandStrings.RestoreSucceeded, AspireConfigFile.FileName)); 143string.Format(CultureInfo.CurrentCulture, RestoreCommandStrings.RestoreSucceeded, effectiveAppHostFile.Name)); 163string.Format(CultureInfo.CurrentCulture, RestoreCommandStrings.RestoreSucceeded, effectiveAppHostFile.Name)); 182var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message);
Commands\RunCommand.cs (7)
226extensionInteractionService.DisplayConsolePlainText(string.Format(CultureInfo.CurrentCulture, startDebugSession ? RunCommandStrings.StartingDebugSessionInExtension : RunCommandStrings.StartingRunSessionInExtension, "run")); 632var errorMessage = string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message); 644var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message); 660var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message); 819? string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, faultException.Message) 851var failureMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message); 1294string.Format(CultureInfo.CurrentCulture, RunCommandStrings.TimeoutWaitingForAppHost, timeoutSeconds, CliConfigNames.AppHostStartupTimeout));
Commands\SecretDeleteCommand.cs (2)
49return CommandResult.Failure(CliExitCodes.ConfigNotFound, string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretNotFound, key.EscapeMarkup())); 53InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretDeleteSuccess, key));
Commands\SecretGetCommand.cs (1)
51return CommandResult.Failure(CliExitCodes.ConfigNotFound, string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretNotFound, key.EscapeMarkup()));
Commands\SecretSetCommand.cs (1)
58InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretSetSuccess, key));
Commands\StartCommand.cs (1)
87extensionInteractionService.DisplayConsolePlainText(string.Format(CultureInfo.CurrentCulture, startDebugSession ? RunCommandStrings.StartingDebugSessionInExtension : RunCommandStrings.StartingRunSessionInExtension, "start"));
Commands\StopCommand.cs (14)
263string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, StopCommandStrings.SelectAppHostAction), 297InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.AppHostNotRunningAtPath, displayPath)); 318InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.AppHostNotRunningAtPath, displayPath)); 352string.Format(CultureInfo.CurrentCulture, StopCommandStrings.CleaningPersistentResources, appHostDisplayPath), 367InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.DcpCleanupFailed, appHostDisplayPath, details)); 371InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.PersistentResourcesCleaned, appHostDisplayPath)); 409CultureInfo.CurrentCulture, 497InteractionService.DisplayMessage(KnownEmojis.Package, string.Format(CultureInfo.CurrentCulture, StopCommandStrings.FoundRunningAppHost, appHostIdentifier)); 500InteractionService.DisplayMessage(KnownEmojis.StopSign, string.Format(CultureInfo.CurrentCulture, StopCommandStrings.SendingStopSignal, appHostIdentifier)); 503string.Format(CultureInfo.CurrentCulture, StopCommandStrings.StoppingAppHost, appHostIdentifier), 517InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.AppHostStoppedSuccessfully, appHostIdentifier)); 522InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.FailedToStopAppHost, appHostIdentifier)); 572? string.Format(CultureInfo.CurrentCulture, StopCommandStrings.DcpCleanupExitCode, cleanupResult.ExitCode) 593? string.Format(CultureInfo.CurrentCulture, StopCommandStrings.AppHostIdentifierWithProcessId, displayPath, appHostInfo.ProcessId)
Commands\TelemetryCommandHelpers.cs (9)
223string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardUrlInvalid, dashboardUrl), 239string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardConnectionFailed, displayDashboardUrl), 242string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardApiNotEnabled, displayDashboardUrl), 263string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, TelemetryCommandStrings.SelectAppHostAction), 354return new TelemetryErrorInfo(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.FailedToFetchTelemetry, ex.Message)); 384string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardApiNotEnabled, dashboardBaseUrl), 395string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardUrlNotReachable, dashboardBaseUrl), 403string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardConnectionFailed, dashboardBaseUrl), 407return new TelemetryErrorInfo(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.FailedToFetchTelemetry, ex.Message));
Commands\TelemetryTracesCommand.cs (1)
141InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.TraceNotFound, traceId));
Commands\TerminalAttachCommand.cs (12)
93string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, "attach a terminal"), 118_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, 136_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, 152string.Format(CultureInfo.CurrentCulture, 160string.Format(CultureInfo.CurrentCulture, 194_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, 203string.Format(CultureInfo.CurrentCulture, 221_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, 238_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, 246string.Format(CultureInfo.CurrentCulture, "Select a replica of '{0}' to attach to:", canonicalName), 249? string.Format(CultureInfo.CurrentCulture, "{0} (running)", r.Label) 250: string.Format(CultureInfo.CurrentCulture, "{0} (exited code={1})", r.Label, r.ExitCode?.ToString(CultureInfo.InvariantCulture) ?? "unknown"),
Commands\TerminalPsCommand.cs (1)
88string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, "list terminals"),
Commands\UpdateCommand.cs (3)
273CultureInfo.CurrentCulture, 698string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NonInteractiveOptionRequired, channelOptionDisplayName)); 870string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.NoWritePermissionToInstallDirectory, installDir));
Commands\WaitCommand.cs (7)
70return CommandResult.Failure(CliExitCodes.InvalidCommand, string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.InvalidStatusValue, status)); 83string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, WaitCommandStrings.SelectAppHostAction), 111string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.WaitingForResource, resourceName, statusLabel), 123InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceNotFound, resourceName)); 129InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.WaitTimedOut, resourceName, statusLabel, timeoutSeconds)); 134InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceEnteredFailedState, resourceName, response.State ?? response.ErrorMessage)); 144InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceReachedTargetStatus, resourceName, statusLabel, elapsed.TotalSeconds));
Configuration\AspireConfigFile.cs (1)
147string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidJsonInConfigFile, filePath, ex.Message),
Configuration\ConfigurationService.cs (1)
479string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidJsonInConfigFile, filePath, ex.Message),
Diagnostics\StartupErrorWriter.cs (1)
69CultureInfo.CurrentCulture,
Interaction\BannerService.cs (1)
61var versionText = string.Format(CultureInfo.CurrentCulture, RootCommandStrings.BannerVersionFormat, cliVersion);
Interaction\ConsoleInteractionService.cs (10)
319throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText)); 390throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText)); 488MessageConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ToUpdateRunCommand, updateCommand.EscapeMarkup())); 755_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NewCliVersionAvailable, newerVersion.EscapeMarkup())); 759_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ToUpdateRunCommand, updateCommand.EscapeMarkup())); 762_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.MoreInfoNewCliVersion, MarkupHelpers.SafeLink(this, UpdateUrl))); 805DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NonInteractiveOptionRequired, symbolDisplayName)); 821DisplayError(result.Message ?? string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NonInteractiveInvalidValue, value, symbolDisplayName)); 830DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NonInteractiveInvalidValue, value, symbolDisplayName)); 836DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NonInteractiveAvailableValues, availableChoices));
Migrations\TypeScriptAppHostMigration.cs (3)
74CultureInfo.CurrentCulture, 79CultureInfo.CurrentCulture, 113CultureInfo.CurrentCulture,
NuGet\BundleNuGetPackageCache.cs (1)
215throw new NuGetPackageCacheException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.FailedToSearchForPackages, exitCode));
NuGet\NuGetPackageCache.cs (2)
144throw new NuGetPackageCacheException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.FailedToSearchForPackages, result.ExitCode)); 210throw new NuGetPackageCacheException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.FailedToSearchForPackages, result.ExitCode));
Packaging\PackagingService.cs (3)
516CultureInfo.CurrentCulture, 684CultureInfo.CurrentCulture, 719CultureInfo.CurrentCulture,
Profiling\ProfileCaptureService.cs (3)
120throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, DashboardCommandStrings.DashboardFailedToStart, ex.Message), ex); 281throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, DashboardCommandStrings.DashboardExitedWithError, exitCode)); 346string.Format(CultureInfo.CurrentCulture, ExportCommandStrings.ExportComplete, MarkupHelpers.SafeFileLink(_interactionService, _options.OutputPath)),
Program.cs (8)
205CultureInfo.CurrentCulture, 785errorMessage = string.Format(CultureInfo.CurrentCulture, ErrorStrings.UnsupportedLocaleProvided, localeOverride, string.Join(", ", LocaleHelpers.SupportedLocales)); 788errorMessage = string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidLocaleProvided, localeOverride); 845consoleEnvironment.Error.MarkupLine(string.Format(CultureInfo.CurrentCulture, RootCommandStrings.FirstTimeUseTelemetryNotice, MarkupHelpers.SafeLink(interactionService, telemetryUrl))); 871CultureInfo.CurrentCulture, 1213errorWriter.WriteLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message)); 1253errorWriter.WriteLine(string.Format(CultureInfo.CurrentCulture, ExportCommandStrings.FailedToExport, ex.Message)); 1317string.Format(CultureInfo.CurrentCulture, RootCommandStrings.WaitingForDebugger, Environment.ProcessId),
Projects\GuestAppHostProject.cs (2)
1792System.Globalization.CultureInfo.CurrentCulture, 1848System.Globalization.CultureInfo.CurrentCulture,
Projects\PrebuiltAppHostServer.cs (1)
699CultureInfo.CurrentCulture,
Projects\ProjectLocator.cs (13)
413interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectFileUnsupportedInCurrentEnvironment, relativePath)); 427interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectFileMayBeUnbuildableAppHost, relativePath)); 512interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectFileUnsupportedInCurrentEnvironment, relativePath)); 537interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectFileMayBeUnbuildableAppHost, settingsAppHostRelativePath)); 548interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectFileUnsupportedInCurrentEnvironment, settingsAppHostRelativePath)); 733interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostWasSpecifiedButDoesntExist, configFilePath, qualifiedPath)); 793interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostWasSpecifiedButDoesntExist, settingsFile.FullName, qualifiedAppHostPath)); 802var message = string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidJsonInConfigFile, settingsFile.FullName, ex.Message); 821var message = string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationFileMustBeJsonObject, configFilePath); 834var message = string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfiguredAppHostPathMustBeString, configFilePath, fieldName); 869interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfiguredAppHostPathHasInvalidCharacters, configFilePath, fieldName)); 1293interactionService.DisplayMessage(KnownEmojis.FloppyDisk, string.Format(CultureInfo.CurrentCulture, message, $"[bold]'{relativeSettingsFilePath.EscapeMarkup()}'[/]"), allowMarkup: true); 1428_ => (CliExitCodes.FailedToFindProject, string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message))
src\Shared\FormatHelpers.cs (3)
46cultureInfo ??= CultureInfo.CurrentCulture; 56cultureInfo ??= CultureInfo.CurrentCulture; 104return value.ToString(formatString, provider ?? CultureInfo.CurrentCulture);
Templating\CliTemplateFactory.cs (1)
389_interactionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, TemplatingStrings.RunCdThenAspireRun, relativePath));
Templating\DotNetTemplateFactory.cs (6)
356interactionService.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, TemplatingStrings.PromptForTFM_UsingForTesting, testFramework)); 487interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.TemplateInstallationFailed, installOutcome.ExitCode)); 491interactionService.DisplayMessage(KnownEmojis.Package, string.Format(CultureInfo.CurrentCulture, TemplatingStrings.UsingProjectTemplatesVersion, installOutcome.TemplateVersion)); 526interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.ProjectCreationFailed, newProjectExitCode)); 563interactionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.ProjectCreatedSuccessfully, outputPath)); 573interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message));
Templating\OutputPathHelper.cs (3)
102var subdirectoryChoice = string.Format(CultureInfo.CurrentCulture, NewCommandStrings.CreateProjectNameSubdirectoryChoice, projectName); 131return string.Format(CultureInfo.CurrentCulture, NewCommandStrings.OutputPathContainsInvalidCharacters, path); 138return string.Format(CultureInfo.CurrentCulture, format, fullPath);
Templating\TemplateNuGetConfigService.cs (2)
335CultureInfo.CurrentCulture, 356CultureInfo.CurrentCulture,
Utils\AppHostHelper.cs (2)
46interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectCouldNotBeAnalyzed, logFilePath)); 65interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.AspireSDKVersionNotSupported, aspireHostingVersion));
Utils\ConfigurationHelper.cs (1)
278string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidJsonInConfigFile, filePath, ex.Message),
Utils\ConsoleActivityLogger.cs (10)
108WriteLine(taskKey, InProgressSymbol, startingMessage ?? string.Format(CultureInfo.CurrentCulture, ConsoleActivityLoggerStrings.ActivityStartingWithName, displayName), ActivityState.InProgress); 291? string.Format(CultureInfo.CurrentCulture, ConsoleActivityLoggerStrings.SummaryStepsSucceededWithTotal, succeededSteps, totalSteps) 292: string.Format(CultureInfo.CurrentCulture, ConsoleActivityLoggerStrings.SummaryStepsSucceeded, succeededSteps); 299? string.Format(CultureInfo.CurrentCulture, ConsoleActivityLoggerStrings.SummaryWarningsSingular, warningSteps) 300: string.Format(CultureInfo.CurrentCulture, ConsoleActivityLoggerStrings.SummaryWarningsPlural, warningSteps); 305summaryParts.Add($"[red]{ConsoleHelpers.FormatEmojiPrefix(KnownEmojis.CrossMark, _console, suppressColor: true)}{string.Format(CultureInfo.CurrentCulture, ConsoleActivityLoggerStrings.SummaryFailed, failedSteps)}[/]"); 314? string.Format(CultureInfo.CurrentCulture, ConsoleActivityLoggerStrings.SummaryWarningsSingular, warningSteps) 315: string.Format(CultureInfo.CurrentCulture, ConsoleActivityLoggerStrings.SummaryWarningsPlural, warningSteps); 320summaryParts.Add($"{FailureSymbol} {string.Format(CultureInfo.CurrentCulture, ConsoleActivityLoggerStrings.SummaryFailed, failedSteps)}"); 323summaryParts.Add(string.Format(CultureInfo.CurrentCulture, ConsoleActivityLoggerStrings.SummaryTotalTime, DurationFormatter.FormatDuration(TimeSpan.FromSeconds(totalSeconds), CultureInfo.InvariantCulture, DecimalDurationDisplay.Fixed)));
Utils\EnvironmentChecker\AspireVersionCheck.cs (7)
119CultureInfo.CurrentCulture, 123Fix = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.CliVersionOutOfDateFixFormat, status.UpdateCommand ?? "aspire update"), 160CultureInfo.CurrentCulture, 178return version + string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.ChannelSuffixFormat, channel); 195return message + string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.ChannelSuffixFormat, channel); 291string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.AppHostVersionUnknownMessageFormat, relativePath), 309CultureInfo.CurrentCulture,
Utils\EnvironmentChecker\DcpConnectionChecker.cs (4)
69CultureInfo.CurrentCulture, 90CultureInfo.CurrentCulture, 107details: string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DcpTlsAuthenticationFailedDetailsFormat, ex.Message), 389CultureInfo.CurrentCulture,
Utils\EnvironmentChecker\DcpConnectionHealthCheck.cs (1)
55Details = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DcpExecutableNotFoundDetailsFormat, dcpExecutablePath)
Utils\EnvironmentChecker\DeprecatedAgentConfigCheck.cs (1)
70Message = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.DeprecatedConfigWarning, location.AgentName),
Utils\EnvironmentChecker\DevCertsCheck.cs (14)
121Message = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsMultipleNoneTrustedMessageFormat, certInfos.Count), 122Details = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsMultipleNoneTrustedDetailsFormat, certDetails), 135Message = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsMultipleSomeUntrustedMessageFormat, certInfos.Count), 136Details = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsMultipleSomeUntrustedDetailsFormat, certDetails), 165Details = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsNotTrustedDetailsFormat, cert.Thumbprint ?? "unknown"), 181Details = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsPartiallyTrustedDetailsFormat, devCertsTrustPath), 182Fix = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsPartiallyTrustedFixFormat, BuildSslCertDirFixCommand(devCertsTrustPath, environment)), 209Message = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsOldVersionMessageFormat, versions), 210Details = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsOldVersionDetailsFormat, CertificateManager.CurrentMinimumAspNetCoreCertificateVersion), 281string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsOpenSslCacheMissingDetailsFormat, trustPath, string.Join(", ", trustedThumbprints)), 327string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsOpenSslCacheUnreadableFilesDetailsFormat, trustPath, string.Join(", ", unreadableFiles)), 335string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsOpenSslCacheMissingDetailsFormat, trustPath, string.Join(", ", mismatchedThumbprints)), 343string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsOpenSslCacheMissingDetailsFormat, trustPath, string.Join(", ", missingTrustedThumbprints)), 351string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsOpenSslCacheMissingHashLinkDetailsFormat, trustPath, string.Join(", ", missingHashLinkThumbprints)),
Utils\EnvironmentChecker\EnvironmentChecker.cs (2)
95string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.EnvironmentChecksTimedOutMessageFormat, _totalTimeout.TotalSeconds), 109string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.EnvironmentCheckTimedOutMessageFormat, checkName, _checkTimeout.TotalSeconds),
Utils\EnvironmentChecker\LegacySettingsFileCheck.cs (1)
56Message = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.LegacySettingsDetectedMessageFormat, legacySettingsPath),
Utils\EnvironmentChecker\OperatingSystemCheck.cs (1)
47CultureInfo.CurrentCulture,
Utils\MissingJavaScriptToolWarning.cs (1)
37return string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectFilesCreatedButNodeToolsNotFound, installCommand, installDisplayName);
Aspire.Cli.EndToEnd.Tests (1)
Helpers\CliE2EAutomatorHelpers.cs (1)
178var formattedMessage = string.Format(CultureInfo.CurrentCulture, StopCommandStrings.AppHostStoppedSuccessfully, appHostMarker);
Aspire.Cli.Tests (63)
Backchannel\AppHostConnectionResolverTests.cs (2)
56string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("TestAppHost", "TestAppHost.csproj")), 90string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("TestAppHost", "TestAppHost.csproj")),
Certificates\CertificateServiceTests.cs (1)
618var expectedMessage = string.Format(System.Globalization.CultureInfo.CurrentCulture, ErrorStrings.CertificateGenerationFailed, EnsureCertificateResult.ErrorCreatingTheCertificate);
CliBootstrapTests.cs (1)
236var expectedStatus = string.Format(CultureInfo.CurrentCulture, RootCommandStrings.WaitingForDebugger, Environment.ProcessId);
Commands\AgentInitCommandTests.cs (4)
52$" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummarySkills, CommonAgentApplicators.AspireSkillName)}", 53$" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummaryLocations, ".agents/skills, ~/.agents/skills")}"); 87CultureInfo.CurrentCulture, 90$" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummaryLocations, ".agents/skills, ~/.agents/skills")}");
Commands\AppHostLauncherTests.cs (1)
679error => Assert.Equal(string.Format(CultureInfo.CurrentCulture, RunCommandStrings.AppHostExitedWithCode, 11), error));
Commands\BaseCommandTests.cs (9)
250var expectedLogMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, executionContext.LogFilePath); 287var expectedCliLogMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, executionContext.LogFilePath); 288var expectedAppHostLogMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeAppHostLogsAt, "/tmp/aspire-logs/apphost.log"); 410var expectedErrorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, "Something went wrong"); 415var expectedLogMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, executionContext.LogFilePath); 536var expectedError = string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.UnrecognizedOptionDidYouMeanFormat, badOption, correctOption); 594var expectedError = string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.UnrecognizedOptionDidYouMeanFormat, optionName, "--apphost"); 685var expectedError = string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.UnrecognizedOptionDidYouMeanFormat, "--AppHost", "--apphost"); 725var expectedError = string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.UnrecognizedOptionDidYouMeanFormat, "--AppHost", "--apphost");
Commands\DashboardRunCommandTests.cs (1)
381var expectedMessage = string.Format(CultureInfo.CurrentCulture, DashboardCommandStrings.DashboardFailedToStart, $"Failed to start process: {managedPath}");
Commands\DestroyCommandTests.cs (1)
157Assert.Equal(string.Format(System.Globalization.CultureInfo.CurrentCulture, SharedCommandStrings.NonInteractiveRequiresYesFormat, "destroy"), error.Message);
Commands\NewCommandChannelResolutionTests.cs (1)
221CultureInfo.CurrentCulture,
Commands\NewCommandTests.cs (5)
2593var expectedMessage = string.Format(CultureInfo.CurrentCulture, TemplatingStrings.ProjectCreationFailed, 1, executionContext.LogFilePath); 3072CultureInfo.CurrentCulture, 3380var expectedError = string.Format(CultureInfo.CurrentCulture, NewCommandStrings.OutputDirectoryNotEmptyNonInteractive, existingDir.FullName); 3462var expectedError = string.Format(CultureInfo.CurrentCulture, NewCommandStrings.OutputPathContainsInvalidCharacters, invalidPath); 3519var expectedMessage = string.Format(CultureInfo.CurrentCulture, NewCommandStrings.OutputPathContainsInvalidCharacters, invalidPath);
Commands\ResourceCommandTests.cs (2)
1236var expectedCliLogMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, executionContext.LogFilePath); 1237var expectedAppHostLogMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeAppHostLogsAt, "/tmp/aspire-logs/cli_apphost_20260516.log");
Commands\RunCommandTests.cs (6)
104string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.LaunchProfileNotSupported, projectFactory.DisplayName), 148string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.LaunchProfileNotSupported, projectFactory.DisplayName), 302string.Format(CultureInfo.CurrentCulture, RunCommandStrings.InvalidAppHostStartupTimeoutEnvironmentVariable, CliConfigNames.AppHostStartupTimeout), 357string.Format(CultureInfo.CurrentCulture, RunCommandStrings.TimeoutWaitingForAppHost, 1, CliConfigNames.AppHostStartupTimeout), 759string.Format(CultureInfo.CurrentCulture, RunCommandStrings.TimeoutWaitingForAppHost, 2, CliConfigNames.AppHostStartupTimeout), 1878CultureInfo.CurrentCulture,
Commands\StartCommandTests.cs (4)
161string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.LaunchProfileNotSupported, projectFactory.DisplayName), 187string.Format(CultureInfo.CurrentCulture, RunCommandStrings.InvalidAppHostStartupTimeoutEnvironmentVariable, CliConfigNames.AppHostStartupTimeout), 367var expectedCliLogMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, executionContext.LogFilePath); 374var expectedAppHostLogMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeAppHostLogsAt, executionContext.AppHostCliLogFilePath);
Commands\StopCommandTests.cs (10)
181var expectedIdentifier1 = string.Format(CultureInfo.CurrentCulture, StopCommandStrings.AppHostIdentifierWithProcessId, expectedPath, processId1); 182var expectedIdentifier2 = string.Format(CultureInfo.CurrentCulture, StopCommandStrings.AppHostIdentifierWithProcessId, expectedPath, processId2); 217Assert.Contains(statusMessages, message => message == string.Format(CultureInfo.CurrentCulture, StopCommandStrings.StoppingAppHost, expectedPath)); 218Assert.Contains(interactionService.DisplayedSuccess, message => message == string.Format(CultureInfo.CurrentCulture, StopCommandStrings.AppHostStoppedSuccessfully, expectedPath)); 269Assert.Contains(statusMessages, message => message == string.Format(CultureInfo.CurrentCulture, StopCommandStrings.StoppingAppHost, expectedPath)); 385message => Assert.Equal(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.FoundRunningAppHost, appHostPath), message), 386message => Assert.Equal(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.SendingStopSignal, appHostPath), message)); 387Assert.Contains(statusMessages, message => message == string.Format(CultureInfo.CurrentCulture, StopCommandStrings.StoppingAppHost, appHostPath)); 499Assert.Contains(interactionService.DisplayedSuccess, message => message == string.Format(CultureInfo.CurrentCulture, StopCommandStrings.PersistentResourcesCleaned, appHostFile.Name)); 580CultureInfo.CurrentCulture,
Commands\TelemetryCommandTests.cs (4)
363nameof(TelemetryCommandStrings.DashboardApiNotEnabled) => string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardApiNotEnabled, "http://localhost:18888"), 364nameof(TelemetryCommandStrings.DashboardUrlNotReachable) => string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardUrlNotReachable, "http://localhost:18888"), 365nameof(TelemetryCommandStrings.DashboardConnectionFailed) => string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardConnectionFailed, "http://localhost:18888"), 366nameof(TelemetryCommandStrings.FailedToFetchTelemetry) => string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.FailedToFetchTelemetry,
Commands\TelemetryLogsCommandTests.cs (5)
322Assert.Equal(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardUrlInvalid, "not-a-url"), errorMessage); 403Assert.Equal(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardApiNotEnabled, "http://localhost:18888"), errorMessage); 442Assert.Equal(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardConnectionFailed, "http://localhost:18888"), errorMessage); 472Assert.Equal(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardConnectionFailed, "http://localhost:18888"), errorMessage); 512Assert.Equal(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardApiNotEnabled, "http://localhost:18888"), errorMessage);
Commands\TelemetrySpansCommandTests.cs (1)
300Assert.Equal(string.Format(System.Globalization.CultureInfo.CurrentCulture, TelemetryCommandStrings.DashboardApiNotEnabled, "http://localhost:18888"), errorMessage);
Commands\UpdateCommandTests.cs (1)
77Assert.Equal(string.Format(System.Globalization.CultureInfo.CurrentCulture, SharedCommandStrings.NonInteractiveRequiresYesFormat, "update"), error.Message);
Interaction\ExtensionInteractionServiceTests.cs (1)
52string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, fileLinkMarkup),
Projects\GuestAppHostProjectTests.cs (1)
1401System.Globalization.CultureInfo.CurrentCulture,
Templating\TemplateNuGetConfigServiceTests.cs (2)
710CultureInfo.CurrentCulture, 866CultureInfo.CurrentCulture,
Aspire.Dashboard (19)
Components\Controls\Chart\ChartBase.cs (1)
125return $"<b>{HttpUtility.HtmlEncode(InstrumentViewModel.Instrument?.Name)}</b><br />{HttpUtility.HtmlEncode(name)}: {FormatHelpers.FormatNumberWithOptionalDecimalPlaces(yValue, maxDecimalPlaces: 6, CultureInfo.CurrentCulture)}<br />Time: {FormatHelpers.FormatTime(TimeProvider, TimeProvider.ToLocal(xValue))}";
Components\Controls\Chart\MetricTable.razor.cs (1)
328return value is null ? string.Empty : value.Value.ToString("F3", CultureInfo.CurrentCulture);
Components\Controls\Chart\PlotlyChart.razor.cs (1)
46var formattedValue = FormatHelpers.FormatNumberWithOptionalDecimalPlaces(yValue, maxDecimalPlaces: 3, CultureInfo.CurrentCulture);
Components\Controls\ResourceDetails.razor.cs (1)
493var formattedDuration = DurationFormatter.FormatDuration(roundedDuration, System.Globalization.CultureInfo.CurrentCulture);
Components\Dialogs\AIAgentsDialog.razor.cs (2)
37? string.Format(CultureInfo.CurrentCulture, Loc[nameof(DialogsLoc.AIAgentsDialogAppHostDescription)], AppHostLearnMoreUrl, InstallCliUrl) 38: string.Format(CultureInfo.CurrentCulture, Loc[nameof(DialogsLoc.AIAgentsDialogStandaloneDescription)], GetDashboardUrl(), StandaloneLearnMoreUrl, InstallCliUrl);
Components\Dialogs\ExemplarsDialog.razor.cs (1)
67var formattedValue = value.Value.ToString("F3", CultureInfo.CurrentCulture);
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
239fileReferences.Add(new FileReferenceViewModel { Name = file.Name, ErrorMessage = string.Format(CultureInfo.CurrentCulture, Loc[nameof(Resources.Dialogs.InteractionFileExceedsMaxSize)], FormatHelpers.FormatFileSize(maxFileSize)) });
Components\Pages\Metrics.razor.cs (1)
250CultureInfo.CurrentCulture,
Components\Pages\StructuredLogs.razor.cs (1)
441CultureInfo.CurrentCulture,
Components\Pages\Traces.razor.cs (1)
290CultureInfo.CurrentCulture,
Model\DefaultInstrumentUnitResolver.cs (1)
53value = value.ToLower(CultureInfo.CurrentCulture);
Model\ResourceViewModel.cs (1)
415value = FormatHelpers.FormatDateTime(_browserTimeProvider, date, cultureInfo: CultureInfo.CurrentCulture);
Otlp\Model\OtlpSpanEvent.cs (1)
22string IPropertyGridItem.Name => DurationFormatter.FormatDuration(Time - span.StartTime, CultureInfo.CurrentCulture);
src\Shared\ConsoleLogs\LogPauseViewModel.cs (2)
33CultureInfo.CurrentCulture, 38CultureInfo.CurrentCulture,
src\Shared\FormatHelpers.cs (3)
46cultureInfo ??= CultureInfo.CurrentCulture; 56cultureInfo ??= CultureInfo.CurrentCulture; 104return value.ToString(formatString, provider ?? CultureInfo.CurrentCulture);
Aspire.Dashboard.Components.Tests (5)
UseCultureAttribute.cs (5)
11/// <see cref="Thread.CurrentThread" /> <see cref="CultureInfo.CurrentCulture" /> and 61/// <see cref="CultureInfo.CurrentCulture" /> and <see cref="CultureInfo.CurrentUICulture" /> 74CultureInfo.CurrentCulture.ClearCachedData(); 79/// Restores the original <see cref="CultureInfo.CurrentCulture" /> and 89CultureInfo.CurrentCulture.ClearCachedData();
Aspire.Dashboard.Tests (17)
DurationFormatterTests.cs (16)
32Assert.Equal("1μs", DurationFormatter.FormatDuration(TimeSpan.FromTicks(1 * TimeSpan.TicksPerMicrosecond), CultureInfo.CurrentCulture)); 39Assert.Equal("10d 14h", DurationFormatter.FormatDuration(TimeSpan.FromTicks(input), CultureInfo.CurrentCulture)); 46Assert.Equal("2d", DurationFormatter.FormatDuration(TimeSpan.FromTicks(input), CultureInfo.CurrentCulture)); 53Assert.Equal(2.36m.ToString("0.##ms", CultureInfo.CurrentCulture), DurationFormatter.FormatDuration(TimeSpan.FromTicks(input), CultureInfo.CurrentCulture)); 60Assert.Equal(2.36m.ToString("0.##s", CultureInfo.CurrentCulture), DurationFormatter.FormatDuration(TimeSpan.FromTicks(input), CultureInfo.CurrentCulture)); 67Assert.Equal("2m 31s", DurationFormatter.FormatDuration(TimeSpan.FromTicks(input), CultureInfo.CurrentCulture)); 74Assert.Equal("2h 31m", DurationFormatter.FormatDuration(TimeSpan.FromTicks(input), CultureInfo.CurrentCulture)); 81Assert.Equal(0.92m.ToString("0.##ms", CultureInfo.CurrentCulture), DurationFormatter.FormatDuration(TimeSpan.FromTicks(input), CultureInfo.CurrentCulture)); 88Assert.Equal(0.92m.ToString("0.##s", CultureInfo.CurrentCulture), DurationFormatter.FormatDuration(TimeSpan.FromTicks(input), CultureInfo.CurrentCulture)); 95Assert.Equal(0.1m.ToString("0.##μs", CultureInfo.CurrentCulture), DurationFormatter.FormatDuration(TimeSpan.FromTicks((long)input), CultureInfo.CurrentCulture)); 102Assert.Equal("0μs", DurationFormatter.FormatDuration(TimeSpan.FromTicks(input), CultureInfo.CurrentCulture));
TelemetryFilterFormatterTests.cs (1)
16var originalCulture = CultureInfo.CurrentCulture;
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\TestOutputWrapper.cs (2)
28messageSink?.OnMessage(new DiagnosticMessage(string.Format(CultureInfo.CurrentCulture, format, args))); 49messageSink?.OnMessage(new DiagnosticMessage(string.Format(CultureInfo.CurrentCulture, format, args)));
Aspire.Hosting (12)
ApplicationModel\ParameterResource.cs (1)
175Placeholder = string.Format(CultureInfo.CurrentCulture, InteractionStrings.ParametersInputsParameterPlaceholder, Name)
ApplicationModel\RequiredCommandValidator.cs (7)
103(not null, not null) => string.Format(CultureInfo.CurrentCulture, MessageStrings.RequiredCommandValidationFailedWithLink, command, validationMessage, link), 104(not null, null) => string.Format(CultureInfo.CurrentCulture, MessageStrings.RequiredCommandNotFoundWithLink, command, link), 105_ => string.Format(CultureInfo.CurrentCulture, MessageStrings.RequiredCommandNotFound, command) 112(not null, not null) => string.Format(CultureInfo.CurrentCulture, MessageStrings.RequiredCommandValidationFailed, command, validationMessage), 113(not null, null) => string.Format(CultureInfo.CurrentCulture, MessageStrings.RequiredCommandNotFound, command), 114_ => string.Format(CultureInfo.CurrentCulture, MessageStrings.RequiredCommandNotFound, command) 118_logger.LogWarning("{Message}", string.Format(CultureInfo.CurrentCulture, MessageStrings.ResourceMayFailToStart, resource.Name, message));
DistributedApplication.cs (1)
770context.OriginalCurrentCulture = CultureInfo.CurrentCulture;
Orchestrator\ParameterProcessor.cs (1)
381var message = string.Format(CultureInfo.CurrentCulture, InteractionStrings.DeleteParameterMessage, parameterResource.Name);
ParameterResourceBuilderExtensions.cs (1)
273Placeholder = GetOptionalString(options.Placeholder) ?? string.Format(CultureInfo.CurrentCulture, InteractionStrings.ParametersInputsParameterPlaceholder, parameter.Name),
VersionChecking\VersionCheckService.cs (1)
151message: string.Format(CultureInfo.CurrentCulture, InteractionStrings.VersionCheckMessage, latestVersion),
Aspire.Hosting.Azure (6)
AzureProvisioningController.cs (2)
674string.Format(CultureInfo.CurrentCulture, AzureProvisioningStrings.ChangeResourceLocationPromptMessage, resourceName), 2276=> string.Format(CultureInfo.CurrentCulture, format, args);
Provisioning\Provisioners\BicepProvisioner.cs (4)
1172value = string.Format(CultureInfo.CurrentCulture, format, string.Join(", ", labels)); 1239? string.Format(CultureInfo.CurrentCulture, AzureProvisioningStrings.ResourceStateProvisioningResourceFormat, runningLabels[0]) 1240: string.Format(CultureInfo.CurrentCulture, AzureProvisioningStrings.ResourceStateProvisioningMultipleAzureResourcesFormat, runningLabels.Length); 1248string.Format(CultureInfo.CurrentCulture, AzureProvisioningStrings.ResourceStateProvisionedMultipleAzureResourcesFormat, summary.SucceededOperations.Length),
Aspire.Hosting.Azure.Tests (1)
DefaultArmClientProviderTests.cs (1)
62var originalCulture = CultureInfo.CurrentCulture;
Aspire.Hosting.Browsers (19)
BrowserConfiguration.cs (2)
69CultureInfo.CurrentCulture, 130CultureInfo.CurrentCulture,
BrowserEndpointDiscovery.cs (1)
141CultureInfo.CurrentCulture,
BrowserHostRegistry.cs (2)
57?? throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsUnableToLocateBrowser, configuration.Browser)); 367CultureInfo.CurrentCulture,
BrowserLogsBuilderExtensions.cs (2)
330throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsResourceMissingHttpEndpoint, resource.Name)); 336throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsEndpointNotAllocated, endpointAnnotation.Name, resource.Name));
BrowserLogsConfigurationManager.cs (5)
54new(ResourceScopeValue, string.Format(CultureInfo.CurrentCulture, BrowserCommandStrings.ConfigureTrackedBrowserResourceScopeOption, parentResourceName)), 172CultureInfo.CurrentCulture, 262CultureInfo.CurrentCulture, 402CultureInfo.CurrentCulture, 414CultureInfo.CurrentCulture,
BrowserUserDataPathResolver.cs (1)
107CultureInfo.CurrentCulture,
ChromiumBrowserResolver.cs (6)
59throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsUserDataDirectoryNotFound, userDataDirectory)); 95string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsUnableToReadProfileMetadata, localStatePath, profile), 101string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsUnableToReadProfileMetadata, localStatePath, profile), 107string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsInvalidProfileMetadata, localStatePath, profile), 113string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsProfileNotFound, profile, userDataDirectory)); 147string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsAmbiguousProfile, profile, userDataDirectory));
Aspire.Hosting.Browsers.Tests (20)
BrowserLogsBuilderExtensionsTests.cs (1)
530Assert.Equal(string.Format(CultureInfo.CurrentCulture, BrowserCommandStrings.ConfigureTrackedBrowserApplied, "web"), result.Message);
src\Aspire.Hosting.Browsers\BrowserConfiguration.cs (2)
69CultureInfo.CurrentCulture, 130CultureInfo.CurrentCulture,
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (1)
141CultureInfo.CurrentCulture,
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (2)
57?? throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsUnableToLocateBrowser, configuration.Browser)); 367CultureInfo.CurrentCulture,
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (2)
330throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsResourceMissingHttpEndpoint, resource.Name)); 336throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsEndpointNotAllocated, endpointAnnotation.Name, resource.Name));
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (5)
54new(ResourceScopeValue, string.Format(CultureInfo.CurrentCulture, BrowserCommandStrings.ConfigureTrackedBrowserResourceScopeOption, parentResourceName)), 172CultureInfo.CurrentCulture, 262CultureInfo.CurrentCulture, 402CultureInfo.CurrentCulture, 414CultureInfo.CurrentCulture,
src\Aspire.Hosting.Browsers\BrowserUserDataPathResolver.cs (1)
107CultureInfo.CurrentCulture,
src\Aspire.Hosting.Browsers\ChromiumBrowserResolver.cs (6)
59throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsUserDataDirectoryNotFound, userDataDirectory)); 95string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsUnableToReadProfileMetadata, localStatePath, profile), 101string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsUnableToReadProfileMetadata, localStatePath, profile), 107string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsInvalidProfileMetadata, localStatePath, profile), 113string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsProfileNotFound, profile, userDataDirectory)); 147string.Format(CultureInfo.CurrentCulture, BrowserMessageStrings.BrowserLogsAmbiguousProfile, profile, userDataDirectory));
Aspire.Hosting.DevTunnels (10)
DevTunnelHealthCheck.cs (4)
30return HealthCheckResult.Unhealthy(string.Format(CultureInfo.CurrentCulture, Resources.MessageStrings.DevTunnelUnhealthy_NoActiveHostConnections, _tunnelResource.TunnelId)); 41return HealthCheckResult.Unhealthy(string.Format(CultureInfo.CurrentCulture, Resources.MessageStrings.DevTunnelUnhealthy_PortInactive, _tunnelResource.TunnelId, tunnelPort)); 57return HealthCheckResult.Healthy(string.Format(CultureInfo.CurrentCulture, Resources.MessageStrings.DevTunnelHealthy, _tunnelResource.TunnelId, tunnelStatus.HostConnections, tunnelStatus.Ports?.Count)); 74return HealthCheckResult.Unhealthy(string.Format(CultureInfo.CurrentCulture, Resources.MessageStrings.DevTunnelUnhealthy_Error, _tunnelResource.TunnelId, ex.Message), ex);
DevTunnelPortHealthCheck.cs (5)
22return HealthCheckResult.Unhealthy(string.Format(CultureInfo.CurrentCulture, Resources.MessageStrings.DevTunnelPortUnhealthy_StatusUnknown, port, tunnelResource.TunnelId)); 27return HealthCheckResult.Unhealthy(string.Format(CultureInfo.CurrentCulture, Resources.MessageStrings.DevTunnelUnhealthy_NoActiveHostConnections, tunnelResource.TunnelId)); 35return HealthCheckResult.Unhealthy(string.Format(CultureInfo.CurrentCulture, Resources.MessageStrings.DevTunnelUnhealthy_PortInactive, tunnelResource.TunnelId, port)); 38return HealthCheckResult.Healthy(string.Format(CultureInfo.CurrentCulture, Resources.MessageStrings.DevTunnelPortHealthy, port, tunnelResource.TunnelId)); 44return HealthCheckResult.Unhealthy(string.Format(CultureInfo.CurrentCulture, Resources.MessageStrings.DevTunnelPortUnhealthy_Error, port, tunnelResource.TunnelId, ex.Message), ex);
DevTunnelResourceBuilderExtensions.cs (1)
923string.Format(CultureInfo.CurrentCulture, MessageStrings.DevtunnelCliVersionNotSupported, version, DevTunnelCli.MinimumSupportedVersion));
Aspire.Hosting.JavaScript.Tests (4)
BunAppFixture.cs (2)
137messageSink.OnMessage(new DiagnosticMessage(string.Format(CultureInfo.CurrentCulture, format, args))); 147messageSink.OnMessage(new DiagnosticMessage(string.Format(CultureInfo.CurrentCulture, format, args)));
NodeAppFixture.cs (2)
124messageSink.OnMessage(new DiagnosticMessage(string.Format(CultureInfo.CurrentCulture, format, args))); 134messageSink.OnMessage(new DiagnosticMessage(string.Format(CultureInfo.CurrentCulture, format, args)));
Aspire.Hosting.Tests (4)
AppHostSmokeTests.cs (3)
40var originalCulture = CultureInfo.CurrentCulture; 82Assert.Equal(originalCulture, CultureInfo.CurrentCulture); 113AppCultureInfo = CultureInfo.CurrentCulture;
Utils\StringComparersTests.cs (1)
20var currentCulture = CultureInfo.CurrentCulture;
Aspire.Templates.Tests (2)
tests\Shared\TemplatesTesting\TestOutputWrapper.cs (2)
28messageSink?.OnMessage(new DiagnosticMessage(string.Format(CultureInfo.CurrentCulture, format, args))); 49messageSink?.OnMessage(new DiagnosticMessage(string.Format(CultureInfo.CurrentCulture, format, args)));
Aspire.TestUtilities (6)
UseCultureAttribute.cs (5)
14/// <see cref="Thread.CurrentThread" /> <see cref="CultureInfo.CurrentCulture" /> and 58/// <see cref="CultureInfo.CurrentCulture" /> and <see cref="CultureInfo.CurrentUICulture" /> 73CultureInfo.CurrentCulture.ClearCachedData(); 80/// Restores the original <see cref="CultureInfo.CurrentCulture" /> and 96CultureInfo.CurrentCulture.ClearCachedData();
UseDefaultXunitCultureAttribute.cs (1)
10/// <see cref="CultureInfo.CurrentCulture" /> with another culture.
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\BuildErrorException.cs (1)
27: this(string.Format(CultureInfo.CurrentCulture, format, args))
datacollector (3)
DataCollectorMain.cs (2)
131&& int.TryParse(portValue, NumberStyles.Integer, CultureInfo.CurrentCulture, out var p) 173CultureInfo.CurrentCulture,
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\UILanguageOverride.cs (1)
81SetIfNotAlreadySet(VSLANG, language.LCID.ToString(CultureInfo.CurrentCulture), environmentVariableHelper); // for tools following VS guidelines to just work in CLI
datacollector.arm64 (3)
src\vstest\src\datacollector\DataCollectorMain.cs (2)
131&& int.TryParse(portValue, NumberStyles.Integer, CultureInfo.CurrentCulture, out var p) 173CultureInfo.CurrentCulture,
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\UILanguageOverride.cs (1)
81SetIfNotAlreadySet(VSLANG, language.LCID.ToString(CultureInfo.CurrentCulture), environmentVariableHelper); // for tools following VS guidelines to just work in CLI
dotnet (31)
Commands\Package\List\PackageListCommand.cs (1)
102"text": "{{String.Format(CultureInfo.CurrentCulture, CliCommandStrings.Error_restore)}}",
Commands\Test\MTP\ArtifactPostProcessingManager.cs (3)
168CultureInfo.CurrentCulture, 176CultureInfo.CurrentCulture, 190CultureInfo.CurrentCulture,
Commands\Test\MTP\Terminal\AnsiTerminal.cs (1)
180bool knownNonExistingFile = path.StartsWith("/_/", ignoreCase: false, CultureInfo.CurrentCulture);
Commands\Test\MTP\Terminal\AnsiTerminalTestProgressFrame.cs (5)
43string passedText = passed.ToString(CultureInfo.CurrentCulture); 54string failedText = failed.ToString(CultureInfo.CurrentCulture); 65string skippedText = skipped.ToString(CultureInfo.CurrentCulture); 77string retriedText = retried.ToString(CultureInfo.CurrentCulture); 88string discoveredText = progress.DiscoveredTests.ToString(CultureInfo.CurrentCulture);
Commands\Test\MTP\Terminal\HumanReadableDurationFormatter.cs (1)
80stringBuilder.Append(CultureInfo.CurrentCulture, $"{duration.Value.Days}d");
Commands\Test\MTP\Terminal\SimpleTerminalBase.cs (4)
82Append(passed.ToString(CultureInfo.CurrentCulture)); 89Append(failed.ToString(CultureInfo.CurrentCulture)); 96Append(skipped.ToString(CultureInfo.CurrentCulture)); 108Append(discovered.ToString(CultureInfo.CurrentCulture));
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (14)
330terminal.Append(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.MinimumExpectedTestsPolicyViolation, totalTests, _options.MinimumExpectedTests)); 339terminal.Append(string.Format(CultureInfo.CurrentCulture, "{0}!", CliCommandStrings.Failed)); 347terminal.Append(string.Format(CultureInfo.CurrentCulture, "{0}!", CliCommandStrings.Failed)); 351terminal.Append(string.Format(CultureInfo.CurrentCulture, "{0}!", CliCommandStrings.Passed)); 480terminal.AppendLine($"{SingleIndentation}{string.Format(CultureInfo.CurrentCulture, CliCommandStrings.FlakyLowercase, flakyTests)}"); 488terminal.AppendLine(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.RetriedTestsAndRuns, retriedTests, retriedExecutions)); 562terminal.Append(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.FlakyAttempts, attempts)); 697? string.Format(CultureInfo.CurrentCulture, CliCommandStrings.FailedWithErrors, state.FailedTests) 1138terminal.AppendLine(exitCode?.ToString(CultureInfo.CurrentCulture) ?? "<null>"); 1181builder.AppendLine(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.TestApplicationOutputTruncated, omitted)); 1251terminal.Append(count.ToString(CultureInfo.CurrentCulture)); 1381terminal.Append(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.DiscoveredTestsInAssembly, discoveredTestNames.Count)); 1414terminal.AppendLine(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.TestDiscoverySummarySingular, totalTests)); 1418terminal.AppendLine(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.TestDiscoverySummary, totalTests, assemblies.Count));
Commands\Test\MTP\Terminal\TestNodeResultsState.cs (2)
87CultureInfo culture = CultureInfo.CurrentCulture; 104CultureInfo culture = CultureInfo.CurrentCulture;
dotnet-dev-certs (2)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
121CultureInfo.CurrentCulture, 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName));
dotnet-getdocument (2)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
121CultureInfo.CurrentCulture, 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName));
dotnet-openapi (2)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
121CultureInfo.CurrentCulture, 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName));
dotnet-sql-cache (2)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
121CultureInfo.CurrentCulture, 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName));
dotnet-svcutil-lib (104)
Bootstrapper\SvcutilBootstrapper.cs (1)
207throw new BootstrapException(string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}", exception.Message, Environment.NewLine, Resource.BootstrapErrorDisableReferences));
CodeDomFixup\MethodCreationHelper.cs (5)
211throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.ErrBindingTypeNotSupportedFormat, binding.GetType().FullName)); 1084throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.ErrBindingElementNotSupportedFormat, bindingElement.GetType().FullName)); 1632throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.ErrEncodingNotSupportedFormat, encoding.WebName)); 1658throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.ErrMessageVersionNotSupportedFormat, messageVersion)); 1676throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.ErrMessageVersionNotSupportedFormat, messagingVersion));
CommandProcessorOptions.cs (15)
353throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrInvalidOperationNoProjectFileFoundUnderFolderFormat, workingDirectory)); 358var moreThanOneProjectMsg = string.Format(CultureInfo.CurrentCulture, SR.ErrMoreThanOneProjectFoundFormat, workingDirectory); 362var useProjectOptions = string.Format(CultureInfo.CurrentCulture, SR.UseProjectFileOptionOnMultipleFilesMsgFormat, Switches.ProjectFile.Name, projectItems); 447throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrOutputFileAlreadyExistsFormat, filePath, Switches.OutputFile.Name)); 454string.Format(CultureInfo.CurrentCulture, SR.ErrOutputFileNotUnderOutputDirFormat, Switches.OutputFile.Name, outputFile, this.OutputDir, Switches.OutputDirectory.Name)); 460this.AddWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnSpecifiedFilePathNotUndeProjectDirFormat, Switches.OutputFile.Name, outputFile, this.Project.DirectoryPath)); 480throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrInvalidOperationNoProjectFileFoundUnderFolderFormat, Directory.GetCurrentDirectory())); 484throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrProjectToUpdateNotFoundFormat, Switches.Update.Name, Switches.ProjectFile.Name)); 515throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrNoUpdateParamsFileFoundFormat, this.Project.FullPath)); 523throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrMoreThanOneUpdateParamsFilesFoundFormat, this.Project.FullPath, Switches.Update.Name, svcRefNames)); 537throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrServiceReferenceNotFoundUnderProjectFormat, this.UpdateServiceReferenceFolder, this.Project.FullPath)); 545throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrNoUpdateParamsFileFoundFormat, this.Project.FullPath)); 669throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrInvalidNamespaceFormat, 680this.Project.EndOfLifeTargetFrameworks?.ToList().ForEach(tfx => this.AddWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnOutOfSupportTargetFrameworkFormat, tfx))); 686this.AddWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnOutOfSupportTargetFrameworkFormat, this.TargetFramework.FullName));
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
2326Output.Write(d.ToString("F" + CultureInfo.CurrentCulture.NumberFormat.NumberDecimalDigits, CultureInfo.InvariantCulture));
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifiers.cs (1)
14public CaseInsensitiveKeyComparer() : base(CultureInfo.CurrentCulture)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CompiledXpathExpr.cs (1)
164_cinfo = CultureInfo.CurrentCulture; // System.Threading.Thread.CurrentThread.CurrentCulture;
FrameworkFork\System.ServiceModel\Framework\System\ComponentModel\InvalidEnumArgumentException.cs (1)
48invalidValue.ToString(CultureInfo.CurrentCulture),
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
161return String.Format(CultureInfo.CurrentCulture, "{0}/{1}", source.GetType().ToString(), source.GetHashCode());
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (4)
191using (StringWriter stringWriter = new StringWriter(sb, CultureInfo.CurrentCulture)) 247using (StringWriter stringWriter = new StringWriter(sb, CultureInfo.CurrentCulture)) 330using (StringWriter stringWriter = new StringWriter(sb, CultureInfo.CurrentCulture)) 359using (StringWriter stringWriter = new StringWriter(sb, CultureInfo.CurrentCulture))
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\Claim.cs (1)
201return string.Format(CultureInfo.CurrentCulture, "{0}: {1}", _right, _claimType);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BindingContext.cs (1)
128builder.Append(CultureInfo.CurrentCulture.TextInfo.ListSeparator);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelRequirements.cs (2)
273contractChannelTypes.Append(CultureInfo.CurrentCulture.TextInfo.ListSeparator); 317bindingChannelTypes.Append(CultureInfo.CurrentCulture.TextInfo.ListSeparator);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FaultConverter.cs (9)
97exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 135exception = new ActionNotSupportedException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 140exception = new EndpointNotFoundException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 148exception = new MessageHeaderException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text, true); 156exception = new MessageHeaderException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 161exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 169exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 174exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 188exception = new ServerTooBusyException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageFault.cs (1)
113s_defaultMessageFault = MessageFault.CreateFault(new FaultCode("Default"), new FaultReason("", CultureInfo.CurrentCulture));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (3)
1040throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ChannelTerminatedException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text)); 1049throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityAccessDeniedException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text)); 1074fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text));
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (1)
261return source.GetType().ToString() + "/" + source.GetHashCode().ToString(CultureInfo.CurrentCulture);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
516endpointContractNames.Append(CultureInfo.CurrentCulture.TextInfo.ListSeparator);
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultException.cs (1)
217return reason.GetMatchingTranslation(System.Globalization.CultureInfo.CurrentCulture).Text;
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultReason.cs (1)
74return GetMatchingTranslation(CultureInfo.CurrentCulture);
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultReasonText.cs (1)
19_xmlLang = CultureInfo.CurrentCulture.Name;
FrameworkFork\System.ServiceModel\System\ServiceModel\MustUnderstandSoapException.cs (1)
34FaultReason reason = new FaultReason(string.Format(SRServiceModel.SFxHeaderNotUnderstood, name, ns), CultureInfo.CurrentCulture);
FrameworkFork\System.ServiceModel\System\ServiceModel\ProtocolException.cs (2)
23FaultReasonText reason = fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture); 47FaultReasonText reason = fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityTimestamp.cs (8)
165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.TimeStampHasCreationAheadOfExpiry, this.CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), this.ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture)))); 177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.TimeStampHasExpiryTimeInPast, this.ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew))); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.TimeStampHasCreationTimeInFuture, this.CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew))); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.TimeStampWasCreatedTooLongAgo, this.CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), timeToLive, allowedClockSkew)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
235return String.Format(CultureInfo.CurrentCulture, "SecurityContextSecurityToken(Identifier='{0}', KeyGeneration='{1}')", _contextId, _keyGeneration);
FrameworkFork\System.ServiceModel\System\ServiceModel\WSAddressing10ProblemHeaderQNameFault.cs (2)
38_reason = new FaultReason(e.Message, CultureInfo.CurrentCulture); 48_reason = new FaultReason(e.Message, CultureInfo.CurrentCulture);
ImportModule.cs (1)
171ToolConsole.WriteWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnCouldNotGenerateContractOperationsFormat, importer1, importer2));
Metadata\MetadataDocumentLoader.cs (3)
97throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrInvalidUriFormat, uri)); 139throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrInvalidUriFormat, uri)); 144throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrUrlNotAllowedOnMultipleInputsFormat, metadataUri));
Metadata\MetadataDocumentSaver.cs (2)
63DocumentSaveErrors = metadataDocumentSaver.UnresolvedReferences.Distinct().OrderBy(ur => ur.Uri).Select(ur => string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrUnableToResolveSchemaReferenceFormat, ur.Uri)) 74throw new IOException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrFileAlreadyExistsFormat, fileInfo.FilePath));
Metadata\MetadataFileNameManager.cs (3)
248throw new DirectoryNotFoundException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrDirectoryNotFoundFormat, dirInfo.FullName)); 255throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrDirectoryInsteadOfFileFormat, path)); 261throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrNoFilesFoundFormat, path));
Shared\MSBuildProj.cs (3)
329throw new Exception(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorProjectReferenceMissingFilePathFormat, binReference)); 393throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorFullPathNotAProjectFilePathFormat, fullPath)); 398throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorProjectFileAlreadyExistsFormat, fullPath));
Shared\Options\ApplicationOptions.cs (2)
75throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorOptionAlreadyRegisteredFormat, option.Name)); 205throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.WarningUnrecognizedOptionFormat, optionId));
Shared\Options\ListValue.cs (1)
33throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorOptionDuplicateValueFormat, this.Owner.Name, value));
Shared\Options\OptionBase.cs (2)
182throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorOptionAlreadyDeserializedFormat, this.SerializationName)); 239var value = string.Format(CultureInfo.CurrentCulture, "{0}: {1}", this.Name, this.Value?.ToString());
Shared\Options\OptionsSerializer.cs (3)
70var jOptionsObject = jPropInfo.Value as JObject ?? throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidOptionValueFormat, jPropInfo.Value?.Type, option.SerializationName)); 82options.AddWarning(string.Format(CultureInfo.CurrentCulture, Shared.Resources.WarningUnrecognizedOptionFormat, jPropInfo.Key)); 114options.AddWarning(string.Format(CultureInfo.CurrentCulture, Shared.Resources.WarningUnrecognizedOptionFormat, jProperty.Key));
Shared\Options\OptionValueParser.cs (4)
238var invalidValueError = string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidOptionValueFormat, value, option.Name); 239var supportedValues = string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorOnInvalidEnumSupportedValuesFormat, string.Join(", ", Enum.GetNames(typeof(TValue)))); 271throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidOptionValueFormat, value, option.Name)); 277throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidOptionValueFormat, value, option.Name), innerException);
Shared\ProjectDependency.cs (11)
77throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, filePath, nameof(filePath))); 82throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageName, nameof(packageName))); 91throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageVersion, nameof(packageVersion))); 96throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, dependencyType, nameof(dependencyType))); 104throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageName, nameof(packageName))); 110throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageName, nameof(packageName))); 120throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageName, nameof(packageName))); 127throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, filePath, nameof(filePath))); 140throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, filePath, nameof(filePath))); 180throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, dependencySpec, nameof(dependencySpec))); 273throw new FormatException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorDepenencySpecFormat, dependencySpec));
Shared\TargetFrameworkHelper.cs (1)
128throw new Exception(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorNotSupportedTargetFrameworkFormat,
ToolConsole.cs (2)
84errMsg = string.Format(CultureInfo.CurrentCulture, "{0} {1}", prefix, errMsg); 95message = string.Format(CultureInfo.CurrentCulture, "{0} {1}", SR.WarningPrefix, message);
dotnet-user-jwts (2)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
121CultureInfo.CurrentCulture, 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName));
dotnet-user-secrets (2)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
121CultureInfo.CurrentCulture, 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName));
GetDocument.Insider (2)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
121CultureInfo.CurrentCulture, 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName));
Infrastructure.Common (1)
xunit\WcfCurrentCultureAttribute.cs (1)
25_savedCultureInfo = CultureInfo.CurrentCulture;
Microsoft.Arcade.Common (2)
NupkgInfoFactory.cs (2)
43throw new InvalidDataException(string.Format(CultureInfo.CurrentCulture, "Did not extract nuspec file from package: {0}", path)); 47throw new InvalidDataException(string.Format(CultureInfo.CurrentCulture, "Invalid package: {0}", path), ex);
Microsoft.AspNetCore.Antiforgery (7)
src\aspnetcore\src\Shared\WebEncoders\Properties\EncoderResources.cs (2)
27return string.Format(CultureInfo.CurrentCulture, WebEncoders_InvalidCountOffsetOrLength, p0, p1, p2); 35return string.Format(CultureInfo.CurrentCulture, WebEncoders_MalformedInput, p0);
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (5)
161CultureInfo.CurrentCulture, 230CultureInfo.CurrentCulture, 333CultureInfo.CurrentCulture, 492CultureInfo.CurrentCulture, 506CultureInfo.CurrentCulture,
Microsoft.AspNetCore.Authentication.Cookies (1)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
115CultureInfo.CurrentCulture,
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthOptions.cs (1)
36throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Exception_OptionMustBeProvided, nameof(CallbackPath)), nameof(CallbackPath));
Microsoft.AspNetCore.Components (90)
BindConverter.cs (90)
38/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 54/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 78/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 102/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 110return value.ToString(culture ?? CultureInfo.CurrentCulture); 118/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 131return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 139/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 147return value.ToString(culture ?? CultureInfo.CurrentCulture); 155/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 168return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 176/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 184return value.ToString(culture ?? CultureInfo.CurrentCulture); 192/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 205return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 213/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 221return value.ToString(culture ?? CultureInfo.CurrentCulture); 229/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 242return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 250/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 258return value.ToString(culture ?? CultureInfo.CurrentCulture); 266/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 279return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 287/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 295return value.ToString(culture ?? CultureInfo.CurrentCulture); 303/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 316return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 324/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 336/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 346return value.ToString(format, culture ?? CultureInfo.CurrentCulture); 349return value.ToString(culture ?? CultureInfo.CurrentCulture); 354return value.ToString(culture ?? CultureInfo.CurrentCulture); 362/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 374/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 389return value.Value.ToString(format, culture ?? CultureInfo.CurrentCulture); 392return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 402return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 410/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 422/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 432return value.ToString(format, culture ?? CultureInfo.CurrentCulture); 435return value.ToString(culture ?? CultureInfo.CurrentCulture); 440return value.ToString(culture ?? CultureInfo.CurrentCulture); 448/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 460/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 475return value.Value.ToString(format, culture ?? CultureInfo.CurrentCulture); 478return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 488return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 496/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 508/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 519return value.ToDateTime(TimeOnly.MinValue).ToString(format, culture ?? CultureInfo.CurrentCulture); 522return value.ToString(culture ?? CultureInfo.CurrentCulture); 527return value.ToString(culture ?? CultureInfo.CurrentCulture); 535/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 547/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 563return value.Value.ToDateTime(TimeOnly.MinValue).ToString(format, culture ?? CultureInfo.CurrentCulture); 566return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 576return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 584/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 596/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 607return DateTime.MinValue.Add(value.ToTimeSpan()).ToString(format, culture ?? CultureInfo.CurrentCulture); 610return value.ToString(culture ?? CultureInfo.CurrentCulture); 615return value.ToString(culture ?? CultureInfo.CurrentCulture); 623/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 635/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 651return DateTime.MinValue.Add(value.Value.ToTimeSpan()).ToString(format, culture ?? CultureInfo.CurrentCulture); 654return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 664return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 682/// The <see cref="CultureInfo"/> to use while formatting. Defaults to <see cref="CultureInfo.CurrentCulture"/>. 790if (!int.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted)) 809if (!int.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted)) 855if (!long.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted)) 874if (!long.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted)) 920if (!short.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted)) 939if (!short.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted)) 985if (!float.TryParse(text, NumberStyles.Number | NumberStyles.AllowExponent, culture ?? CultureInfo.CurrentCulture, out var converted)) 1010if (!float.TryParse(text, NumberStyles.Number | NumberStyles.AllowExponent, culture ?? CultureInfo.CurrentCulture, out var converted)) 1062if (!double.TryParse(text, NumberStyles.Number | NumberStyles.AllowExponent, culture ?? CultureInfo.CurrentCulture, out var converted)) 1087if (!double.TryParse(text, NumberStyles.Number | NumberStyles.AllowExponent, culture ?? CultureInfo.CurrentCulture, out var converted)) 1139if (!decimal.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted)) 1158if (!decimal.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted)) 1237if (format != null && DateTime.TryParseExact(text, format, culture ?? CultureInfo.CurrentCulture, DateTimeStyles.None, out var converted)) 1242else if (format == null && DateTime.TryParse(text, culture ?? CultureInfo.CurrentCulture, DateTimeStyles.None, out converted)) 1266if (format != null && DateTime.TryParseExact(text, format, culture ?? CultureInfo.CurrentCulture, DateTimeStyles.None, out var converted)) 1271else if (format == null && DateTime.TryParse(text, culture ?? CultureInfo.CurrentCulture, DateTimeStyles.None, out converted)) 1350if (format != null && DateTimeOffset.TryParseExact(text, format, culture ?? CultureInfo.CurrentCulture, DateTimeStyles.None, out var converted)) 1355else if (format == null && DateTimeOffset.TryParse(text, culture ?? CultureInfo.CurrentCulture, DateTimeStyles.None, out converted)) 1379if (format != null && DateTimeOffset.TryParseExact(text, format, culture ?? CultureInfo.CurrentCulture, DateTimeStyles.None, out var converted)) 1384else if (format == null && DateTimeOffset.TryParse(text, culture ?? CultureInfo.CurrentCulture, DateTimeStyles.None, out converted)) 1909return typeConverter.ConvertToString(context: null, culture ?? CultureInfo.CurrentCulture, value); 2143var converted = typeConverter.ConvertFrom(context: null, culture ?? CultureInfo.CurrentCulture, obj);
Microsoft.AspNetCore.Components.Analyzers (2)
JSInteropCodeFixProvider.cs (1)
64var title = Title.ToString(CultureInfo.CurrentCulture);
StateHasChangedCodeFixProvider.cs (1)
51var title = Title.ToString(CultureInfo.CurrentCulture);
Microsoft.AspNetCore.Components.Endpoints (5)
CacheView\CacheViewKeyResolver.cs (1)
83AppendLengthPrefixedString(hash, CultureInfo.CurrentCulture.Name);
Forms\DataAnnotationsLocalizer.cs (1)
66return FormatMessage(attribute, CultureInfo.CurrentCulture, localizedTemplate, displayName);
src\aspnetcore\src\Components\Shared\src\CultureStateProvider.cs (2)
17CurrentCultureName = CultureInfo.CurrentCulture.Name; 35var currentCultureName = CultureInfo.CurrentCulture.Name;
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
115CultureInfo.CurrentCulture,
Microsoft.AspNetCore.Components.Web (5)
BindInputElementAttribute.cs (2)
22/// Determines whether binding will use <see cref="CultureInfo.InvariantCulture" /> or <see cref="CultureInfo.CurrentCulture"/>. 62/// <see cref="CultureInfo.CurrentCulture"/>.
Forms\InputExtensions.cs (1)
35else if (BindConverter.TryConvertTo<TValue>(value, CultureInfo.CurrentCulture, out var parsedValue))
Forms\InputSelect.cs (1)
88CurrentValue = BindConverter.TryConvertTo<TValue>(value, CultureInfo.CurrentCulture, out var result)
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
73_messages.Add(fieldIdentifier, errorMessage.ToString(CultureInfo.CurrentCulture));
Microsoft.AspNetCore.Components.WebAssembly (4)
Hosting\WebAssemblyCultureProvider.cs (2)
47(!CultureInfo.CurrentCulture.Name.Equals(InitialCulture.Name, StringComparison.Ordinal))) 61var culturesToLoad = GetCultures(CultureInfo.CurrentCulture, CultureInfo.CurrentUICulture);
src\aspnetcore\src\Components\Shared\src\CultureStateProvider.cs (2)
17CurrentCultureName = CultureInfo.CurrentCulture.Name; 35var currentCultureName = CultureInfo.CurrentCulture.Name;
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
src\aspnetcore\src\Components\Shared\src\CultureStateProvider.cs (2)
17CurrentCultureName = CultureInfo.CurrentCulture.Name; 35var currentCultureName = CultureInfo.CurrentCulture.Name;
Microsoft.AspNetCore.Cryptography.Internal (1)
SafeHandles\BCryptAlgorithmHandle.cs (1)
144string message = String.Format(CultureInfo.CurrentCulture, Resources.BCryptAlgorithmHandle_ProviderNotFound, algorithmId);
Microsoft.AspNetCore.DataProtection (6)
Error.cs (6)
42var message = string.Format(CultureInfo.CurrentCulture, Resources.Common_PropertyCannotBeNullOrEmpty, propertyName); 48var message = string.Format(CultureInfo.CurrentCulture, Resources.Common_PropertyMustBeNonNegative, propertyName); 59var message = string.Format(CultureInfo.CurrentCulture, Resources.Common_KeyNotFound, id); 65var message = string.Format(CultureInfo.CurrentCulture, Resources.Common_KeyRevoked, id); 91var message = string.Format(CultureInfo.CurrentCulture, Resources.XmlKeyManager_DuplicateKey, keyId); 97var message = string.Format(CultureInfo.CurrentCulture, Resources.KeyRingProvider_DefaultKeyRevoked, id);
Microsoft.AspNetCore.DataProtection.Abstractions (7)
src\aspnetcore\src\Shared\WebEncoders\Properties\EncoderResources.cs (2)
27return string.Format(CultureInfo.CurrentCulture, WebEncoders_InvalidCountOffsetOrLength, p0, p1, p2); 35return string.Format(CultureInfo.CurrentCulture, WebEncoders_MalformedInput, p0);
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (5)
161CultureInfo.CurrentCulture, 230CultureInfo.CurrentCulture, 333CultureInfo.CurrentCulture, 492CultureInfo.CurrentCulture, 506CultureInfo.CurrentCulture,
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (3)
274string.Format(global::System.Globalization.CultureInfo.CurrentCulture, GetValidationErrorMessage(), name, Minimum, Maximum); 294System.Globalization.CultureInfo culture = ParseLimitsInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture; 317System.Globalization.CultureInfo formatProvider = ConvertValueInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture;
Microsoft.AspNetCore.HeaderParsing (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (3)
87string.Format(global::System.Globalization.CultureInfo.CurrentCulture, GetValidationErrorMessage(), name, Minimum, Maximum); 107System.Globalization.CultureInfo culture = ParseLimitsInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture; 130System.Globalization.CultureInfo formatProvider = ConvertValueInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture;
Microsoft.AspNetCore.HeaderPropagation (1)
DependencyInjection\HeaderPropagationApplicationBuilderExtensions.cs (1)
17CultureInfo.CurrentCulture,
Microsoft.AspNetCore.Hosting (4)
Internal\StartupLoader.cs (4)
244CultureInfo.CurrentCulture, 284CultureInfo.CurrentCulture, 344CultureInfo.CurrentCulture, 357CultureInfo.CurrentCulture,
Microsoft.AspNetCore.Html.Abstractions (1)
HtmlFormattableString.cs (1)
49_formatProvider = formatProvider ?? CultureInfo.CurrentCulture;
Microsoft.AspNetCore.Http.Connections (7)
src\aspnetcore\src\Shared\WebEncoders\Properties\EncoderResources.cs (2)
27return string.Format(CultureInfo.CurrentCulture, WebEncoders_InvalidCountOffsetOrLength, p0, p1, p2); 35return string.Format(CultureInfo.CurrentCulture, WebEncoders_MalformedInput, p0);
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (5)
161CultureInfo.CurrentCulture, 230CultureInfo.CurrentCulture, 333CultureInfo.CurrentCulture, 492CultureInfo.CurrentCulture, 506CultureInfo.CurrentCulture,
Microsoft.AspNetCore.Http.Extensions (1)
HeaderDictionaryTypeExtensions.cs (1)
320CultureInfo.CurrentCulture,
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
UserStore.cs (1)
372throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.RoleNotFound, normalizedRoleName));
Microsoft.AspNetCore.InternalTesting (4)
CultureReplacer.cs (1)
32_originalCulture = CultureInfo.CurrentCulture;
ReplaceCulture.cs (2)
40/// The <see cref="CultureInfo.CurrentCulture"/> for the test. Defaults to en-GB. 56_originalCulture = CultureInfo.CurrentCulture;
UseCultureAttribute.cs (1)
31_originalCulture = CultureInfo.CurrentCulture;
Microsoft.AspNetCore.Localization (4)
RequestLocalizationOptions.cs (4)
15new RequestCulture(CultureInfo.CurrentCulture, CultureInfo.CurrentUICulture); 38/// Defaults to <see cref="CultureInfo.CurrentCulture"/> and <see cref="CultureInfo.CurrentUICulture"/>. 95/// Defaults to <see cref="CultureInfo.CurrentCulture"/>. 97public IList<CultureInfo>? SupportedCultures { get; set; } = new List<CultureInfo> { CultureInfo.CurrentCulture };
Microsoft.AspNetCore.Mvc.Core (6)
Formatters\FormatterMappings.cs (2)
88string.Format(CultureInfo.CurrentCulture, Resources.FormatterMappings_NotValidMediaType, contentType), 101throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Format_NotValid, format), nameof(format));
ModelBinding\FormValueProviderFactory.cs (1)
57CultureInfo.CurrentCulture);
ModelBinding\JQueryFormValueProviderFactory.cs (1)
57CultureInfo.CurrentCulture);
Routing\ConventionalRouteEntry.cs (1)
45CultureInfo.CurrentCulture,
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
115CultureInfo.CurrentCulture,
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
CompareAttributeAdapter.cs (1)
72return string.Format(CultureInfo.CurrentCulture,
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
MvcNewtonsoftJsonOptions.cs (1)
52/// Gets or sets a flag to determine whether the value of <see cref="CultureInfo.CurrentCulture"/>
NewtonsoftJsonInputFormatter.cs (1)
156jsonSerializer.Culture = CultureInfo.CurrentCulture;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (4)
CompilationFailedExceptionFactory.cs (3)
121diagnostic.GetMessage(CultureInfo.CurrentCulture), 122CSharpDiagnosticFormatter.Instance.Format(diagnostic, CultureInfo.CurrentCulture), 135var message = razorDiagnostic.GetMessage(CultureInfo.CurrentCulture);
PageDirectiveFeature.cs (1)
127messages[i] = diagnostics[i].GetMessage(CultureInfo.CurrentCulture);
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Cache\CacheTagKey.cs (1)
105_requestCulture = CultureInfo.CurrentCulture;
CacheTagHelperBase.cs (1)
100/// Setting this to <c>true</c> would result in the result to be varied by <see cref="CultureInfo.CurrentCulture" />
Microsoft.AspNetCore.Mvc.ViewFeatures (19)
DefaultDisplayTemplates.cs (1)
153string.Format(CultureInfo.CurrentCulture, "{0:0.00}", htmlHelper.ViewData.Model);
DefaultEditorTemplates.cs (1)
136string.Format(CultureInfo.CurrentCulture, "{0:0.00}", htmlHelper.ViewData.Model);
DefaultHtmlGenerator.cs (7)
116return ViewDataDictionary.FormatValue(value, format, CultureInfo.CurrentCulture); 444var valueString = Convert.ToString(value, CultureInfo.CurrentCulture); 460var valueString = Convert.ToString(value, CultureInfo.CurrentCulture); 975var stringValue = (value as string) ?? Convert.ToString(value, CultureInfo.CurrentCulture); 1030return Convert.ToString(viewContext.ViewData.Eval(key, format), CultureInfo.CurrentCulture); 1192culture = CultureInfo.CurrentCulture; 1415return Convert.ToString(viewContext.ViewData.Eval(key), CultureInfo.CurrentCulture);
ExpressionMetadataProvider.cs (1)
204var model = viewData.Model == null ? null : Convert.ToString(viewData.Model, CultureInfo.CurrentCulture);
ModelExplorerExtensions.cs (2)
64var stringResult = Convert.ToString(modelExplorer.Model, CultureInfo.CurrentCulture); 87return Convert.ToString(firstProperty.Model, CultureInfo.CurrentCulture);
RemoteAttributeBase.cs (1)
119return string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name);
Rendering\FormInputRenderMode.cs (1)
22/// Always use <see cref="CultureInfo.CurrentCulture"/> to format input element values.
Rendering\MultiSelectList.cs (2)
155var stringValue = Convert.ToString(value, CultureInfo.CurrentCulture); 211return Convert.ToString(value, CultureInfo.CurrentCulture);
TemplateBuilder.cs (1)
94formattedModelValue = string.Format(CultureInfo.CurrentCulture, formatString, _model);
ViewDataDictionary.cs (2)
384return FormatValue(value, format, CultureInfo.CurrentCulture); 396=> FormatValue(value, format, CultureInfo.CurrentCulture);
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
108: CultureInfo.CurrentCulture;
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\Response.cs (1)
78throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(CultureInfo.CurrentCulture, Resources.Exception_InvalidStatusCode, value));
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
282=> throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, "Invalid control character in header: 0x{0:X2}", headerCharacters[invalidIndex]));
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
282=> throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, "Invalid control character in header: 0x{0:X2}", headerCharacters[invalidIndex]));
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\ApplicationDeployerFactory.cs (1)
38CultureInfo.CurrentCulture,
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\runtime\SR.cs (1)
16return string.Format(CultureInfo.CurrentCulture, resourceFormat, args);
Microsoft.AspNetCore.StaticFiles (3)
HtmlDirectoryFormatter.cs (3)
145HtmlEncode(subdir.LastModified.ToString(CultureInfo.CurrentCulture))); 181HtmlEncode(file.Length.ToString("n0", CultureInfo.CurrentCulture)), 182HtmlEncode(file.LastModified.ToString(CultureInfo.CurrentCulture)));
Microsoft.AspNetCore.WebUtilities (10)
FormPipeReader.cs (3)
320CultureInfo.CurrentCulture, 330CultureInfo.CurrentCulture, 339CultureInfo.CurrentCulture,
src\aspnetcore\src\Shared\WebEncoders\Properties\EncoderResources.cs (2)
27return string.Format(CultureInfo.CurrentCulture, WebEncoders_InvalidCountOffsetOrLength, p0, p1, p2); 35return string.Format(CultureInfo.CurrentCulture, WebEncoders_MalformedInput, p0);
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (5)
161CultureInfo.CurrentCulture, 230CultureInfo.CurrentCulture, 333CultureInfo.CurrentCulture, 492CultureInfo.CurrentCulture, 506CultureInfo.CurrentCulture,
Microsoft.Build (24)
BackEnd\BuildManager\BuildManager.cs (4)
920: CultureInfo.CurrentCulture; 1899var oldCulture = CultureInfo.CurrentCulture; 1904if (!Equals(CultureInfo.CurrentCulture, _buildParameters!.Culture)) 1925if (!Equals(CultureInfo.CurrentCulture, oldCulture))
BackEnd\BuildManager\BuildParameters.cs (1)
110private CultureInfo _culture = CultureInfo.CurrentCulture;
BackEnd\BuildManager\BuildSubmission.cs (1)
126ThreadPoolExtensions.QueueThreadPoolWorkItemWithCulture(Callback, CultureInfo.CurrentCulture, CultureInfo.CurrentUICulture);
BackEnd\Client\MSBuildClient.cs (1)
662CultureInfo.CurrentCulture,
BackEnd\Components\Logging\LoggingService.cs (1)
1615originalCultureInfo = CultureInfo.CurrentCulture;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
248sb.Append((string)Convert.ChangeType(parameterValue, typeof(string), CultureInfo.CurrentCulture));
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
988CultureInfo savedCulture = CultureInfo.CurrentCulture;
Evaluation\Evaluator.cs (1)
1223SetBuiltInProperty(ReservedPropertyNames.buildNodeCount, _maxNodeCount.ToString(CultureInfo.CurrentCulture));
Evaluation\ProjectXmlChangedEventArgs.cs (1)
55get { return _unformattedReason != null ? String.Format(CultureInfo.CurrentCulture, _unformattedReason, _formattingParameter) : null; }
Globbing\MSBuildGlob.cs (1)
208: $"c:{CultureInfo.CurrentCulture.Name};{matchFileExpression}";
Logging\BaseConsoleLogger.cs (1)
810time = String.Format(CultureInfo.CurrentCulture,
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
802argument = Convert.ToString(arguments[i], CultureInfo.CurrentCulture);
Logging\LogFormatter.cs (1)
39return timeStamp.ToString("HH:mm:ss.fff", CultureInfo.CurrentCulture);
Logging\ParallelLogger\ParallelConsoleLogger.cs (3)
336CultureInfo.CurrentCulture.TextInfo.ListSeparator + " ", 339WriteLinePretty(string.Format(CultureInfo.CurrentCulture, Microsoft.Build.Framework.Resources.SR.LogFileOutputPath, logger.LoggerName, displayPaths)); 1765string time = String.Format(CultureInfo.CurrentCulture,
Logging\TerminalLogger\TerminalLogger.cs (3)
629Terminal.WriteLine(string.Join(CultureInfo.CurrentCulture.TextInfo.ListSeparator + " ", summaryAndTotalText, failedText, passedText, skippedText, durationText)); 644CultureInfo.CurrentCulture.TextInfo.ListSeparator + " ", 647Terminal.WriteLine(string.Format(CultureInfo.CurrentCulture, Microsoft.Build.Framework.Resources.SR.LogFileOutputPath, logger.LoggerName, displayPaths));
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
150writer.WriteLine(DateTime.Now.ToString("G", CultureInfo.CurrentCulture));
src\msbuild\src\Shared\TaskHostConfiguration.cs (1)
48private CultureInfo _culture = CultureInfo.CurrentCulture;
Microsoft.Build.Framework (9)
LazyFormattedBuildEventArgs.cs (1)
123argValue = Convert.ToString(argument, CultureInfo.CurrentCulture) ?? "";
LoggersRegisteredEventArgs.cs (2)
84CultureInfo.CurrentCulture, 87string.Join(CultureInfo.CurrentCulture.TextInfo.ListSeparator + " ", l.OutputFilePaths))));
Utilities\EventArgsFormatting.cs (1)
354CultureInfo.CurrentCulture, finalFormat,
Utilities\FileMatcher.cs (2)
1650? CultureInfo.CurrentCulture.Name 2166sb.Append(CultureInfo.CurrentCulture.Name);
Utilities\ThreadPoolExtensions.cs (3)
26CultureInfo originalThreadCulture = CultureInfo.CurrentCulture; 30if (CultureInfo.CurrentCulture != culture) 45if (CultureInfo.CurrentCulture != originalThreadCulture)
Microsoft.Build.NuGetSdkResolver (6)
GlobalJsonReader.cs (3)
76context.Logger.LogMessage(string.Format(CultureInfo.CurrentCulture, Strings.FailedToFindPathToGlobalJson, startingPath, e.Message)); 254sdkResolverContext.Logger.LogMessage(string.Format(CultureInfo.CurrentCulture, Strings.FailedToReadGlobalJson, globalJsonPath, e.Message)); 275sdkResolverContext.Logger.LogMessage(string.Format(CultureInfo.CurrentCulture, Strings.FailedToParseGlobalJson, globalJsonPath, e.Message));
NuGetSdkResolver.cs (3)
177logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_FailedToReadSettings, e.Message)); 234logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.CouldNotFindInstalledPackage, sdk)); 240logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.PackageWasNotInstalled, sdk, sdk.Name));
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\MSBuildTask\Utilities.cs (2)
156return new ArgumentException(string.Format(CultureInfo.CurrentCulture, errorString, args), e); 162return new ArgumentException(string.Format(CultureInfo.CurrentCulture, errorString, args));
Microsoft.Build.Tasks.Core (13)
AssemblyDependency\AssemblyInformation.cs (1)
534throw new BadImageFormatException(string.Format(CultureInfo.CurrentCulture,
GenerateResource.cs (1)
3773NumberStyles.HexNumber, CultureInfo.CurrentCulture);
ManifestUtil\ApplicationManifest.cs (3)
658OutputMessages.AddWarningMessage("GenerateManifest.TargetPathTooLong", assembly.ToString(), _maxTargetPath.ToString(CultureInfo.CurrentCulture)); 678OutputMessages.AddWarningMessage("GenerateManifest.TargetPathTooLong", assembly.AssemblyIdentity.Name, _maxTargetPath.ToString(CultureInfo.CurrentCulture)); 704OutputMessages.AddWarningMessage("GenerateManifest.TargetPathTooLong", file.TargetPath, _maxTargetPath.ToString(CultureInfo.CurrentCulture));
ManifestUtil\OutputMessage.cs (2)
99taskText = String.Format(CultureInfo.CurrentCulture, taskText, arguments); 110taskText = String.Format(CultureInfo.CurrentCulture, taskText, arguments);
ManifestUtil\PathUtil.cs (1)
123return String.Compare(CanonicalizePath(path1), CanonicalizePath(path2), true, System.Globalization.CultureInfo.CurrentCulture) == 0;
ManifestUtil\SecurityUtil.cs (1)
901throw new ApplicationException(String.Format(CultureInfo.CurrentCulture,
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
307using (StringWriter writer = new StringWriter(new StringBuilder(), CultureInfo.CurrentCulture))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
150writer.WriteLine(DateTime.Now.ToString("G", CultureInfo.CurrentCulture));
System.Design.cs (1)
147return String.Format(CultureInfo.CurrentCulture, res, args);
WriteCodeFragment.cs (1)
298using (var writer = new StringWriter(generatedCode, CultureInfo.CurrentCulture))
Microsoft.Build.Utilities.Core (1)
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
150writer.WriteLine(DateTime.Now.ToString("G", CultureInfo.CurrentCulture));
Microsoft.CodeAnalysis.Analyzers (3)
MetaAnalyzers\Fixers\ApplyDiagnosticAnalyzerAttributeFix.cs (3)
39var title = string.Format(CultureInfo.CurrentCulture, CodeAnalysisDiagnosticsResources.ApplyDiagnosticAnalyzerAttribute_1, LanguageNames.CSharp); 43title = string.Format(CultureInfo.CurrentCulture, CodeAnalysisDiagnosticsResources.ApplyDiagnosticAnalyzerAttribute_1, LanguageNames.VisualBasic); 47title = string.Format(CultureInfo.CurrentCulture, CodeAnalysisDiagnosticsResources.ApplyDiagnosticAnalyzerAttribute_2, LanguageNames.CSharp, LanguageNames.VisualBasic);
Microsoft.CodeAnalysis.Features (8)
CodeLens\CodeLensReferencesService.cs (1)
116throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Unsupported language '{0}'", semanticModel.Language), nameof(semanticModel));
Completion\CompletionService.cs (2)
283items.Select(item => helper.GetMatchResult(item, includeMatchSpans: false, CultureInfo.CurrentCulture))); 311builder.AddRange(filteredItems.Select(item => completionPatternMatchers.GetMatchResult(item, includeMatchSpans: false, CultureInfo.CurrentCulture)));
Completion\PatternMatchHelper.cs (2)
150? GetMatch(item.FilterText, includeMatchSpans, CultureInfo.CurrentCulture) 166var additionalMatch = GetMatch(additionalFilterText, includeMatchSpans, CultureInfo.CurrentCulture);
EmbeddedLanguages\DateAndTime\EmbeddedCompletionContext.cs (1)
77var primaryCulture = CultureInfo.CurrentCulture;
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionServiceWithProviders.cs (1)
47builder.AddRange(filteredItems.Select(item => helper.GetMatchResult(item, includeMatchSpans: false, CultureInfo.CurrentCulture)));
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
256GlobalAssemblyCache.Instance.ResolvePartialName(fullAssemblyName, out assemblyLocation, preferredCulture: CultureInfo.CurrentCulture);
Microsoft.CodeAnalysis.NetAnalyzers (8)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\InterfaceMethodsShouldBeCallableByChildTypes.Fixer.cs (3)
76string title = string.Format(CultureInfo.CurrentCulture, MicrosoftCodeQualityAnalyzersResources.InterfaceMethodsShouldBeCallableByChildTypesFix1, symbolToChange.Name); 89string title = string.Format(CultureInfo.CurrentCulture, MicrosoftCodeQualityAnalyzersResources.InterfaceMethodsShouldBeCallableByChildTypesFix2, symbolToChange.Name); 98context.RegisterCodeFix(CodeAction.Create(string.Format(CultureInfo.CurrentCulture, MicrosoftCodeQualityAnalyzersResources.InterfaceMethodsShouldBeCallableByChildTypesFix3, methodSymbol.ContainingType.Name),
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ParameterNamesShouldMatchBaseDeclaration.Fixer.cs (1)
51string.Format(CultureInfo.CurrentCulture, MicrosoftCodeQualityAnalyzersResources.RenameToTitle, newName),
Microsoft.CodeQuality.Analyzers\QualityGuidelines\MarkMembersAsStatic.Fixer.cs (1)
260var annotation = WarningAnnotation.Create(string.Format(CultureInfo.CurrentCulture, MicrosoftCodeQualityAnalyzersResources.MarkMembersAsStaticCodeFix_WarningAnnotation, symbolFromEarlierSnapshot.Name));
Microsoft.NetCore.Analyzers\Performance\PreferConvertToHexStringOverBitConverter.Fixer.cs (1)
56string.Format(CultureInfo.CurrentCulture, PreferConvertToHexStringOverBitConverterCodeFixTitle, convertToHexStringName),
Microsoft.NetCore.Analyzers\Performance\RecommendCaseInsensitiveStringComparison.Fixer.cs (1)
115string title = string.Format(System.Globalization.CultureInfo.CurrentCulture,
Microsoft.NetFramework.Analyzers\TypesShouldNotExtendCertainBaseTypes.cs (1)
77string message = string.Format(CultureInfo.CurrentCulture, s_badBaseTypesToMessage[baseTypeName], namedTypeSymbol.ToDisplayString(), baseTypeName);
Microsoft.CodeAnalysis.Razor.Compiler (8)
Language\DocumentationDescriptor.FormattedDescriptor.cs (1)
34=> _formattedString ??= string.Format(CultureInfo.CurrentCulture, GetDocumentationText(), Args);
Language\Legacy\LiteralAttributeChunkGenerator.cs (1)
25return string.Format(CultureInfo.CurrentCulture, "LitAttr:{0:F}", Prefix);
Language\Legacy\LocationTagged.cs (1)
70formatProvider = CultureInfo.CurrentCulture;
Language\SourceLocation.cs (1)
101CultureInfo.CurrentCulture,
Language\SourceMapping.cs (1)
52return string.Format(CultureInfo.CurrentCulture, "{0} -> {1}", OriginalSpan, GeneratedSpan);
Language\SourceSpan.cs (1)
91CultureInfo.CurrentCulture, "({0}:{1},{2} [{3}] {4})",
SourceGenerators\Diagnostics\RazorDiagnostics.cs (2)
96razorDiagnostic.GetMessage(CultureInfo.CurrentCulture), 97razorDiagnostic.GetMessage(CultureInfo.CurrentCulture),
Microsoft.CodeAnalysis.Scripting (2)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
60gacFileResolver: GacFileResolver.IsAvailable ? new GacFileResolver(preferredCulture: CultureInfo.CurrentCulture) : null,
ScriptBuilder.cs (1)
115formatter.Format(filtered[0], CultureInfo.CurrentCulture),
Microsoft.CodeAnalysis.VisualBasic.Features (4)
CodeLens\VisualBasicDisplayInfoService.vb (4)
73symbolName = String.Format(CultureInfo.CurrentCulture, VBFeaturesResources.Property_getter_name, symbolNameWithNoParams) 77symbolName = String.Format(CultureInfo.CurrentCulture, VBFeaturesResources.Property_setter_name, symbolNameWithNoParams) 87symbolName = String.Format(CultureInfo.CurrentCulture, VBFeaturesResources.Event_add_handler_name, symbolNameWithNoParams) 91symbolName = String.Format(CultureInfo.CurrentCulture, VBFeaturesResources.Event_remove_handler_name, symbolNameWithNoParams)
Microsoft.CodeAnalysis.Workspaces (1)
PatternMatching\PatternMatcher.cs (1)
49culture ??= CultureInfo.CurrentCulture;
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\ComInterop\DynamicVariantExtensions.cs (1)
53CultureInfo ci = CultureInfo.CurrentCulture;
Microsoft.Data.Analysis (4)
DataFrame.cs (2)
532cultureInfo = CultureInfo.CurrentCulture; 615cultureInfo = CultureInfo.CurrentCulture;
DataFrame.IO.cs (2)
364cultureInfo = CultureInfo.CurrentCulture; 658cultureInfo = CultureInfo.CurrentCulture;
Microsoft.DotNet.ApiCompat.Task (1)
src\sdk\src\Tasks\Common\BuildErrorException.cs (1)
27: this(string.Format(CultureInfo.CurrentCulture, format, args))
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
ChooseBestP2PTargetFrameworkTask.cs (2)
56string errorMessage = string.Format(CultureInfo.CurrentCulture, "The project target framework '{0}' is not a supported target framework.", $"TargetFrameworkMoniker: {CurrentProjectTargetFramework}, TargetPlatformMoniker:{CurrentProjectTargetPlatform}"); 107Log.LogError(string.Format(CultureInfo.CurrentCulture, "Project '{0}' targets '{1}'. It cannot be referenced by a project that targets '{2}{3}'.", project.ItemSpec, referencedProjectFrameworkString, projectNuGetFramework.DotNetFrameworkName, projectNuGetFramework.HasPlatform ? "-" + projectNuGetFramework.DotNetPlatformName : string.Empty));
Microsoft.Extensions.AI.Evaluation.Reporting (7)
Storage\DiskBasedResponseCache.CacheEntry.cs (2)
40string.Format(CultureInfo.CurrentCulture, DeserializationFailedMessage, cacheEntryFilePath)); 57string.Format(CultureInfo.CurrentCulture, DeserializationFailedMessage, cacheEntryFilePath));
Storage\DiskBasedResponseCache.cs (4)
150CultureInfo.CurrentCulture, 168CultureInfo.CurrentCulture, 315? string.Format(CultureInfo.CurrentCulture, EntryFileNotFound, entryFilePath) 316: string.Format(CultureInfo.CurrentCulture, ContentsFileNotFound, contentsFilePath));
Storage\DiskBasedResultStore.cs (1)
79string.Format(CultureInfo.CurrentCulture, DeserializationFailedMessage, resultFile.FullName))
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (9)
Storage\AzureStorageResponseCache.CacheEntry.cs (2)
45string.Format(CultureInfo.CurrentCulture, DeserializationFailedMessage, fileClient.Name)); 63string.Format(CultureInfo.CurrentCulture, DeserializationFailedMessage, fileClient.Name));
Storage\AzureStorageResponseCache.cs (6)
97CultureInfo.CurrentCulture, 118CultureInfo.CurrentCulture, 250? string.Format(CultureInfo.CurrentCulture, EntryFileNotFound, entryFilePath) 251: string.Format(CultureInfo.CurrentCulture, ContentsFileNotFound, contentsFilePath)); 273? string.Format(CultureInfo.CurrentCulture, EntryFileNotFound, entryFilePath) 274: string.Format(CultureInfo.CurrentCulture, ContentsFileNotFound, contentsFilePath));
Storage\AzureStorageResultStore.cs (1)
120string.Format(CultureInfo.CurrentCulture, DeserializationFailedMessage, fileClient.Name));
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (3)
158string.Format(global::System.Globalization.CultureInfo.CurrentCulture, GetValidationErrorMessage(), name, Minimum, Maximum); 178System.Globalization.CultureInfo culture = ParseLimitsInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture; 201System.Globalization.CultureInfo formatProvider = ConvertValueInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture;
Microsoft.Extensions.Diagnostics.Probes (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (3)
113string.Format(global::System.Globalization.CultureInfo.CurrentCulture, GetValidationErrorMessage(), name, Minimum, Maximum); 133System.Globalization.CultureInfo culture = ParseLimitsInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture; 156System.Globalization.CultureInfo formatProvider = ConvertValueInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture;
Microsoft.Extensions.Http.Diagnostics (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (3)
161string.Format(global::System.Globalization.CultureInfo.CurrentCulture, GetValidationErrorMessage(), name, Minimum, Maximum); 181System.Globalization.CultureInfo culture = ParseLimitsInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture; 204System.Globalization.CultureInfo formatProvider = ConvertValueInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture;
Microsoft.Extensions.Http.Resilience (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (3)
815string.Format(global::System.Globalization.CultureInfo.CurrentCulture, GetValidationErrorMessage(), name, Minimum, Maximum); 835System.Globalization.CultureInfo culture = ParseLimitsInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture; 871System.Globalization.CultureInfo formatProvider = ConvertValueInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture;
Microsoft.Extensions.Localization (1)
ResourceManagerStringLocalizer.cs (1)
119var value = string.Format(CultureInfo.CurrentCulture, format ?? name, arguments);
Microsoft.Extensions.Telemetry (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (3)
169string.Format(global::System.Globalization.CultureInfo.CurrentCulture, GetValidationErrorMessage(), name, Minimum, Maximum); 189System.Globalization.CultureInfo culture = ParseLimitsInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture; 212System.Globalization.CultureInfo formatProvider = ConvertValueInInvariantCulture ? global::System.Globalization.CultureInfo.InvariantCulture : global::System.Globalization.CultureInfo.CurrentCulture;
Microsoft.Maui (1)
Platform\TimeExtensions.cs (1)
19 cultureInfo ??= CultureInfo.CurrentCulture;
Microsoft.Maui.Controls (2)
BindingExpressionHelper.cs (2)
34 if (stringValue.EndsWith(CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator, StringComparison.Ordinal) && DecimalTypes.Contains(convertTo)) 47 value = Convert.ChangeType(value, convertTo, CultureInfo.CurrentCulture);
Microsoft.ML.AutoML.SourceGenerator (10)
Template\EstimatorType.cs (2)
206this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 213this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Template\SearchSpace.cs (2)
223this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 230this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Template\SweepableEstimator_T_.cs (2)
230this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 237this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Template\SweepableEstimator.cs (2)
225this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 232this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Template\SweepableEstimatorFactory.cs (2)
201this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 208this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Microsoft.ML.CodeGenerator (20)
Templates\Azure\Console\AzureModelBuilder.cs (2)
300this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 307this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Templates\Azure\Model\AzureImageModelOutputClass.cs (2)
241this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 248this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (2)
241this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 248this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Templates\Console\ConsumeModel.cs (2)
252this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 259this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Templates\Console\ModelBuilder.cs (2)
617this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 624this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Templates\Console\ModelInputClass.cs (2)
215this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 222this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Templates\Console\ModelOutputClass.cs (2)
258this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 265this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Templates\Console\ModelProject.cs (2)
247this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 254this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Templates\Console\PredictProgram.cs (2)
274this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 281this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Templates\Console\PredictProject.cs (2)
252this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args)); 259this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
Microsoft.NET.Build.Containers (1)
Resources\Resource.cs (1)
53string.Format(CultureInfo.CurrentCulture, resource, args);
Microsoft.NET.Build.Extensions.Tasks (10)
src\sdk\src\Tasks\Common\BuildErrorException.cs (1)
27: this(string.Format(CultureInfo.CurrentCulture, format, args))
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (1)
173string conflictMessage = string.Format(CultureInfo.CurrentCulture, Strings.EncounteredConflict_Info,
src\sdk\src\Tasks\Common\ConflictResolution\FrameworkListReader.cs (2)
80string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingFrameworkListInvalidValue, 91string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingFrameworkListInvalidValue,
src\sdk\src\Tasks\Common\ConflictResolution\PlatformManifestReader.cs (4)
21string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.CouldNotLoadPlatformManifest, 43string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingPlatformManifest, 60string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingPlatformManifestInvalidValue, 70string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingPlatformManifestInvalidValue,
src\sdk\src\Tasks\Common\ConflictResolution\ResolvePackageFileConflicts.cs (1)
140log.LogError(string.Format(CultureInfo.CurrentCulture, Strings.CouldNotLoadPlatformManifest, pm.ItemSpec));
src\sdk\src\Tasks\Common\MessageBase.cs (1)
59message = string.Format(CultureInfo.CurrentCulture, format, FormatArguments);
Microsoft.NET.Build.Tasks (12)
CheckForDuplicateItems.cs (1)
48string message = string.Format(CultureInfo.CurrentCulture, Strings.DuplicateItemsError,
ShowMissingWorkloads.cs (1)
59var errorMessage = string.Format(CultureInfo.CurrentCulture,
src\sdk\src\Tasks\Common\BuildErrorException.cs (1)
27: this(string.Format(CultureInfo.CurrentCulture, format, args))
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (1)
173string conflictMessage = string.Format(CultureInfo.CurrentCulture, Strings.EncounteredConflict_Info,
src\sdk\src\Tasks\Common\ConflictResolution\FrameworkListReader.cs (2)
80string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingFrameworkListInvalidValue, 91string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingFrameworkListInvalidValue,
src\sdk\src\Tasks\Common\ConflictResolution\PlatformManifestReader.cs (4)
21string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.CouldNotLoadPlatformManifest, 43string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingPlatformManifest, 60string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingPlatformManifestInvalidValue, 70string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingPlatformManifestInvalidValue,
src\sdk\src\Tasks\Common\ConflictResolution\ResolvePackageFileConflicts.cs (1)
140log.LogError(string.Format(CultureInfo.CurrentCulture, Strings.CouldNotLoadPlatformManifest, pm.ItemSpec));
src\sdk\src\Tasks\Common\MessageBase.cs (1)
59message = string.Format(CultureInfo.CurrentCulture, format, FormatArguments);
Microsoft.NET.Sdk.Publish.Tasks (33)
MsDeploy\CommonUtility.cs (18)
406_strErrorMessage = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYLOADFAIL, 535_strErrorMessage = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYLOADFAIL, 554_strErrorMessage = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYLOADFAIL, 703strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedArchiveDir, string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 705strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedPackage, Path.GetFileName(destRoot), string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 779strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedArchiveDir, string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 781strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedPackage, Path.GetFileName(destRoot), string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 872log.LogMessage(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SkipDirectiveSetEnable, skipDirective.Name, enabled.ToString())); 876log.LogWarning(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_UnknownSkipDirective, name)); 1139string msg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_AddParameterIntoObject, name, value, deploymentObject.Name); 1158string errMessage = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_UnknownParameter, name, sb.ToString()); 1389log.LogMessage(Framework.MessageImportance.Normal, string.Format(CultureInfo.CurrentCulture, Resources.BUILDTASK_RemoveEmptyDirectories_Deleting, dirinfo.FullName)); 1672Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_FailedWithException, strBuilder.ToString())); 1684Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_FailedWithExceptionWithDetail, e.Message, strBuilder.ToString())); 1837task.Log.LogMessage(Framework.MessageImportance.Low, string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYVERSIONLOAD, task.ToString(), MSWebDeploymentAssembly.DynamicAssembly?.AssemblyFullName)); 1838task.Log.LogMessage(Framework.MessageImportance.Low, string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYVERSIONLOAD, task.ToString(), MSWebDelegationAssembly.DynamicAssembly?.AssemblyFullName)); 1843task.Log.LogMessage(Framework.MessageImportance.Low, string.Format(CultureInfo.CurrentCulture, Resources.BUILDTASK_FailedToLoadThisVersionMsDeployTryingTheNext, versionArray[i], e.Message)); 1847throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYASSEMBLYLOAD_FAIL, task.ToString()));
MsDeploy\DynamicAssembly.cs (1)
14AssemblyFullName = string.Format(System.Globalization.CultureInfo.CurrentCulture, "{0}, Version={1}.{2}.0.0, Culture=neutral, PublicKeyToken={3}", assemblyName, verToLoad.Major, verToLoad.Minor, publicKeyToken);
MsDeploy\VsMSDeployObject.cs (1)
351return string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_ObjectIdentity, m_provider.ToString(), root);
Tasks\MsDeploy\MSDeploy.cs (3)
1059Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.MSDEPLOY_InvalidSourceCount, Source.GetLength(0)), null); 1065Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.MSDEPLOY_InvalidDestinationCount, Destination.GetLength(0)), null); 1105Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.MSDEPLOY_InvalidVerbForTheInput, Verb, Source?[0].ItemSpec, (fNullDestination) ? null : Destination?[0].ItemSpec), null);
Tasks\MsDeploy\VsMsdeploy.cs (2)
443string strMsg = string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_Start, _src.ToString(), _dest.ToString()); 883Log.LogError(string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_FailedWithException, e.Message));
Tasks\ValidateParameter.cs (1)
21Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.ValidateParameter_ArgumentNullError, ParameterName));
Tasks\Xdt\TransformXml.cs (7)
116logger?.StartSection(string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.BUILDTASK_TransformXml_TransformationStart, Source)); 119logger?.LogMessage(string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.BUILDTASK_TransformXml_TransformationApply, Transform)); 126logger?.LogMessage(string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.BUILDTASK_TransformXml_TransformOutput, Destination)); 165logger?.EndSection(string.Format(System.Globalization.CultureInfo.CurrentCulture, succeeded ? 194string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.BUILDTASK_TransformXml_DestinationWriteFailed, ex.Message), 218string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.BUILDTASK_TransformXml_SourceLoadFailed, ex.Message), 236string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.BUILDTASK_TransformXml_TransformLoadFailed, ex.Message),
Microsoft.TemplateEngine.Core (1)
Expressions\Cpp\CppStyleEvaluatorDefinition.cs (1)
551if ((literal.Contains(CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (2)
ParameterConverter.cs (1)
72if ((literal.Contains(CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator)
ValueForms\TitleCaseValueFormFactory.cs (1)
19_ => CultureInfo.CurrentCulture.TextInfo.ToTitleCase(value),
Microsoft.TemplateEngine.Utils (2)
ParserExtensions.cs (2)
21if (double.TryParse(stringValue, NumberStyles.Float, CultureInfo.CurrentCulture, out doubleValue)) 45return Convert.ToDouble(value, CultureInfo.CurrentCulture);
Microsoft.TestPlatform.AdapterUtilities (12)
Helpers\ReflectionHelpers.cs (3)
19throw new NotImplementedException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.MethodNotImplementedOnPlatform, className, methodName)); 69string.Format(CultureInfo.CurrentCulture, Resources.Resources.ErrorInvalidSequenceAt, escapedStringSegment, i) 92string message = string.Format(CultureInfo.CurrentCulture, Resources.Resources.ErrorNoClosingQuote, escapedStringSegment);
ManagedNameUtilities\ManagedNameHelper.Reflection.cs (4)
142throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.ErrorMethodExpectedAsAnArgument, nameof(method))); 178throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.ErrorMethodExpectedAsAnArgument, nameof(method))); 276string message = string.Format(CultureInfo.CurrentCulture, Resources.Resources.ErrorTypeNotFound, parsedManagedTypeName); 290string message = string.Format(CultureInfo.CurrentCulture, Resources.Resources.ErrorMethodNotFound, methodName, managedTypeName);
ManagedNameUtilities\ManagedNameParser.cs (5)
73string message = string.Format(CultureInfo.CurrentCulture, Resources.Resources.ErrorUnexpectedCharactersAtEnd, pos); 106string message = string.Format(CultureInfo.CurrentCulture, Resources.Resources.ErrorWhitespaceNotValid, i); 207string message = string.Format(CultureInfo.CurrentCulture, Resources.Resources.ErrorWhitespaceNotValid, i); 231string msg = string.Format(CultureInfo.CurrentCulture, Resources.Resources.ErrorWhitespaceNotValid, i); 261string msg = string.Format(CultureInfo.CurrentCulture, Resources.Resources.ErrorWhitespaceNotValid, i);
Microsoft.TestPlatform.CommunicationUtilities (8)
DataCollectionRequestHandler.cs (1)
353CultureInfo.CurrentCulture,
DataCollectionRequestSender.cs (2)
210logMessage = string.Format(CultureInfo.CurrentCulture, CommonResources.DataCollectionMessageFormat, dataCollectionMessageEventArgs.Message); 215logMessage = string.Format(CultureInfo.CurrentCulture, CommonResources.DataCollectorMessageFormat, dataCollectionMessageEventArgs.FriendlyName, dataCollectionMessageEventArgs.Message);
Serialization\TestCaseConverter.cs (1)
88testCase.LineNumber = int.Parse(propertyData!, CultureInfo.CurrentCulture); break;
TestRequestSender.cs (4)
264CultureInfo.CurrentCulture, 308throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, CommonResources.VersionCheckTimedout, timeout, EnvironmentHelper.VstestConnectionTimeout)); 702LogErrorMessage(string.Format(CultureInfo.CurrentCulture, CommonResources.AbortedTestRun, reason)); 729LogErrorMessage(string.Format(CultureInfo.CurrentCulture, CommonResources.AbortedTestDiscoveryWithReason, reason));
Microsoft.TestPlatform.CoreUtilities (15)
Helpers\DotnetHostHelper.cs (2)
84string errorMessage = string.Format(CultureInfo.CurrentCulture, Resources.NoDotnetExeFound, "dotnet"); 97string errorMessage = string.Format(CultureInfo.CurrentCulture, Resources.NoDotnetExeFound, MONOEXENAME);
Output\OutputExtensions.cs (2)
108string message = args != null && args.Length > 0 ? string.Format(CultureInfo.CurrentCulture, format, args) : format; 109return string.Format(CultureInfo.CurrentCulture, messageTypeFormat, message);
Utilities\JobQueue.cs (3)
214string.Format(CultureInfo.CurrentCulture, Resources.QueuePausedDisposeError, _displayName)); 282string.Format(CultureInfo.CurrentCulture, Resources.QueueAlreadyDisposed, _displayName)); 361_exceptionLogger(string.Format(CultureInfo.CurrentCulture, Resources.ExceptionFromJobProcessor, _displayName, e));
ValidateArg.cs (8)
94var message = string.Format(CultureInfo.CurrentCulture, Resources.Error_ArgumentIsNegative); 109var message = string.Format(CultureInfo.CurrentCulture, Resources.Error_ArgumentIsNegative); 127var message = string.Format(CultureInfo.CurrentCulture, Resources.Error_ArgumentIsEmpty); 146var message = string.Format(CultureInfo.CurrentCulture, Resources.Error_ArgumentNotTypeOf, typeof(T).FullName); 168var message = string.Format(CultureInfo.CurrentCulture, Resources.Error_ArgumentPropertyIsNull, propertyName); 184var message = string.Format(CultureInfo.CurrentCulture, Resources.Error_ArgumentPropertyIsNegative, propertyName); 202var message = string.Format(CultureInfo.CurrentCulture, Resources.Error_ArgumentPropertyIsEmpty, propertyName); 222var message = string.Format(CultureInfo.CurrentCulture, Resources.Error_ArgumentPropertyNotTypeOf, propertyName, typeof(T).FullName);
Microsoft.TestPlatform.CrossPlatEngine (36)
Client\ProxyDiscoveryManager.cs (1)
314LogMessage(TestMessageLevel.Warning, string.Format(CultureInfo.CurrentCulture, Resources.Resources.NonExistingExtensions, string.Join(",", nonExistingExtensions)));
Client\ProxyExecutionManager.cs (1)
439LogMessage(TestMessageLevel.Warning, string.Format(CultureInfo.CurrentCulture, Resources.Resources.NonExistingExtensions, string.Join(",", nonExistingExtensions)));
Client\ProxyOperationManager.cs (5)
254throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.FailedToLaunchTestHost, ex.ToString())); 526throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.TestHostExitedWithError, string.Join("', '", sources), BuildCrashErrorContext(_testHostProcessFileName, _testHostProcessStdError))); 539CultureInfo.CurrentCulture, 550CultureInfo.CurrentCulture, 559errorMsg = string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.TestHostExitedWithError, string.Join("', '", sources), BuildCrashErrorContext(_testHostProcessFileName, _testHostProcessStdError));
Client\TestLoggerManager.cs (3)
185string.Format(CultureInfo.CurrentCulture, CommonResources.LoggerNotFound, value)); 423CultureInfo.CurrentCulture, 668CultureInfo.CurrentCulture,
DataCollection\ProxyDataCollectionManager.cs (5)
252CultureInfo.CurrentCulture, 309portNumber.ToString(CultureInfo.CurrentCulture), 312_processHelper.GetCurrentProcessId().ToString(CultureInfo.CurrentCulture) 321commandlineArguments.Add(((int)EqtTrace.TraceLevel).ToString(CultureInfo.CurrentCulture)); 334DateTime.Now.ToString("yy-MM-dd_HH-mm-ss_fffff", CultureInfo.CurrentCulture),
Discovery\DiscovererEnumerator.cs (6)
247string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.DeprecatedAdapterPath)); 259CultureInfo.CurrentCulture, 280var mesage = string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.DiscovererInstantiationException, e.Message); 316string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.NoTestsAvailableForGivenTestCaseFilter, testCaseFilterToShow, sourcesString)); 322string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.TestRunFailed_NoDiscovererFound_NoTestsAreAvailableInTheSources, sourcesString)); 366string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.TestRunFailed_NoDiscovererFound_NoTestsAreAvailableInTheSources, sourcesString));
Discovery\DiscoveryContext.cs (1)
54var errorMessage = string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.UnsupportedPropertiesInTestCaseFilter, invalidPropertiesString, validPropertiesSttring);
Discovery\DiscoveryManager.cs (3)
263var errorMessage = string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.FileNotFound, src); 287var errorMessage = string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.DuplicateSource, src); 296var errorMessage = string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.NoValidSourceFoundForDiscovery, sourcesString);
EventHandlers\TestRequestHandler.cs (1)
367SendLog(TestMessageLevel.Informational, string.Format(CultureInfo.CurrentCulture, CrossPlatResources.TesthostDiagLogOutputFile, EqtTrace.LogFile));
Execution\BaseRunTests.cs (6)
391CultureInfo.CurrentCulture, 429EqtTrace.Warning(string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.AttachDebuggerToDefaultTestHostFailure, pid)); 535? string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.AccessDenied, e.Message) 548CultureInfo.CurrentCulture, 564TestRunEventsHandler?.HandleLogMessage(TestMessageLevel.Warning, string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.DeprecatedAdapterPath)); 704string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.ExecutionThreadApartmentStateNotSupportedForFramework, _runConfiguration.TargetFramework!.ToString()));
Execution\RunTestsWithSources.cs (4)
83string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.NoTestsAvailableForGivenTestCaseFilter, testCaseFilterToShow, sourcesString)); 90CultureInfo.CurrentCulture, 176CultureInfo.CurrentCulture, 192CultureInfo.CurrentCulture,
Microsoft.TestPlatform.Extensions.BlameDataCollector (11)
BlameCollector.cs (7)
233var message = string.Format(CultureInfo.CurrentCulture, Resources.Resources.InactivityTimeout, value, unit); 386_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.Name)); 394return string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterValueIncorrect, attribute.Name, attribute.Value, string.Join(", ", validValues)); 412_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.UnexpectedValueForInactivityTimespanValue, attribute.Value)); 449_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.Name)); 658_logger.LogWarning(args.Context, string.Format(CultureInfo.CurrentCulture, Resources.Resources.ProcDumpCouldNotStart, e.Message)); 663_logger.LogWarning(args.Context, string.Format(CultureInfo.CurrentCulture, Resources.Resources.ProcDumpCouldNotStart, e.ToString()));
ProcDumpDumper.cs (1)
131var procdumpNotFound = string.Format(CultureInfo.CurrentCulture, Resources.Resources.ProcDumpNotFound, procDumpPath);
ProcessCodeMethods.cs (1)
124return parts.Length < 5 ? InvalidProcessId : int.Parse(parts[3], CultureInfo.CurrentCulture);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\UILanguageOverride.cs (1)
81SetIfNotAlreadySet(VSLANG, language.LCID.ToString(CultureInfo.CurrentCulture), environmentVariableHelper); // for tools following VS guidelines to just work in CLI
WindowsHangDumper.cs (1)
62var message = string.Format(CultureInfo.CurrentCulture, Resources.Resources.Dumping, process.Id, process.ProcessName);
Microsoft.TestPlatform.Filter.Source (13)
Condition.cs (4)
249throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, 250string.Format(CultureInfo.CurrentCulture, InvalidCondition, conditionString))); 313_ => throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, string.Format(CultureInfo.CurrentCulture, InvalidOperator, operationString))),
FilterExpression.cs (8)
105throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, MissingOperand)); 117throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, MissingOperand)); 127throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, MissingCloseParenthesis)); 132throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, string.Empty)); 225throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, EmptyParenthesis)); 291throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, MissingOpenParenthesis)); 300throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, MissingOpenParenthesis)); 326throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, MissingOperator));
FilterHelper.cs (1)
97throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterEscapeException, str));
Microsoft.TestPlatform.TestHostRuntimeProvider (4)
Hosting\DefaultTestHostManager.cs (1)
481string message = string.Format(CultureInfo.CurrentCulture, TestHostResources.MultipleFileVersions, extensionsString);
Hosting\DotnetTestHostManager.cs (3)
430string message = string.Format(CultureInfo.CurrentCulture, TestHostResources.CouldNotFindTesthost, sourcePath, sourceDirectory); 482string message = string.Format(CultureInfo.CurrentCulture, TestHostResources.CouldNotFindTesthost, sourcePath, sourceDirectory); 522string message = string.Format(CultureInfo.CurrentCulture, TestHostResources.NoDotnetMuxerFoundForArchitecture, $"dotnet{(_platformEnvironment.OperatingSystem == PlatformOperatingSystem.Windows ? ".exe" : string.Empty)}", finalTargetArchitecture.ToString());
Microsoft.TestPlatform.Utilities (8)
InferRunSettingsHelper.cs (7)
562CultureInfo.CurrentCulture, 573CultureInfo.CurrentCulture, 576CultureInfo.CurrentCulture, 587CultureInfo.CurrentCulture, 590CultureInfo.CurrentCulture, 689var incompatibilityMessage = string.Format(CultureInfo.CurrentCulture, OMResources.SourceIncompatible, onlyFileName, actualFramework.Name, actualPlatform); 702incompatibleSettingWarning = string.Format(CultureInfo.CurrentCulture, OMResources.DisplayChosenSettings, chosenFramework, chosenPlatform, warnings.ToString(), MultiTargetingForwardLink);
MSTestSettingsUtilities.cs (1)
35throw new XmlException(string.Format(CultureInfo.CurrentCulture, UtilitiesResources.UnExpectedSettingsFile));
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (6)
VsTestConsoleProcessManager.cs (3)
91throw new Exception(string.Format(CultureInfo.CurrentCulture, Resources.InvalidFilePath, vstestConsolePath)); 125throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, InternalResources.CannotFindConsoleRunner, consoleRunnerPath), consoleRunnerPath); 174throw new Exception(string.Format(CultureInfo.CurrentCulture, InternalResources.ProcessStartWin32Failure, consoleRunnerPath, arguments), ex);
VsTestConsoleWrapper.cs (3)
1059CultureInfo.CurrentCulture, 1070CultureInfo.CurrentCulture, 1084CultureInfo.CurrentCulture,
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
234Return CultureInfo.CurrentCulture
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
2166m_SearchText = Text.ToUpper(CultureInfo.CurrentCulture)
Microsoft.VisualStudio.TestPlatform.Client (2)
DesignMode\DesignModeClient.cs (1)
134CultureInfo.CurrentCulture,
Execution\TestRunRequest.cs (1)
173string message = string.Format(CultureInfo.CurrentCulture, ClientResources.TestSessionTimeoutMessage, _testSessionTimeout);
Microsoft.VisualStudio.TestPlatform.Common (32)
DataCollection\DataCollectionAttachmentManager.cs (1)
128string accessDeniedMessage = string.Format(CultureInfo.CurrentCulture, Resources.Resources.AccessDenied, accessException.Message);
DataCollection\DataCollectionManager.cs (7)
516LogWarning(string.Format(CultureInfo.CurrentCulture, Resources.Resources.UnableToFetchUriString, dataCollectorSettings.FriendlyName)); 527LogWarning(string.Format(CultureInfo.CurrentCulture, Resources.Resources.DataCollectorNotFound, dataCollectorSettings.FriendlyName)); 557LogWarning(string.Format(CultureInfo.CurrentCulture, Resources.Resources.DataCollectorInitializationError, dataCollectorSettings.FriendlyName, ex)); 578dataCollectorInfo.Logger.LogError(_dataCollectionEnvironmentContext.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.DataCollectorInitializationError, dataCollectorConfig.FriendlyName, ex)); 600LogWarning(string.Format(CultureInfo.CurrentCulture, Resources.Resources.IgnoredDuplicateConfiguration, settings.FriendlyName)); 676string.Format(CultureInfo.CurrentCulture, Resources.Resources.DataCollectorErrorOnGetVariable, friendlyName, ex)); 719CultureInfo.CurrentCulture,
DataCollection\TestPlatformDataCollectionLogger.cs (1)
86CultureInfo.CurrentCulture,
ExtensionFramework\TestExtensionManager.cs (2)
155string.Format(CultureInfo.CurrentCulture, CommonResources.InvalidExtensionUriFormat, extension.Metadata.ExtensionUri, e)); 173string.Format(CultureInfo.CurrentCulture, CommonResources.DuplicateExtensionUri, extension.Metadata.ExtensionUri));
ExtensionFramework\TestPluginDiscoverer.cs (1)
104string fileLoadErrorMessage = string.Format(CultureInfo.CurrentCulture, CommonResources.FailedToLoadAdapaterFile, file);
ExtensionFramework\VSExtensionManager.cs (2)
64string message = string.Format(CultureInfo.CurrentCulture, Resources.Resources.FailedToFindInstalledUnitTestExtensions, ex); 81throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.VSInstallationNotFound));
RunSettings.cs (5)
117CultureInfo.CurrentCulture, 162CultureInfo.CurrentCulture, 184string.Format(CultureInfo.CurrentCulture, CommonResources.DuplicateSettingsProvided, reader.Name)); 204CultureInfo.CurrentCulture, 218CultureInfo.CurrentCulture,
SettingsProvider\SettingsProviderExtensionManager.cs (1)
75CultureInfo.CurrentCulture,
src\vstest\src\Microsoft.TestPlatform.Filter.Source\Condition.cs (4)
249throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, 250string.Format(CultureInfo.CurrentCulture, InvalidCondition, conditionString))); 313_ => throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, string.Format(CultureInfo.CurrentCulture, InvalidOperator, operationString))),
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FilterExpression.cs (8)
105throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, MissingOperand)); 117throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, MissingOperand)); 127throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, MissingCloseParenthesis)); 132throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, string.Empty)); 225throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, EmptyParenthesis)); 291throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, MissingOpenParenthesis)); 300throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, MissingOpenParenthesis)); 326throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, MissingOperator));
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (3)
HtmlLogger.cs (3)
151var htmlParameterErrorMsg = string.Format(CultureInfo.CurrentCulture, HtmlResource.PrefixAndNameProvidedError); 344var htmlFilePathMessage = string.Format(CultureInfo.CurrentCulture, HtmlResource.HtmlFilePath, HtmlFilePath); 369throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, HtmlResource.CannotGenerateUniqueFilePath, fileName, TestResultsDirPath));
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (11)
ObjectModel\TestRun.cs (1)
64_name = string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.Common_TestRunName, Environment.GetEnvironmentVariable("UserName"), Environment.MachineName, FormatDateTimeForRunName(DateTime.Now));
TrxLogger.cs (4)
497string resultsFileMessage = string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.TrxLoggerResultsFile, trxFileName); 504ConsoleOutput.Instance.Error(false, string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.TrxLoggerWriteFailed, trxFileName, ex.Message)); 527string message = string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.MessageForSkippedTests, testCaseName); 541var overwriteWarningMsg = string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.TrxLoggerResultsFileOverwriteWarning, filePath);
Utility\Converter.cs (3)
73.Select(workItem => int.Parse(workItem, CultureInfo.CurrentCulture)); 214CultureInfo.CurrentCulture, 407CultureInfo.CurrentCulture,
Utility\TrxFileHelper.cs (3)
90throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.Common_NothingLeftAfterReplaciingBadCharsInName, fileName)); 162throw new Exception(string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.Common_CannotGetNextTimestampFileName, fileName, directoryName, timestampFormat)); 326throw new Exception(string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.Common_CannotGetNextIterationName, originalName, baseDirectoryName));
Microsoft.VisualStudio.TestPlatform.ObjectModel (76)
Client\FilterOptions.cs (2)
33sb.AppendLine(string.Format(CultureInfo.CurrentCulture, "FilterOptions:")); 34sb.AppendLine(string.Format(CultureInfo.CurrentCulture,
Client\TestRunCriteria.cs (3)
616sb.AppendLine(string.Format(CultureInfo.CurrentCulture, "TestRunCriteria:")); 618CultureInfo.CurrentCulture, 625sb.AppendLine(string.Format(CultureInfo.CurrentCulture, " Settingsxml={0}", TestRunSettings));
DataCollector\Common\RequestId.cs (1)
136? throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.Common_ObjectMustBeOfType, [typeof(RequestId).Name]), nameof(obj))
DataCollector\DataCollectionRunSettings.cs (4)
143CultureInfo.CurrentCulture, 167CultureInfo.CurrentCulture, 201CultureInfo.CurrentCulture, 220CultureInfo.CurrentCulture,
DataCollector\DataCollectorSettings.cs (3)
164throw new SettingsException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.InvalidDataCollectorUriInSettings, reader.Value)); 190CultureInfo.CurrentCulture, 216CultureInfo.CurrentCulture,
DataCollector\TransferInformation\FileTransferInformation.cs (1)
63throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.Common_FileNotExist, [path]), path);
Logger\LoggerRunSettings.cs (2)
127CultureInfo.CurrentCulture, 179CultureInfo.CurrentCulture,
Logger\LoggerSettings.cs (4)
151CultureInfo.CurrentCulture, 174CultureInfo.CurrentCulture, 189CultureInfo.CurrentCulture, 218CultureInfo.CurrentCulture,
Navigation\FullSymbolReader.cs (1)
142throw new COMException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.FailedToCreateDiaSession, hResult));
Nuget.Frameworks\CompatibilityCacheKey.cs (1)
62CultureInfo.CurrentCulture,
Nuget.Frameworks\FrameworkNameProvider.cs (1)
500CultureInfo.CurrentCulture,
Nuget.Frameworks\NuGetFramework.cs (2)
218CultureInfo.CurrentCulture, 253CultureInfo.CurrentCulture,
Nuget.Frameworks\NuGetFrameworkFactory.cs (4)
118CultureInfo.CurrentCulture, 197CultureInfo.CurrentCulture, 214CultureInfo.CurrentCulture, 237CultureInfo.CurrentCulture,
RunSettings\RunConfiguration.cs (31)
510maxCpuCount.InnerXml = MaxCpuCount.ToString(CultureInfo.CurrentCulture); 514batchSize.InnerXml = BatchSize.ToString(CultureInfo.CurrentCulture); 518testSessionTimeout.InnerXml = TestSessionTimeout.ToString(CultureInfo.CurrentCulture); 656CultureInfo.CurrentCulture, 673throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 688CultureInfo.CurrentCulture, 706CultureInfo.CurrentCulture, 724CultureInfo.CurrentCulture, 740throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 752throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 764throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 776throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 794CultureInfo.CurrentCulture, 803throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 822CultureInfo.CurrentCulture, 831throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 850CultureInfo.CurrentCulture, 859throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 876: throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 893throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 898throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 913EqtTrace.Error(string.Format(CultureInfo.CurrentCulture, Resources.Resources.SolutionDirectoryNotExists, solutionDirectory)); 933CultureInfo.CurrentCulture, 968throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 987throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 1001throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 1016throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 1032throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 1048throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 1067throw new SettingsException(string.Format(CultureInfo.CurrentCulture, 1080CultureInfo.CurrentCulture,
RunSettings\TestRunParameters.cs (1)
66CultureInfo.CurrentCulture,
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FilterHelper.cs (1)
97throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterEscapeException, str));
TestObject.cs (2)
272throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.ConverterNotSupported, valueType.Name)); 319throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.ConverterNotSupported, valueType.Name));
TestProperty\TestProperty.cs (2)
72throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.UnexpectedTypeOfProperty, valueType, id)); 335CultureInfo.CurrentCulture,
TestResult.cs (5)
122CultureInfo.CurrentCulture, 132result.AppendFormat(CultureInfo.CurrentCulture, Resources.Resources.TestFailureMessageFormat, ErrorMessage); 139CultureInfo.CurrentCulture, 154CultureInfo.CurrentCulture, 163CultureInfo.CurrentCulture,
Utilities\XmlRunSettingsUtilities.cs (5)
259throw new SettingsException(string.Format(CultureInfo.CurrentCulture, "{0} {1}", Resources.CommonResources.MalformedRunSettingsFile, ex.Message), ex); 328CultureInfo.CurrentCulture, 344CultureInfo.CurrentCulture, 383string.Format(CultureInfo.CurrentCulture, "{0} {1}", Resources.CommonResources.MalformedRunSettingsFile, ex.Message), 400throw new XmlException(string.Format(CultureInfo.CurrentCulture, ObjectModelResources.CouldNotFindXmlNode, "RunSettings"));
Microsoft.Web.XmlTransform (25)
NamedTypeFactory.cs (4)
49throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_UnknownTypeName, typeName, typeof(ObjectType).Name)); 52throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_IncorrectBaseType, type.FullName, typeof(ObjectType).Name)); 57throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_NoValidConstructor, type.FullName)); 78throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_AmbiguousTypeMatch, typeName));
XmlLocator.cs (3)
126throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_RequiresMinimumArguments, GetType().Name, min)); 134throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.XMLTRANSFORMATION_RequiresExactArguments, GetType().Name, min)); 141throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.XMLTRANSFORMATION_TooManyArguments, GetType().Name));
XmlLocators.cs (1)
48throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_MatchAttributeDoesNotExist, key));
XmlTransform.cs (3)
168return string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_TransformNameFormatLong, TransformName, context.TransformLineNumber, context.TransformLinePosition); 178return string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_TransformNameFormatShort, TransformName); 319string message = string.Format(System.Globalization.CultureInfo.CurrentCulture,messageFormat, matchFailureContext.XPath);
XmlTransformation.cs (4)
310throw new XmlNodeException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_ImportUnknownAttribute, attribute.Name), attribute); 314throw new XmlNodeException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_ImportAttributeConflict), context.Element); 317throw new XmlNodeException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_ImportMissingAssembly), context.Element); 320throw new XmlNodeException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_ImportMissingNamespace), context.Element);
XmlTransformationLogger.cs (2)
154throw new XmlTransformationException(String.Format(CultureInfo.CurrentCulture, message, messageArgs)); 181throw new XmlNodeException(String.Format(CultureInfo.CurrentCulture, message, messageArgs), referenceNode);
XmlTransforms.cs (8)
118throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_InsertMissingArgument, GetType().Name)); 121throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_InsertTooManyArguments, GetType().Name)); 127throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_InsertBadXPath, xpath)); 132throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_InsertBadXPathResult, xpath)); 148Log.LogMessage(MessageType.Verbose, string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_TransformMessageInsert, TransformNode.Name)); 157Log.LogMessage(MessageType.Verbose, string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_TransformMessageInsert, TransformNode.Name)); 201Log.LogMessage(MessageType.Verbose, string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_TransformMessageCommentOut, TargetNode.Name)); 463throw new XmlTransformationException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_MatchAttributeDoesNotExist, match));
MSBuild (4)
OutOfProcTaskHostNode.cs (1)
1361? File.CreateText(string.Format(CultureInfo.CurrentCulture, Path.Combine(FileUtilities.TempFileDirectory, @"MSBuild_NodeShutdown_{0}.txt"), EnvironmentUtilities.CurrentProcessId))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
150writer.WriteLine(DateTime.Now.ToString("G", CultureInfo.CurrentCulture));
src\msbuild\src\Shared\TaskHostConfiguration.cs (1)
48private CultureInfo _culture = CultureInfo.CurrentCulture;
XMake.cs (1)
1504ThreadPoolExtensions.QueueThreadPoolWorkItemWithCulture(callback, CultureInfo.CurrentCulture, CultureInfo.CurrentUICulture);
NuGet.Build.Tasks (6)
CheckForDuplicateNuGetItemsTask.cs (1)
65CultureInfo.CurrentCulture,
GenerateRestoreGraphFileTask.cs (1)
40options["GenerateRestoreGraphFile"] = true.ToString(CultureInfo.CurrentCulture);
GetReferenceNearestTargetFrameworkTask.cs (4)
79var errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedTargetFramework, $"TargetFrameworkMoniker: {CurrentProjectTargetFramework}, TargetPlatformMoniker:{CurrentProjectTargetPlatform}"); 91errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedFallbackFramework, fallbackFramework); 177var message = string.Format(CultureInfo.CurrentCulture, 196logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.NoCompatibleTargetFramework, project.ItemSpec, projectNuGetFramework.DotNetFrameworkName, referencedProjectFrameworkString));
NuGet.Build.Tasks.Console (8)
MSBuildStaticGraphRestore.cs (7)
149MSBuildLogger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Log_NoProjectsForRestore)); 306throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_NoVersion, id)); 316throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_OnlyExactVersionsAreAllowed, id, versionRange.OriginalString)); 729MSBuildLogger.LogInformation(string.Format(CultureInfo.CurrentCulture, 912var message = string.Format(CultureInfo.CurrentCulture, Strings.Error_ReadingProjectInformation, projectName ?? Path.GetFileNameWithoutExtension(projectPath), innerException.Message); 1046MSBuildLogger.LogDebug(string.Format(CultureInfo.CurrentCulture, Strings.CreatedDependencyGraphSpec, sw.ElapsedMilliseconds)); 1395MSBuildLogger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.ProjectEvaluationSummary, projectGraph.ProjectNodes.Count, sw.ElapsedMilliseconds, buildCount, failedBuildSubmissionCount));
Program.cs (1)
130Message = string.Format(CultureInfo.CurrentCulture, Strings.Error_StaticGraphUnhandledException, e.ToString()),
NuGet.Build.Tasks.Pack (24)
GetPackOutputItemsTask.cs (1)
109CultureInfo.CurrentCulture,
GetProjectReferencesFromAssetsFileTask.cs (2)
49CultureInfo.CurrentCulture, 61CultureInfo.CurrentCulture,
IsPackableFalseWarningTask.cs (1)
14Logger.LogWarning(string.Format(CultureInfo.CurrentCulture,
PackTaskLogic.cs (20)
61CultureInfo.CurrentCulture, 112CultureInfo.CurrentCulture, 141CultureInfo.CurrentCulture, 196CultureInfo.CurrentCulture, 212CultureInfo.CurrentCulture, 256CultureInfo.CurrentCulture, 263CultureInfo.CurrentCulture, 287CultureInfo.CurrentCulture, 296CultureInfo.CurrentCulture, 327CultureInfo.CurrentCulture, 349CultureInfo.CurrentCulture, 461string.Format(CultureInfo.CurrentCulture, 465CultureInfo.CurrentCulture, 530throw new PackagingException(NuGetLogCode.NU5026, string.Format(CultureInfo.CurrentCulture, Strings.Error_FileNotFound, finalOutputPath)); 548string.Format(CultureInfo.CurrentCulture, 551string.Format(CultureInfo.CurrentCulture, Strings.AmbigiousPackageAssemblies, targetPath))); 558throw new PackagingException(NuGetLogCode.NU5027, string.Format(CultureInfo.CurrentCulture, Strings.InvalidTargetFramework, finalOutputPath)); 885string.Format(CultureInfo.CurrentCulture, 888string.Format(CultureInfo.CurrentCulture, Strings.AmbigiousPackageDependencies, string.Join(", ", unsuppressedAliases)))); 1186CultureInfo.CurrentCulture,
NuGet.CommandLine.XPlat (121)
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 (1)
112Console.WriteLine(string.Format(CultureInfo.CurrentCulture, Strings.ConsoleConfirmMessage, description));
Commands\LocalsCommand.cs (3)
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\Package\Download\PackageDownloadRunner.cs (7)
81CultureInfo.CurrentCulture, 104CultureInfo.CurrentCulture, 153CultureInfo.CurrentCulture, 162CultureInfo.CurrentCulture, 268CultureInfo.CurrentCulture, 316CultureInfo.CurrentCulture, 333CultureInfo.CurrentCulture,
Commands\Package\Update\PackageUpdateCommandRunner.cs (6)
72string.Format(CultureInfo.CurrentCulture, Strings.Error_PathIsMissingOrInvalid, args.Project), 798return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_UpdatingOutdatedPackages, projectPath); 803return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_UpdatingVulnerablePackages, projectPath); 808return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_UpdatedMessage, packageId, currentVersion, newVersion); 813return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_FinalSummary, updatedCount, scannedCount); 818return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_AllVersionsHaveAdvisories, packageId);
Commands\PackageReferenceCommands\AddPackageReferenceCommand.cs (3)
148throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PrereleaseWhenVersionSpecified, 157throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PkgMissingArgument, 169throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (10)
33packageReferenceArgs.Logger.LogInformation(string.Format(CultureInfo.CurrentCulture, 40packageReferenceArgs.Logger.LogWarning(string.Format(CultureInfo.CurrentCulture, 75throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_NoDgSpec)); 96throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, 164throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.PrereleaseVersionsAvailable, latestVersion)); 225packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, 247packageReferenceArgs.Logger.LogInformation(string.Format(CultureInfo.CurrentCulture, 261packageReferenceArgs.Logger.LogInformation(string.Format(CultureInfo.CurrentCulture, 289logger.LogError(string.Format(CultureInfo.CurrentCulture, 299logger.LogError(string.Format(CultureInfo.CurrentCulture,
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (2)
210throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_InvalidOptions)); 300return string.Join(", ", enumValues).ToLower(CultureInfo.CurrentCulture);
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (6)
61text: string.Format(CultureInfo.CurrentCulture, 108string.Format(CultureInfo.CurrentCulture, Strings.Error_NotPRProject, projectPath)); 124string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_InvalidFramework, frameworkAlias, projectPath)); 248string.Format(CultureInfo.CurrentCulture, Strings.Error_AssetsFileNotFound, projectPath)); 262string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_ErrorReadingAssetsFile, assetsPath)); 287string.Format(CultureInfo.CurrentCulture, Strings.Warning_AuditSourceWithoutData, source.Name)
Commands\PackageReferenceCommands\RemovePackageReferenceCommand.cs (2)
72throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PkgMissingArgument, 84throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Commands\PackageReferenceCommands\RemovePackageReferenceCommandRunner.cs (1)
18packageReferenceArgs.Logger.LogInformation(string.Format(CultureInfo.CurrentCulture,
Commands\PackageSearch\PackageSearchArgs.cs (1)
53throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidOptionValue, number, option));
Commands\PackageSearch\PackageSearchResultTableRenderer.cs (1)
78CultureInfo culture = CultureInfo.CurrentCulture;
Commands\Signing\SignCommand.cs (4)
194throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PkgMissingArgument, 227throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 245throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 283string message = string.Format(CultureInfo.CurrentCulture, Strings.SignCommandInvalidCertificateFingerprint, NuGetLogCode.NU3043);
Commands\Signing\TrustedSignersCommand.cs (3)
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));
Commands\Signing\VerifyCommand.cs (1)
96throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PkgMissingArgument,
Commands\Why\WhyCommandRunner.cs (17)
50CultureInfo.CurrentCulture, 75string.Format(CultureInfo.CurrentCulture, 85string.Format(CultureInfo.CurrentCulture, 120CultureInfo.CurrentCulture, 131CultureInfo.CurrentCulture, 144CultureInfo.CurrentCulture, 164CultureInfo.CurrentCulture, 180CultureInfo.CurrentCulture, 182string.Format(CultureInfo.CurrentCulture, Strings.Error_PathIsMissingOrInvalid, path)); 198CultureInfo.CurrentCulture, 200string.Format(CultureInfo.CurrentCulture, Strings.Error_PathIsMissingOrInvalid, path)); 211CultureInfo.CurrentCulture, 231CultureInfo.CurrentCulture, 255CultureInfo.CurrentCulture, 263CultureInfo.CurrentCulture, 283CultureInfo.CurrentCulture, 291CultureInfo.CurrentCulture,
ListPackage\ListPackageConsoleRenderer.cs (9)
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)); 172consoleOut.WriteLine(string.Format(CultureInfo.CurrentCulture, " [{0}]: ", frameworkHeader));
Messages.cs (10)
15return string.Format(CultureInfo.CurrentCulture, Strings.Error_NoVersionsAvailable, packageId); 21return string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotFindPackageVersionForCpmPackage, packageId); 27return string.Format(CultureInfo.CurrentCulture, Strings.Unsupported_UpdatePackageWithDifferentPerTfmVersions, packageId, projectPath); 33return string.Format(CultureInfo.CurrentCulture, Strings.Warning_AlreadyHighestVersion, packageId, version, projectPath); 39return string.Format(CultureInfo.CurrentCulture, Strings.Warning_AlreadyUsingSameVersion, packageId, version); 45return string.Format(CultureInfo.CurrentCulture, Strings.Error_MissingVersion, packageId); 51return string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidVersionRange, input); 57return string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidVersion, input); 63return string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageSourceMappingNotFound, packageId); 69return string.Format(CultureInfo.CurrentCulture, Strings.Error_CannotUpgradeAutoReferencedPackage, project, packageId);
Program.cs (1)
92log.LogDebug(string.Format(CultureInfo.CurrentCulture, Strings.Debug_CurrentUICulture, CultureInfo.DefaultThreadCurrentUICulture));
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)
61throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Utility\HttpSourcesUtility.cs (2)
44CultureInfo.CurrentCulture, 52CultureInfo.CurrentCulture,
Utility\MSBuildAPIUtility.cs (20)
67throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_MsBuildUnableToOpenProject, projectCSProjPath)); 82throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_MsBuildUnableToOpenProject, projectCSProjPath)); 148CultureInfo.CurrentCulture, 185Logger.LogError(string.Format(CultureInfo.CurrentCulture, 216packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_VersionOverrideDisabled, string.Join(";", dependenciesWithVersionOverride.Select(d => d.Name)))); 225packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_VersionsNotAllowed, string.Join(";", dependenciesWithDefinedVersion.Select(d => d.Name)))); 231packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_AutoreferencedReferencesNotAllowed, string.Join(";", autoReferencedAndDefinedInCentralFile.Select(d => d.Name)))); 237packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_MissingPackageVersion, string.Join(";", packageReferencedDependenciesWithoutCentralVersionDefined.Select(d => d.Name)))); 246packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_FloatingVersionsAreNotAllowed)); 255packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_AddPkg_CentralPackageVersions_PackageVersion_WrongLocation, packageReferenceArgs.PackageId)); 263packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_AddPkg_CentralPackageVersions_PackageReference_WrongLocation, packageReferenceArgs.PackageId)); 451Logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Info_AddPkgAdded, libraryDependency.Name, packageVersion, itemGroup.ContainingProject.FullPath 467Logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Info_AddPkgAdded, libraryDependency.Name, packageVersion, itemGroup.ContainingProject.FullPath)); 482Logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Info_AddPkgCPM, libraryDependency.Name, itemGroup.ContainingProject.FullPath, project.GetPropertyValue(DirectoryPackagesPropsPathPropertyName))); 602Logger.LogInformation(string.Format(CultureInfo.CurrentCulture, 668errors.AppendLine(string.Format(CultureInfo.CurrentCulture, 674throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, 799throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_ErrorReadingAssetsFile, assetsFile.Path)); 832throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_ErrorReadingReferenceFromProject, project.FullPath)); 1087return string.Format(CultureInfo.CurrentCulture, "'$(TargetFramework)' == '{0}'", targetFramework);
Utility\TableParser.cs (2)
59formattedDataCell.Value = (colIndex == 0 ? "> " : "") + formattedDataCell.Value?.ToString(CultureInfo.CurrentCulture) ?? string.Empty; 84formattedDataCell.Value = (colIndex == 0 ? "> " : "") + formattedDataCell.Value?.ToString(CultureInfo.CurrentCulture) ?? string.Empty;
Utility\XPlatUtility.cs (2)
103CultureInfo.CurrentCulture, 114CultureInfo.CurrentCulture,
NuGet.Commands (275)
ClientCertificatesCommand\AddClientCertRunner.cs (4)
26throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 49throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, 58throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_ClientCertificatesNotFound)); 72getLogger().LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.ClientCertificateSuccessfullyAdded, args.PackageSource));
ClientCertificatesCommand\ClientCertArgsExtensions.cs (8)
70throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, 83throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, 96throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, 113throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, 123throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, 130throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, 140throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, 147throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture,
ClientCertificatesCommand\ListClientCertRunner.cs (10)
47builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesLogTitle, indexIndentation, item.PackageSource, item.ElementName); 54builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesFileCertFilePath, defaultIndentation, fileCertItem.FilePath); 59builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesFileCertNoPassword, defaultIndentation); 63builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesFileCertWithPassword, defaultIndentation); 71builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesStoreCertStoreLocation, defaultIndentation, StoreClientCertItem.GetString(storeCertItem.StoreLocation)); 73builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesStoreCertStoreName, defaultIndentation, StoreClientCertItem.GetString(storeCertItem.StoreName)); 75builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesStoreCertFindBy, defaultIndentation, StoreClientCertItem.GetString(storeCertItem.FindType)); 77builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesStoreCertFindValue, defaultIndentation, storeCertItem.FindValue); 87builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesItemCertificateMessage, defaultIndentation, certificate.GetCertHashString()); 93builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesItemCertificateError, defaultIndentation, e.GetBaseException().Message);
ClientCertificatesCommand\RemoveClientCertRunner.cs (2)
25getLogger().LogInformation(string.Format(CultureInfo.CurrentCulture, 33getLogger().LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.ClientCertificateSuccessfullyRemoved, args.PackageSource));
ClientCertificatesCommand\UpdateClientCertRunner.cs (5)
27throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 37throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 47throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 64throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_ClientCertificatesNotFound)); 77getLogger().LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.ClientCertificateSuccessfullyUpdated, args.PackageSource));
CommandArgs\PackArgs.cs (1)
97throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidSymbolPackageFormat, symbolPackageFormat));
CommandRunners\DeleteRunner.cs (1)
37throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "delete", packageSource.Source));
CommandRunners\LocalsCommandRunner.cs (13)
49throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_Help)); 100throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_InvalidLocalResourceName)); 113localsArgs.LogError(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_LocalResourcePathNotSet)); 117localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, $"{resourceName}: {path}")); 158throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_InvalidLocalResourceName)); 163throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearFailed)); 167localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearedSuccessful)); 180localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearingNuGetPluginsCache, pluginsCacheFolder)); 195localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearingNuGetGlobalPackagesFolder, globalPackagesFolderPath)); 212localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearingNuGetHttpCache, 231localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearingNuGetTempCache, 285localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_LocalsPartiallyCleared)); 289localsArgs.LogError(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_FailedToDeletePath, failedDelete));
CommandRunners\PackCommandRunner.cs (16)
127string.Format(CultureInfo.CurrentCulture, Strings.RestrictedPackageIdWarning, builder.Id), 178CultureInfo.CurrentCulture, 188string.Format(CultureInfo.CurrentCulture, Strings.Log_PackageCommandSuccess, outputPath), 211CultureInfo.CurrentCulture, 222CultureInfo.CurrentCulture, 263CultureInfo.CurrentCulture, 429CultureInfo.CurrentCulture, 500NuGetLogCode.NU5009, string.Format(CultureInfo.CurrentCulture, Strings.Error_CannotFindMsbuild)); 518string.Format(CultureInfo.CurrentCulture, Strings.Warning_DuplicatePropertyKey, property.Key), 540throw new PackagingException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackFailed, path)); 617string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidTargetFramework, reference.AssemblyName)); 685CultureInfo.CurrentCulture, 774CultureInfo.CurrentCulture, 994string.Format(CultureInfo.CurrentCulture, message, arg?.ToString()), 1022CultureInfo.CurrentCulture, 1052CultureInfo.CurrentCulture,
CommandRunners\PushRunner.cs (1)
89throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "push", packageSource.Source));
Common\CommandException.cs (1)
25: base(string.Format(CultureInfo.CurrentCulture, format, args))
ListCommand\ListCommandRunner.cs (3)
50listArgs.Logger.LogWarning(string.Format(CultureInfo.CurrentCulture, listArgs.ListCommandListNotSupported, packageSource.Source)); 89string.Format(CultureInfo.CurrentCulture, 97string.Format(CultureInfo.CurrentCulture,
MSBuildProjectFactory.cs (3)
177CultureInfo.CurrentCulture, 246throw new PackagingException(NuGetLogCode.NU5020, string.Format(CultureInfo.CurrentCulture, Strings.Error_EmptySourceFilePath)); 251throw new PackagingException(NuGetLogCode.NU5021, string.Format(CultureInfo.CurrentCulture, Strings.Error_EmptySourceFileProjectDirectory, sourcePath));
RestoreCommand\CompatibilityIssue.cs (14)
132return string.Format(CultureInfo.CurrentCulture, Strings.Log_MissingImplementationFx, Package.Id, Package.Version, AssemblyName, Framework); 134return string.Format(CultureInfo.CurrentCulture, Strings.Log_MissingImplementationFxRuntime, Package.Id, Package.Version, AssemblyName, Framework, RuntimeIdentifier); 138var message = string.Format(CultureInfo.CurrentCulture, 144var supports = string.Format(CultureInfo.CurrentCulture, 149var noSupports = string.Format(CultureInfo.CurrentCulture, 158var message = string.Format(CultureInfo.CurrentCulture, 163var supports = string.Format(CultureInfo.CurrentCulture, 167var noSupports = string.Format(CultureInfo.CurrentCulture, 175var message = string.Format(CultureInfo.CurrentCulture, 184var message = string.Format(CultureInfo.CurrentCulture, 210sb.AppendFormat(CultureInfo.CurrentCulture, supports); 229sb.AppendFormat(CultureInfo.CurrentCulture, supports); 258return string.Format(CultureInfo.CurrentCulture, 272return string.Format(CultureInfo.CurrentCulture,
RestoreCommand\ContentFiles\ContentFileUtils.cs (1)
211var message = string.Format(CultureInfo.CurrentCulture, Strings.Error_UnknownBuildAction, nuspec.GetIdentity(), action, file);
RestoreCommand\DependencyGraphResolver.cs (1)
274await _logger.LogAsync(RestoreLogMessage.CreateWarning(NuGetLogCode.NU1502, string.Format(CultureInfo.CurrentCulture, Strings.Log_UnknownCompatibilityProfile, profile.Key)));
RestoreCommand\DependencyGraphResolver.DependencyGraphItem.cs (2)
178logger.Log(RestoreLogMessage.CreateWarning(NuGetLogCode.NU1511, string.Format(CultureInfo.CurrentCulture, Strings.Error_RestorePruningProjectReference, dependency.Name), dependency.Name, 190logger.LogDebug(string.Format(CultureInfo.CurrentCulture, Strings.RestoreDebugPruningPackageReference, $"{dependency.Name} {dependency.LibraryRange!.VersionRange.OriginalString}", parentLibrary, packageToPrune.VersionRange.MaxVersion));
RestoreCommand\Diagnostics\UnexpectedDependencyMessages.cs (6)
104message = string.Format(CultureInfo.CurrentCulture, Strings.Warning_MinVersionNonInclusive, 114message = string.Format(CultureInfo.CurrentCulture, Strings.Warning_MinVersionDoesNotExist, 162var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_DependencyBumpedUp, 189message: string.Format(CultureInfo.CurrentCulture, Strings.Warning_ProjectDependencyMissingVersion, 205message: string.Format(CultureInfo.CurrentCulture, Strings.Warning_ProjectDependencyMissingLowerBound, 292var message = string.Format(CultureInfo.CurrentCulture,
RestoreCommand\Diagnostics\UnresolvedMessages.cs (11)
102message = string.Format(CultureInfo.CurrentCulture, Strings.Error_UnableToFindProjectInfo, unresolved.Name); 108message = string.Format(CultureInfo.CurrentCulture, Strings.Error_ProjectDoesNotExist, unresolved.Name); 125message = string.Format(CultureInfo.CurrentCulture, Strings.Error_NoPackageVersionsExist, unresolved.Name, sourceList); 131message += ". " + string.Format(CultureInfo.CurrentCulture, 146firstLine = string.Format(CultureInfo.CurrentCulture, Strings.Error_NoStablePackageVersionsExist, unresolved.Name, rangeString); 151firstLine = string.Format(CultureInfo.CurrentCulture, Strings.Error_NoPackageVersionsExistInRange, unresolved.Name, rangeString); 165.Select(packageSource => string.Format(CultureInfo.CurrentCulture, 177message = string.Format(CultureInfo.CurrentCulture, 184message += " " + string.Format(CultureInfo.CurrentCulture, 237return string.Format(CultureInfo.CurrentCulture, 244return string.Format(CultureInfo.CurrentCulture,
RestoreCommand\FrameworkRuntimeDefinition.cs (1)
31CultureInfo.CurrentCulture,
RestoreCommand\LockFileBuilder.cs (3)
276var message = string.Format(CultureInfo.CurrentCulture, 304var message = string.Format(CultureInfo.CurrentCulture, 584CultureInfo.CurrentCulture,
RestoreCommand\Logging\WarningPropertiesCollection.cs (1)
173message.Message = string.Format(CultureInfo.CurrentCulture, Strings.WarningAsError, message.Message);
RestoreCommand\OriginalCaseGlobalPackageFolder.cs (1)
125CultureInfo.CurrentCulture,
RestoreCommand\ProjectRestoreCommand.cs (7)
67_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, pair.Key.DotNetFrameworkName)); 199string.Format(CultureInfo.CurrentCulture, 210string.Format(CultureInfo.CurrentCulture, 296await _logger.LogAsync(LogLevel.Verbose, string.Format(CultureInfo.CurrentCulture, Strings.Log_ResolvingConflicts, name)); 315var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ResolverConflict, 468_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, FrameworkRuntimePair.GetTargetGraphName(graph.Framework, runtimeName))); 511logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_MergingRuntimes, match.Library));
RestoreCommand\RequestFactory\NoOpRestoreResult.cs (4)
46log.LogInformation(string.Format(CultureInfo.CurrentCulture, 49log.LogVerbose(string.Format(CultureInfo.CurrentCulture, 55log.LogInformation(string.Format(CultureInfo.CurrentCulture, 58log.LogVerbose(string.Format(CultureInfo.CurrentCulture,
RestoreCommand\RequestFactory\RestoreSpecException.cs (2)
50CultureInfo.CurrentCulture, 58CultureInfo.CurrentCulture,
RestoreCommand\ResolverRequest.cs (1)
24return string.Format(CultureInfo.CurrentCulture, Strings.ResolverRequest_ToStringFormat, Request.ToString(), Requestor.ToString());
RestoreCommand\RestoreCommand.cs (31)
617_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoreNoOpFinish, _request.Project.Name)); 647_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoreNoOpDGChanged, _request.Project.Name)); 707string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "restore", source.Source))); 715string.Format(CultureInfo.CurrentCulture, Strings.Warning_HttpServerUsage, "restore", source.Source)); 867_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_SkippingPackagesLockFileGeneration, packagesLockFilePath)); 1026string.Format(CultureInfo.CurrentCulture, Strings.Error_PlatformVersionNotPresent, string.Join(", ", badPlatforms)) 1063string.Format(CultureInfo.CurrentCulture, Strings.Log_AliasContainsDisallowedCharacters, project.Name, alias))); 1072string.Format(CultureInfo.CurrentCulture, Strings.Log_AliasContainsDisallowedCharacters, project.Name, alias))); 1079string.Format(CultureInfo.CurrentCulture, Strings.Log_AliasContainsDisallowedCharacters, project.Name, alias))); 1213string.Format(CultureInfo.CurrentCulture, Strings.Error_RestorePruningDirectPackageReference, prunedPackage.Key), 1328CultureInfo.CurrentCulture, 1405CultureInfo.CurrentCulture, 1418CultureInfo.CurrentCulture, 1431CultureInfo.CurrentCulture, 1444CultureInfo.CurrentCulture, 1459CultureInfo.CurrentCulture, 1549errorMessageBuilder.AppendLine(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageValidationFailed, package.ToString())); 1550_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_PackageContentHashValidationFailed, package.ToString(), sha512, library.Sha512)); 1589var message = string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidLockFileInput, packagesLockFilePath); 1658CultureInfo.CurrentCulture, 1884CultureInfo.CurrentCulture, 1893CultureInfo.CurrentCulture, 1944CultureInfo.CurrentCulture, 1992await logger.LogAsync(LogLevel.Verbose, string.Format(CultureInfo.CurrentCulture, Strings.Log_PackagesAndProjectsAreCompatible, graph.TargetGraphName)); 2035var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ProjectDoesNotSpecifyTargetFrameworks, _request.Project.Name, _request.Project.FilePath); 2041_logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, _request.Project.FilePath)); 2142var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_UnknownCompatibilityProfile, profile.Key); 2212var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ProjectDoesNotSpecifyTargetFrameworks, _request.Project.Name, _request.Project.FilePath); 2241_logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, _request.Project.FilePath)); 2306var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_UnknownCompatibilityProfile, profile.Key); 2383var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_AliasingSupportedInNewDependencyResolver, request.Project.Name, SdkAnalysisLevelMinimums.V10_0_300);
RestoreCommand\RestoreResult.cs (7)
247log.LogInformation(string.Format(CultureInfo.CurrentCulture, 257log.LogInformation(string.Format(CultureInfo.CurrentCulture, 270log.LogInformation(string.Format(CultureInfo.CurrentCulture, 276log.LogInformation(string.Format(CultureInfo.CurrentCulture, 290log.LogVerbose(string.Format(CultureInfo.CurrentCulture, 296log.LogVerbose(string.Format(CultureInfo.CurrentCulture, 312log.LogInformation(string.Format(CultureInfo.CurrentCulture,
RestoreCommand\RestoreRunner.cs (7)
59CultureInfo.CurrentCulture, 125CultureInfo.CurrentCulture, 205CultureInfo.CurrentCulture, 253CultureInfo.CurrentCulture, 313CultureInfo.CurrentCulture, 321CultureInfo.CurrentCulture, 385throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, GetInvalidInputErrorMessage(input), input));
RestoreCommand\RestoreSummary.cs (3)
146string.Format(CultureInfo.CurrentCulture, Strings.Log_ErrorSummary, restoreSummary.InputPath), 179CultureInfo.CurrentCulture, 194logger.LogMinimal(string.Format(CultureInfo.CurrentCulture, Strings.Log_ProjectUpToDateSummary, noOpCount, restoreSummaries.Count));
RestoreCommand\SourceRepositoryDependencyProvider.cs (1)
293var message = string.Format(CultureInfo.CurrentCulture, Strings.Error_UnavailableSource, Source.Source);
RestoreCommand\Utility\AuditUtility.cs (1)
465string message = string.Format(CultureInfo.CurrentCulture, Strings.Warning_AuditSourceWithoutVulnerabilityData, _vulnerabilityInfoProviders[i].SourceName);
RestoreCommand\Utility\BuildAssetsUtils.cs (3)
73log.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Log_GeneratingMsBuildFile, file.Path)); 215GenerateProperty("RestoreSuccess", success.ToString(CultureInfo.CurrentCulture)), 296entry.Add(new XElement(Namespace + "Private", privateFlag.ToString(CultureInfo.CurrentCulture)));
RestoreCommand\Utility\MSBuildRestoreUtility.cs (8)
359CultureInfo.CurrentCulture, 485var text = string.Format(CultureInfo.CurrentCulture, Strings.CannotBeUsedWithOtherValues, Clear); 501var text = string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedProject, path); 511var text = string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedProject, path); 871throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_NoVersion, id)); 882throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_OnlyExactVersionsAreAllowed, id, versionRange.OriginalString)); 1148throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Invalid_AttributeValue, "SdkAnalysisLevel", sdkAnalysisLevel, "9.0.100")); 1163throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Invalid_AttributeValue, "UsingMicrosoftNETSdk", usingMicrosoftNETSdk, "false"));
RestoreCommand\Utility\NoOpRestoreUtilities.cs (5)
106request.Log.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_AssetsFileNotOnDisk, request.Project.Name)); 115request.Log.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_TargetsFileNotOnDisk, request.Project.Name, targetsFilePath)); 121request.Log.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_PropsFileNotOnDisk, request.Project.Name, propsFilePath)); 129request.Log.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_LockFileNotOnDisk, request.Project.Name, packageLockFilePath)); 140request.Log.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_MissingPackagesOnDisk, request.Project.Name));
RestoreCommand\Utility\PackageSpecFactory.cs (2)
724throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_NoVersion, id)); 734throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_OnlyExactVersionsAreAllowed, id, versionRange.OriginalString));
RestoreCommand\Utility\SpecValidationUtility.cs (19)
63CultureInfo.CurrentCulture, 107var message = string.Format(CultureInfo.CurrentCulture, Strings.MissingRequiredProperty, nameof(spec.RestoreMetadata)); 161var message = string.Format(CultureInfo.CurrentCulture, Strings.SpecValidationInvalidFramework, framework.TargetAlias); 168throw RestoreSpecException.Create(string.Format(CultureInfo.CurrentCulture, Strings.Invalid_Framework), files); 187CultureInfo.CurrentCulture, 199CultureInfo.CurrentCulture, 211CultureInfo.CurrentCulture, 229CultureInfo.CurrentCulture, 245CultureInfo.CurrentCulture, 264CultureInfo.CurrentCulture, 278CultureInfo.CurrentCulture, 292CultureInfo.CurrentCulture, 306CultureInfo.CurrentCulture, 317CultureInfo.CurrentCulture, 328CultureInfo.CurrentCulture, 339CultureInfo.CurrentCulture, 350CultureInfo.CurrentCulture, 367CultureInfo.CurrentCulture, 378CultureInfo.CurrentCulture,
SignCommand\CertificateProvider.cs (5)
73string.Format(CultureInfo.CurrentCulture, 82string.Format(CultureInfo.CurrentCulture, 96string.Format(CultureInfo.CurrentCulture, 108string.Format(CultureInfo.CurrentCulture, 240throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
SignCommand\SignCommandRunner.cs (1)
227string.Format(CultureInfo.CurrentCulture, Strings.SignCommandMultipleCertException,
SourcesCommands\SourceRunners.cs (19)
31var defaultNameToUse = defaultNamePrefix + i.ToString(CultureInfo.CurrentCulture); 72string.Format(CultureInfo.CurrentCulture, 95getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, 144getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, 150getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, Strings.SourcesCommandRegisteredSources)); 159CultureInfo.CurrentCulture, 164source.IsEnabled ? string.Format(CultureInfo.CurrentCulture, Strings.SourcesCommandEnabled) : string.Format(CultureInfo.CurrentCulture, Strings.SourcesCommandDisabled))); 165getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, "{0}{1}", sourcePadding, source.Source)); 197throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.Source_InvalidFormatValue, args.Format)); 221string.Format(CultureInfo.CurrentCulture, 228string.Format(CultureInfo.CurrentCulture, 251getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, 290throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "update source", args.Source)); 301getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, 321getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, 380getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, 384throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "enable source", packageSource.Source)); 389getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture,
TrustedSignersCommand\TrustedSignerActionsProvider.cs (13)
63await _logger.LogAsync(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, Strings.SuccessfullySynchronizedTrustedRepository, name)); 69throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_TrustedRepositoryDoesNotExist, name)); 95throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnsupportedTrustTarget, trustTarget.ToString())); 139await _logger.LogAsync(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, Strings.SuccessfullyAddedTrustedRepository, name)); 152await _logger.LogAsync(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, Strings.SuccessfullyAddedTrustedAuthor, name)); 179throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedHashAlgorithm, hashAlgorithm.ToString())); 210_logger.Log(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, logMessage, name)); 239await _logger.LogAsync(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, Strings.SuccessfullyAddedTrustedRepository, name)); 249throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_TrustedSignerAlreadyExists, name)); 254throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_TrustedRepoAlreadyExists, serviceIndex)); 284throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidCertificateInformationFromServer, serviceIndex)); 289throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_EmptyCertificateListInRepository, serviceIndex)); 313return string.Join(OwnersItem.OwnersListSeparator.ToString(CultureInfo.CurrentCulture), owners);
TrustedSignersCommand\TrustedSignersCommandRunner.cs (18)
64throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotAdd, Strings.Error_InvalidCombinationOfArguments)); 69throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_NoSignatureTrustedForPackage, trustedSignersArgs.PackagePath)); 98throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 124throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotAdd, Strings.Error_InvalidCombinationOfArguments)); 158throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotAdd, Strings.Error_InvalidCombinationOfArguments)); 169throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnavailableSource, trustedSignersArgs.Name)); 225trustedSignerBuilder.AppendLine(index + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogTitle, item.Name, item.ElementName)); 229trustedSignerBuilder.AppendLine(defaultIndentation + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogServiceIndex, repoItem.ServiceIndex)); 233trustedSignerBuilder.AppendLine(defaultIndentation + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogOwners, string.Join("; ", repoItem.Owners))); 244trustedSignerBuilder.AppendLine(defaultIndentation + extraIndentation + string.Format(CultureInfo.CurrentCulture, summaryAllowUntrustedRoot, cert.HashAlgorithm.ToString(), cert.Fingerprint)); 258await logger.LogAsync(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, Strings.NoTrustedSignersMatching, name)); 264await logger.LogAsync(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, Strings.SuccessfullyRemovedTrustedSigner, name)); 283throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotList, Strings.Error_InvalidCombinationOfArguments)); 304throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotRemove, Strings.Error_InvalidCombinationOfArguments)); 325throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotSync, Strings.Error_InvalidCombinationOfArguments)); 333throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PropertyCannotBeNullOrEmpty, nameof(name))); 348throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_NotSupportedHashAlgorithm, algorithm)); 359throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_ServiceIndexShouldBeHttps, serviceIndex));
Utility\MSBuildProjectFrameworkUtility.cs (1)
278CultureInfo.CurrentCulture,
Utility\PackageSourceProviderExtensions.cs (1)
52throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.InvalidSource, source));
VerifyCommand\VerifyCommandRunner.cs (7)
34verifyArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.VerifyCommand_VerificationTypeNotSupported)); 44verifyArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.VerifyCommand_NotSupported)); 103verifyArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.VerifyCommand_PackageIsNotValid, package)); 121logger.LogMinimal(Environment.NewLine + string.Format(CultureInfo.CurrentCulture, 125logger.LogMinimal(string.Format(CultureInfo.CurrentCulture, 144logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.VerifyCommand_FinishedWithErrors, errors, warnings)); 154logger.LogInformation(Environment.NewLine + string.Format(CultureInfo.CurrentCulture, Strings.VerifyCommand_Success, packageIdentity.ToString()));
NuGet.Common (14)
ClientVersionUtility.cs (1)
40version = versionAttr.Version.ToString(CultureInfo.CurrentCulture);
ConcurrencyUtilities.cs (2)
97CultureInfo.CurrentCulture, 187CultureInfo.CurrentCulture,
CryptoHashProvider.cs (1)
53throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedHashAlgorithm, hashAlgorithm), nameof(hashAlgorithm));
CryptoHashUtility.cs (5)
204string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedHashAlgorithmName, hashAlgorithmName), 253string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedHashAlgorithmName, hashAlgorithmName), 274string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedHashAlgorithmName, hashAlgorithmName), 307string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedHashAlgorithmName, oid), 328string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedSignatureAlgorithmName, signatureAlgorithmName),
DatetimeUtility.cs (1)
21return ToReadableTimeFormat(time, CultureInfo.CurrentCulture);
PathUtil\NuGetEnvironment.cs (1)
78throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
PathUtil\PathUtility.cs (1)
362var message = string.Format(CultureInfo.CurrentCulture, Strings.Argument_Must_Be_GreaterThanOrEqualTo, 6);
Telemetry\TelemetryActivity.cs (2)
121TelemetryEvent["StartTime"] = _startTime.ToString("O", CultureInfo.CurrentCulture); 122TelemetryEvent["EndTime"] = endTime.ToString("O", CultureInfo.CurrentCulture);
NuGet.Configuration (71)
ClientCertificate\ClientCertificateProvider.cs (1)
71var message = string.Format(CultureInfo.CurrentCulture, Resources.ClientCertificateDuplicateConfiguration,
PackageSource\PackageSource.cs (2)
133CultureInfo.CurrentCulture, 144CultureInfo.CurrentCulture,
PackageSource\PackageSourceCredential.cs (2)
65string.Format(CultureInfo.CurrentCulture, Resources.UnsupportedDecryptPassword, Source), e); 169string.Format(CultureInfo.CurrentCulture, Resources.UnsupportedEncryptPassword, source), e);
PackageSource\PackageSourceProvider.cs (3)
422CultureInfo.CurrentCulture, 425CultureInfo.CurrentCulture, 943string message = string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigDuplicateDisabledSources, duplicatedKey.Key, filePath);
Settings\Items\CertificateItem.cs (6)
23throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Fingerprint))); 55set => UpdateAttribute(ConfigurationConstants.AllowUntrustedRoot, value.ToString(CultureInfo.CurrentCulture).ToLower(CultureInfo.InvariantCulture)); 76AddAttribute(ConfigurationConstants.AllowUntrustedRoot, allowUntrustedRoot.ToString(CultureInfo.CurrentCulture).ToLower(CultureInfo.InvariantCulture)); 84throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 85string.Format(CultureInfo.CurrentCulture, Resources.UnsupportedHashAlgorithm, Attributes[ConfigurationConstants.HashAlgorithm]), 91UpdateAttribute(ConfigurationConstants.AllowUntrustedRoot, AllowUntrustedRoot.ToString(CultureInfo.CurrentCulture).ToLower(CultureInfo.InvariantCulture));
Settings\Items\ClientCertItem.cs (1)
76throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(PackageSource)));
Settings\Items\CredentialsItem.cs (6)
33throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Username))); 156throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.Error_MoreThanOneUsername, origin.ConfigFilePath)); 165throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.Error_MoreThanOnePassword, origin.ConfigFilePath)); 175throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.Error_MoreThanOnePassword, origin.ConfigFilePath)); 185throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.Error_MoreThanOneValidAuthenticationTypes, origin.ConfigFilePath)); 194throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.CredentialsItemMustHaveUsernamePassword, origin.ConfigFilePath));
Settings\Items\FileClientCertItem.cs (4)
62throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, 70throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, 114throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.FileCertItemPasswordCannotBeDecrypted, PackageSource), e); 166throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture,
Settings\Items\MinPublishAgeExceptionItem.cs (2)
67CultureInfo.CurrentCulture, 72CultureInfo.CurrentCulture,
Settings\Items\OwnersItem.cs (3)
47string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.OwnersMustOnlyHaveContent, origin.ConfigFilePath)); 74_content.Value = string.Join(OwnersListSeparator.ToString(CultureInfo.CurrentCulture), Content); 119_content = new SettingText(string.Join(OwnersListSeparator.ToString(CultureInfo.CurrentCulture), Content));
Settings\Items\PackageSourceMappingSourceItem.cs (4)
40throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Key))); 62throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Error_ItemNeedsAtLeastOnePackagePattern, name)); 85throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_ItemNeedsAtLeastOnePackagePatternWithPath, Key, origin.ConfigFilePath)); 153throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_ItemNeedsAtLeastOnePackagePattern, packageSourceMappingSourceItem.Key));
Settings\Items\RepositoryItem.cs (4)
74string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 75string.Format(CultureInfo.CurrentCulture, Resources.RepositoryMustHaveOneOwners, Name, ServiceIndex), 93string.Join(OwnersItem.OwnersListSeparator.ToString(CultureInfo.CurrentCulture), Owners), 180_owners = new OwnersItem(string.Join(OwnersItem.OwnersListSeparator.ToString(CultureInfo.CurrentCulture), other.Owners));
Settings\Items\StoreClientCertItem.cs (1)
246throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture,
Settings\Items\TrustedSignerItem.cs (3)
24throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Name))); 64string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.TrustedSignerMustHaveCertificates, origin.ConfigFilePath)); 78string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.TrustedSignerMustHaveCertificates, origin.ConfigFilePath));
Settings\NuGetConfiguration.cs (2)
45var defaultSource = new SourceItem(NuGetConstants.FeedName, NuGetConstants.V3FeedUrl, protocolVersion: PackageSourceProvider.MaxSupportedProtocolVersion.ToString(CultureInfo.CurrentCulture)); 68string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigRootInvalid, origin.ConfigFilePath));
Settings\NullSettings.cs (2)
19public void AddOrUpdate(string sectionName, SettingItem item) => throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.InvalidNullSettingsOperation, nameof(AddOrUpdate))); 21public void Remove(string sectionName, SettingItem item) => throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.InvalidNullSettingsOperation, nameof(Remove)));
Settings\SettingElement.cs (13)
89throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_InvalidAttribute, attribute.Key, attribute.Value)); 150throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_InvalidAttribute, attributeName, newValue)); 181throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_InvalidAttribute, attributeName, value)); 240throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 241string.Format(CultureInfo.CurrentCulture, Resources.NoAttributesAllowed, element.Name.LocalName, element.Attributes().Count()), 249throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 250string.Format(CultureInfo.CurrentCulture, Resources.AttributeNotAllowed, attribute.Name.LocalName, element.Name.LocalName), 263throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 264string.Format(CultureInfo.CurrentCulture, Resources.MissingRequiredAttribute, requireAttribute, element.Name.LocalName), 277throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 278string.Format(CultureInfo.CurrentCulture, Resources.AttributeValueNotAllowed, attribute.Name.LocalName, attribute.Value.Trim(), element.Name.LocalName), 291throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 292string.Format(CultureInfo.CurrentCulture, Resources.AttributeValueNotAllowed, attribute.Name.LocalName, attribute.Value.Trim(), element.Name.LocalName),
Settings\SettingFactory.cs (1)
187throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_DuplicatePackageSource, duplicatedKey, source));
Settings\SettingItem.cs (1)
33throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.ShowError_CannotHaveChildren, element.Name.LocalName, origin.ConfigFilePath));
Settings\Settings.cs (4)
178throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.SectionDoesNotExist, sectionName)); 183throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.ItemDoesNotExist, sectionName)); 607var message = string.Format(CultureInfo.CurrentCulture, 793CultureInfo.CurrentCulture,
Settings\SettingsFile.cs (4)
226string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigInvalidOperation, ConfigFilePath, e.Message), e); 232string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigUnauthorizedAccess, ConfigFilePath, e.Message), e); 238string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigInvalidXml, ConfigFilePath, e.Message), e); 244string.Format(CultureInfo.CurrentCulture, Resources.Unknown_Config_Exception, ConfigFilePath, e.Message), e);
Settings\SettingText.cs (1)
78throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.TextShouldNotBeEmpty, origin.ConfigFilePath));
Utility\SettingsUtility.cs (1)
454CultureInfo.CurrentCulture,
NuGet.Credentials (12)
PluginCredentialProvider.cs (1)
123_logger.LogWarning(string.Format(CultureInfo.CurrentCulture, Resources.PluginWarning_PluginIsBeingDeprecated, Path, CrossPlatformPluginLink));
PluginException.cs (7)
64string.Format(CultureInfo.CurrentCulture, Resources.PluginException_Exception_Format, path, inner.GetType().Name), 82string.Format(CultureInfo.CurrentCulture, Resources.PluginException_Timeout_Format, path, timeoutMillis)); 97return new PluginException(string.Format(CultureInfo.CurrentCulture, Resources.PluginException_NotStarted_Format, path)); 119return new PluginException(string.Format(CultureInfo.CurrentCulture, Resources.PluginException_PathNotFound_Format, path, 136return new PluginException(string.Format(CultureInfo.CurrentCulture, Resources.PluginException_Abort_Format, path, message)); 155CultureInfo.CurrentCulture, 184CultureInfo.CurrentCulture,
PluginUnexpectedStatusException.cs (1)
66string.Format(CultureInfo.CurrentCulture, Resources.PluginException_UnexpectedStatus_Format, path, status));
SecurePluginCredentialProvider.cs (2)
167CultureInfo.CurrentCulture, 176CultureInfo.CurrentCulture,
SecurePluginCredentialProviderBuilder.cs (1)
48_logger.LogDebug(string.Format(CultureInfo.CurrentCulture, Resources.SecurePluginNotice_UsingPluginAsProvider, pluginDiscoveryResult.PluginFile.Path));
NuGet.DependencyResolver.Core (5)
GraphModel\GraphOperations.cs (2)
964CultureInfo.CurrentCulture, 974CultureInfo.CurrentCulture,
ResolverUtility.cs (3)
97var message = string.Format(CultureInfo.CurrentCulture, 588context.Logger.LogDebug(string.Format(CultureInfo.CurrentCulture, Strings.Log_NoMatchingSourceFoundForPackage, packageName)); 590context.Logger.LogDebug(string.Format(CultureInfo.CurrentCulture, Strings.Log_MatchingSourceFoundForPackage, packageName, string.Join(",", remoteDependencyProviders.Select(provider => provider.Source.Name))));
NuGet.Frameworks (9)
CompatibilityCacheKey.cs (1)
62CultureInfo.CurrentCulture,
FrameworkNameProvider.cs (1)
512CultureInfo.CurrentCulture,
FrameworkRuntimePair.cs (1)
48CultureInfo.CurrentCulture,
NuGetFramework.cs (2)
218CultureInfo.CurrentCulture, 253CultureInfo.CurrentCulture,
NuGetFrameworkFactory.cs (4)
115CultureInfo.CurrentCulture, 194CultureInfo.CurrentCulture, 211CultureInfo.CurrentCulture, 234CultureInfo.CurrentCulture,
NuGet.LibraryModel (1)
PrunePackageReference.cs (1)
39throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PrunePackageReferenceMissingVersion, name));
NuGet.PackageManagement (71)
Audit\AuditChecker.cs (1)
189string message = string.Format(CultureInfo.CurrentCulture, Strings.Warning_AuditSourceWithoutData, vulnerabilitySources[i].PackageSource.Name);
ConsoleProjectContext.cs (1)
35message = string.Format(CultureInfo.CurrentCulture, message, args);
FileModifiers\XdtTransformer.cs (1)
138CultureInfo.CurrentCulture,
IDE\PackageRestoreManager.cs (1)
393packageRestoreContext.Logger.Log(LogLevel.Error, string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "restore", source.Source));
InstallationCompatibility.cs (2)
158CultureInfo.CurrentCulture, 181CultureInfo.CurrentCulture,
NuGetPackageManager.cs (25)
335throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.NoLatestVersionFound, packageId)); 544throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.UnknownPackage, packageId)); 552throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.NewerVersionAlreadyReferenced, packageId)); 919throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.UnknownPackage, packageId)); 925throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, 1480throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.PackageNotFound, newPackageToInstall)); 1521message: string.Format(CultureInfo.CurrentCulture, Strings.PackageNotFound, id), 1530message: string.Format(CultureInfo.CurrentCulture, Strings.PackageNotFound, id), 1776message: string.Format(CultureInfo.CurrentCulture, Strings.PropertyCannotBeNull, nameof(packageIdentity.Version)), 1804var alreadyInstalledMessage = string.Format(CultureInfo.CurrentCulture, Strings.PackageAlreadyExistsInProject, packageIdentity, projectName ?? string.Empty); 1878throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.UnableToGatherDependencyInfo, packageIdentity)); 1947throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.UnableToResolveDependencyInfo, packageIdentity, resolutionContext.DependencyBehavior)); 1996throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.PackageNotFound, packageIdentity)); 2015throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.PackageCouldNotBeInstalled, packageIdentity), ex); 2098string.Format(CultureInfo.CurrentCulture, 2108throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, 2163message: string.Format(CultureInfo.CurrentCulture, Strings.PropertyCannotBeNull, nameof(project)), 2196message: string.Format(CultureInfo.CurrentCulture, Strings.PropertyCannotBeNull, nameof(project)), 2205throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.PackageToBeUninstalledCouldNotBeFound, 2237throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.PackageToBeUninstalledCouldNotBeFound, 2295throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.PackageToBeUninstalledCouldNotBeFound, 2336throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.PackageToBeUninstalledCouldNotBeFound, 2714var errorMessage = string.Format(CultureInfo.CurrentCulture, 2966message: string.Format(CultureInfo.CurrentCulture, Strings.UnableToFindPathInLookupOrList, nameof(nugetProjectActionsLookup), buildIntegratedProject.MSBuildProjectPath, nameof(packageIdentity), nameof(primarySources)), 3625nuGetProjectContext.Log(MessageLevel.Info, string.Format(CultureInfo.CurrentCulture, Strings.RestoringPackage, packageIdentity));
PackageDownloader.cs (6)
208errors.AppendLine(string.Format(CultureInfo.CurrentCulture, 227errors.AppendLine(CultureInfo.CurrentCulture, $" {tasksLookup[task].PackageSource.Source}: {message}"); 297CultureInfo.CurrentCulture, 322CultureInfo.CurrentCulture, 331CultureInfo.CurrentCulture, 340CultureInfo.CurrentCulture,
PackagePreFetcher.cs (2)
191CultureInfo.CurrentCulture, 201CultureInfo.CurrentCulture,
Projects\MSBuildNuGetProject.cs (1)
267string.Format(CultureInfo.CurrentCulture,
Projects\PackagesConfigNuGetProject.cs (4)
175CultureInfo.CurrentCulture, 229CultureInfo.CurrentCulture, 300CultureInfo.CurrentCulture, 341CultureInfo.CurrentCulture,
Projects\ProjectJsonNuGetProject.cs (4)
66string.Format(CultureInfo.CurrentCulture, Strings.InvalidProjectName, MSBuildProjectPath)); 181string.Format(CultureInfo.CurrentCulture, Strings.ProjectNotLoaded_RestoreFailed, ProjectName)); 324string.Format(CultureInfo.CurrentCulture, Strings.ErrorLoadingPackagesConfig, _jsonConfig.FullName, ex.Message), ex); 343string.Format(CultureInfo.CurrentCulture, Strings.ErrorLoadingPackagesConfig, _jsonConfig.FullName, ex.Message), ex);
Resolution\GatherExceptionHelpers.cs (3)
52CultureInfo.CurrentCulture, 64String.Format(CultureInfo.CurrentCulture, 89throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.NewerVersionAlreadyReferenced, target));
Resolution\ResolverGather.cs (9)
187_context.Log.LogDebug(string.Format(CultureInfo.CurrentCulture, "Total number of results gathered : {0}", _results.Count)); 224packageIdentity = string.Format(CultureInfo.CurrentCulture, "{0} {1}", targetId, pid.Version); 229string message = String.Format(CultureInfo.CurrentCulture, Strings.PackageNotFoundInPrimarySources, packageIdentity, allPrimarySources); 237string.Format(CultureInfo.CurrentCulture, Strings.GatherTotalTime, DatetimeUtility.ToReadableTimeFormat(stopWatch.Elapsed))); 242string.Format(CultureInfo.CurrentCulture, "{0}\t-\t{1}", key, DatetimeUtility.ToReadableTimeFormat(time))); 415_context.Log.LogDebug(string.Format(CultureInfo.CurrentCulture, "Package {0} from source {1} gathered from cache.", request.Package.Id, request.Source.Source.PackageSource.Name)); 465string message = String.Format(CultureInfo.CurrentCulture, Strings.UnableToGatherPackageFromSource, request.Package.Id, request.Source.Source.PackageSource.Source); 471string message = String.Format(CultureInfo.CurrentCulture, Strings.UnableToGatherPackageFromSource, request.Package.Id, request.Source.Source.PackageSource.Source); 664string message = String.Format(CultureInfo.CurrentCulture, Strings.ExceptionWhenTryingToAddSource, ex.GetType().ToString(), currentSource);
Resolution\UninstallResolver.cs (2)
144return new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, 148return new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
StringFormatter.cs (2)
15CultureInfo.CurrentCulture, 25CultureInfo.CurrentCulture,
Utility\JsonConfigUtility.cs (1)
63string.Format(CultureInfo.CurrentCulture, Strings.DependencyDoesNotHaveValidVersion, dependencyToken.ToString()));
Utility\MSBuildNuGetProjectSystemUtility.cs (1)
113var conflictMessage = string.Format(CultureInfo.CurrentCulture,
Utility\PackagesConfigLockFileUtility.cs (5)
43var message = string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidLockFileInput, lockFileName); 102var message = string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidLockFileInput, lockFilePath); 139var message = string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageValidationFailed, difference.Key.Id + "." + difference.Key.ResolvedVersion); 293throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, Strings.Error_FileDoesNotExist, pcFile), pcFile); 305throw new DirectoryNotFoundException(string.Format(CultureInfo.CurrentCulture, Strings.Error_DirectoryDoesNotExist, packagesFolderPath));
NuGet.Packaging (260)
ContentModel\Infrastructure\Parser.cs (1)
180throw new Exception(string.Format(CultureInfo.CurrentCulture, "Unable to find property definition for {{{0}}}", _token));
Core\NuspecCoreReaderBase.cs (1)
193CultureInfo.CurrentCulture,
Core\NuspecUtility.cs (1)
91CultureInfo.CurrentCulture,
FallbackPackagePathResolver.cs (2)
56CultureInfo.CurrentCulture, 110CultureInfo.CurrentCulture,
Licenses\LicenseExpressionToken.cs (1)
26Value = value ?? throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.ArgumentCannotBeNullOrEmpty, nameof(value)));
Licenses\LicenseExpressionTokenizer.cs (3)
26throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.ArgumentCannotBeNullOrEmpty, nameof(value))); 92return new LicenseExpressionToken(bracket.ToString(CultureInfo.CurrentCulture), LicenseTokenType.OPENING_BRACKET); 96return new LicenseExpressionToken(bracket.ToString(CultureInfo.CurrentCulture), LicenseTokenType.CLOSING_BRACKET);
Licenses\NuGetLicense.cs (7)
56throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_DeprecatedIdentifier, licenseIdentifier)); 68throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_DeprecatedIdentifier, licenseIdentifier)); 78string.Format(CultureInfo.CurrentCulture, Strings.ArgumentCannotBeNullOrEmpty, nameof(licenseIdentifier))); 103throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_IllegalUnlicensedOperator)); 109throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_UnexpectedIdentifier, licenseIdentifier)); 118throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_LicenseInvalidCharacters, licenseIdentifier)); 121throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_LicenseIdentifierIsException, licenseIdentifier));
Licenses\NuGetLicenseException.cs (4)
39throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_DeprecatedIdentifier, exceptionIdentifier)); 45throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_ExceptionIdentifierIsLicense, exceptionIdentifier)); 49throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_InvalidExceptionIdentifier, exceptionIdentifier)); 54throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.ArgumentCannotBeNullOrEmpty, nameof(exceptionIdentifier)));
Licenses\NuGetLicenseExpressionParser.cs (10)
50throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_InvalidToken, token.Value)); 59throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_InvalidToken, token.Value)); 67throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_InvalidToken, token.Value)); 83throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_MismatchedParentheses)); 92throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_InvalidToken, token.Value)); 123throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_MismatchedParentheses)); 132throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_InvalidExpression)); 159throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_InvalidCharacters, expression)); 175throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_InvalidExpression)); 206throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_InvalidExpression));
MinClientVersionUtility.cs (1)
36string.Format(CultureInfo.CurrentCulture, Strings.PackageMinVersionNotSatisfied,
NupkgMetadata\NupkgMetadataFileFormat.cs (1)
65string message = (string.Format(CultureInfo.CurrentCulture,
NuspecReader.cs (9)
303CultureInfo.CurrentCulture, 458CultureInfo.CurrentCulture, 474CultureInfo.CurrentCulture, 494errors.Add(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_NonStandardIdentifier, string.Join(", ", invalidLicenseIdentifiers))); 502errors.Add(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_UnlicensedPackageWarning)); 526CultureInfo.CurrentCulture, 615CultureInfo.CurrentCulture, 681CultureInfo.CurrentCulture, 695CultureInfo.CurrentCulture,
PackageArchiveReader.cs (2)
144throw new InvalidDataException(string.Format(CultureInfo.CurrentCulture, Strings.InvalidPackageNupkg, filePath), ex); 378CultureInfo.CurrentCulture,
PackageCreation\Authoring\Manifest.cs (3)
305throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, NuGetResources.DuplicateDependenciesDefined, metadata.Id, dependency.Id)); 326throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, NuGetResources.DependencyHasInvalidVersion, dependency.Id)); 331throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, NuGetResources.DependencyHasInvalidVersion, dependency.Id));
PackageCreation\Authoring\ManifestFile.cs (4)
44yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_RequiredMetadataMissing, "Source"); 48yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_SourceContainsInvalidCharacters, Source); 53yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_TargetContainsInvalidCharacters, Target); 58yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_ExcludeContainsInvalidCharacters, Exclude);
PackageCreation\Authoring\ManifestMetadata.cs (9)
303yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_RequiredMetadataMissing, "Id"); 309yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_IdMaxLengthExceeded); 313yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.InvalidPackageId, Id); 319yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_RequiredMetadataMissing, "Version"); 324yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_RequiredMetadataMissing, "Authors"); 329yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_RequiredMetadataMissing, "Description"); 334yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_UriCannotBeEmpty, "LicenseUrl"); 339yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_UriCannotBeEmpty, "IconUrl"); 344yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_UriCannotBeEmpty, "ProjectUrl");
PackageCreation\Authoring\ManifestReader.cs (9)
30string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_RequiredElementMissing, "metadata")); 63string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_RequiredElementMissing, requiredElement)); 172throw new InvalidDataException(string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_PropertyValueReadFailure, value, element.Name.LocalName), ex); 189throw new InvalidDataException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicense_InvalidLicenseType, type)); 194throw new InvalidDataException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicense_MissingRequiredValue)); 207CultureInfo.CurrentCulture, 231CultureInfo.CurrentCulture, 240throw new InvalidDataException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicense_InvalidLicenseType, type)); 369throw new InvalidDataException(string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidTargetFramework, targetFrameworkName));
PackageCreation\Authoring\ManifestSchemaUtility.cs (1)
78throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, NuGetResources.UnknownSchemaVersion, version));
PackageCreation\Authoring\PackageBuilder.cs (21)
92string.Format(CultureInfo.CurrentCulture, Strings.ErrorManifestFileNotFound, path ?? "null")); 181string.Format(CultureInfo.CurrentCulture, Strings.ErrorInvalidTimestamp, value)); 478throw new PackagingException(NuGetLogCode.NU1012, string.Format(CultureInfo.CurrentCulture, Strings.MissingTargetPlatformVersionsFromDependencyGroups, string.Join(", ", frameworksMissingPlatformVersion.OrderBy(str => str)))); 501throw new PackagingException(NuGetLogCode.NU1012, string.Format(CultureInfo.CurrentCulture, Strings.MissingTargetPlatformVersionsFromReferenceGroups, string.Join(", ", frameworksMissingPlatformVersion.OrderBy(str => str)))); 515throw new PackagingException(NuGetLogCode.NU5018, string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_InvalidReference, reference)); 530throw new PackagingException(NuGetLogCode.NU1012, string.Format(CultureInfo.CurrentCulture, Strings.MissingTargetPlatformVersionsFromFrameworkAssemblyReferences, string.Join(", ", frameworksMissingPlatformVersion.OrderBy(str => str)))); 540throw new PackagingException(NuGetLogCode.NU1012, string.Format(CultureInfo.CurrentCulture, Strings.MissingTargetPlatformVersionsFromFrameworkAssemblyGroups, string.Join(", ", frameworksMissingPlatformVersion.OrderBy(str => str)))); 590throw new PackagingException(NuGetLogCode.NU5050, string.Format(CultureInfo.CurrentCulture, NuGetResources.FoundDuplicateFile, string.Join(", ", duplicates))); 604throw new PackagingException(NuGetLogCode.NU5031, string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_LicenseFileExtensionIsInvalid, licenseMetadata.License)); 612errorMessage = string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_LicenseFileIsNotInNupkg, licenseMetadata.License); 616errorMessage = string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_LicenseFileIsNotInNupkgWithHint, licenseMetadata.License, licenseFilePathWithIncorrectCase); 643string.Format(CultureInfo.CurrentCulture, NuGetResources.IconInvalidExtension, iconPath)); 654errorMessage = string.Format(CultureInfo.CurrentCulture, NuGetResources.IconNoFileElement, iconPath); 658errorMessage = string.Format(CultureInfo.CurrentCulture, NuGetResources.IconNoFileElementWithHint, iconPath, iconPathWithIncorrectCase); 687string.Format(CultureInfo.CurrentCulture, NuGetResources.IconCannotOpenFile, iconPath, e.Message)); 746throw new PackagingException(NuGetLogCode.NU1012, string.Format(CultureInfo.CurrentCulture, Strings.MissingTargetPlatformVersionsFromIncludedFiles, string.Join(", ", itemsWithFrameworkMissingPlatformVersion.OrderBy(str => str)))); 768string.Format(CultureInfo.CurrentCulture, NuGetResources.ReadmeFileExtensionIsInvalid, readmePath)); 783string.Format(CultureInfo.CurrentCulture, NuGetResources.ReadmeNoFileElement, readmePath)); 800string.Format(CultureInfo.CurrentCulture, NuGetResources.ReadmeErrorEmpty, readmePath)); 808string.Format(CultureInfo.CurrentCulture, NuGetResources.ReadmeCannotOpenFile, readmePath, e.Message)); 1008string.Format(CultureInfo.CurrentCulture, NuGetResources.PackageAuthoring_FileNotFound, source));
PackageCreation\Authoring\PackageReferenceSet.cs (2)
60yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_RequiredElementMissing, "File"); 64yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_InvalidReferenceFile, reference);
PackageCreation\Utility\PackageIdValidator.cs (1)
60throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, NuGetResources.InvalidPackageId, packageId));
PackageExtraction\PackagePathHelper.cs (1)
114string.Format(CultureInfo.CurrentCulture, Strings.PropertyCannotBeNull, nameof(packageIdentity.Version)),
PackageExtraction\ZipArchiveExtensions.cs (1)
115CultureInfo.CurrentCulture,
PackageExtractor.cs (6)
537CultureInfo.CurrentCulture, 561CultureInfo.CurrentCulture, 761CultureInfo.CurrentCulture, 865CultureInfo.CurrentCulture, 1146message.Message = string.Format(CultureInfo.CurrentCulture, Strings.ExtractionLog_InformationPrefix, package.Id, package.Version, source, message.Message); 1157string.Format(CultureInfo.CurrentCulture, Strings.PackageSignatureVerificationLog, package, source, verifyResult.IsValid));
PackageFolderReader.cs (1)
75message.AppendFormat(CultureInfo.CurrentCulture, Strings.Message_Path, _root.FullName);
PackagePathResolver.cs (2)
33string.Format(CultureInfo.CurrentCulture, Strings.StringCannotBeNullOrEmpty, nameof(rootDirectory)), 39string.Format(CultureInfo.CurrentCulture, Strings.MustContainAbsolutePath, nameof(rootDirectory), rootDirectory),
PackageReaderBase.cs (2)
474CultureInfo.CurrentCulture, 561CultureInfo.CurrentCulture,
PackagesConfigReader.cs (6)
117CultureInfo.CurrentCulture, 150CultureInfo.CurrentCulture, 159CultureInfo.CurrentCulture, 169CultureInfo.CurrentCulture, 182CultureInfo.CurrentCulture, 238CultureInfo.CurrentCulture,
PackagesConfigWriter.cs (11)
71throw new PackagesConfigWriterException(string.Format(CultureInfo.CurrentCulture, 122throw new PackagingException(string.Format(CultureInfo.CurrentCulture, 186throw new PackagesConfigWriterException(string.Format(CultureInfo.CurrentCulture, 195throw new PackagesConfigWriterException(string.Format(CultureInfo.CurrentCulture, 226throw new PackagesConfigWriterException(string.Format(CultureInfo.CurrentCulture, 237throw new PackagesConfigWriterException(string.Format(CultureInfo.CurrentCulture, 264throw new PackagesConfigWriterException(string.Format(CultureInfo.CurrentCulture, 342throw new PackagesConfigWriterException(string.Format(CultureInfo.CurrentCulture, 352throw new PackagesConfigWriterException(string.Format(CultureInfo.CurrentCulture, 414throw new PackagesConfigWriterException(string.Format(CultureInfo.CurrentCulture, 580CultureInfo.CurrentCulture,
Rules\AccidentallyCompatibleWithAllFrameworksRule.cs (3)
91issue.Add(PackagingLogMessage.CreateWarning(string.Format(CultureInfo.CurrentCulture, MessageFormat, tfmNames, suggestedDirectories), 109: string.Format(CultureInfo.CurrentCulture, "-lib/{0}/_._", possibleFrameworks[0]); 120suggestedDirectories.AppendFormat(CultureInfo.CurrentCulture, "-lib/{0}/_._", framework).AppendLine();
Rules\BestPractice\MissingReadmeRule.cs (1)
31string.Format(CultureInfo.CurrentCulture, MessageFormat, packageIdentity),
Rules\ContentFolderInPackageReferenceProjectRule.cs (1)
37string.Format(CultureInfo.CurrentCulture, MessageFormat), NuGetLogCode.NU5121));
Rules\DefaultManifestValuesRule.cs (1)
84string.Format(CultureInfo.CurrentCulture, MessageFormat, value, field),
Rules\IconUrlDeprecationWarning.cs (1)
29string.Format(CultureInfo.CurrentCulture, MessageFormat),
Rules\InitScriptNotUnderToolsRule.cs (1)
36string.Format(CultureInfo.CurrentCulture, MessageFormat, file),
Rules\InstallScriptInPackageReferenceProjectRule.cs (1)
31string.Format(CultureInfo.CurrentCulture, MessageFormat), NuGetLogCode.NU5120));
Rules\InvalidFrameworkFolderRule.cs (1)
43string.Format(CultureInfo.CurrentCulture, MessageFormat, target),
Rules\InvalidPlaceholderFileRule.cs (1)
40String.Format(CultureInfo.CurrentCulture, MessageFormat, target),
Rules\InvalidPrereleaseDependencyRule.cs (1)
53string.Format(CultureInfo.CurrentCulture, MessageFormat, dependency),
Rules\InvalidUndottedFrameworkRule.cs (6)
57CultureInfo.CurrentCulture, 71PackagingLogMessage.CreateWarning(string.Format(CultureInfo.CurrentCulture, AnalysisResources.InvalidUndottedFrameworkWarning), NuGetLogCode.NU5501) 105string.Format(CultureInfo.CurrentCulture, AnalysisResources.InvalidUndottedFrameworkInDependencyGroupsWarning, string.Join(", ", bads)), 134string.Format(CultureInfo.CurrentCulture, AnalysisResources.InvalidUndottedFrameworkInReferenceGroupsWarning, string.Join(", ", bads)), 181string.Format(CultureInfo.CurrentCulture, AnalysisResources.InvalidUndottedFrameworkInFrameworkAssemblyGroupsWarning, string.Join(", ", bads)), 249string.Format(CultureInfo.CurrentCulture, AnalysisResources.InvalidUndottedFrameworkInFilesWarning, string.Join(", ", warnPaths)),
Rules\LicenseUrlDeprecationWarning.cs (1)
30string.Format(CultureInfo.CurrentCulture, MessageFormat),
Rules\MisplaceAssemblyOutsideLibRule.cs (1)
55string.Format(CultureInfo.CurrentCulture, MessageFormat, target),
Rules\MisplacedAssemblyUnderLibRule.cs (1)
41string.Format(CultureInfo.CurrentCulture, MessageFormat, target),
Rules\MisplacedScriptFileRule.cs (1)
44string.Format(CultureInfo.CurrentCulture, MessageFormat, target),
Rules\MisplacedTransformFileRule.cs (1)
52String.Format(CultureInfo.CurrentCulture, MessageFormat, path),
Rules\PathTooLongRule.cs (1)
36string.Format(CultureInfo.CurrentCulture, MessageFormat, target),
Rules\ReferencesInNuspecMatchRefAssetsRule.cs (3)
141message.AppendLine(string.Format(CultureInfo.CurrentCulture, _addToRefFormat, item, file.Tfm)); 151message.AppendLine(string.Format(CultureInfo.CurrentCulture, _addToNuspecNoTfmFormat, item)); 155message.AppendLine(string.Format(CultureInfo.CurrentCulture, _addToNuspecFormat, item, reference.Tfm));
Rules\UnrecognizedLicenseIdentifierRule.cs (1)
45string.Format(CultureInfo.CurrentCulture, MessageFormat, license.Identifier),
Rules\UnrecognizedScriptFileRule.cs (1)
48String.Format(CultureInfo.CurrentCulture, MessageFormat, target),
Rules\UnspecifiedDependencyVersionRule.cs (1)
35CultureInfo.CurrentCulture,
Rules\UpholdBuildConventionRule.cs (1)
52warningMessage.AppendLine(string.Format(CultureInfo.CurrentCulture, MessageFormat, expectedFile.Extension, expectedFile.Path, expectedFile.ExpectedPath));
Rules\WinRTNameIsObsoleteRule.cs (1)
40string.Format(CultureInfo.CurrentCulture, MessageFormat, file),
Rules\XdtTransformsInPackageReferenceProjectRule.cs (1)
45string.Format(CultureInfo.CurrentCulture, MessageFormat, path),
Signing\Archive\EndOfCentralDirectoryRecord.cs (1)
108string.Format(CultureInfo.CurrentCulture,
Signing\Archive\ReadOnlyBufferedStream.cs (1)
170CultureInfo.CurrentCulture,
Signing\Archive\SignedPackageArchiveIOUtility.cs (4)
475CultureInfo.CurrentCulture, 482string.Format(CultureInfo.CurrentCulture, errorPrefix, failureCause)); 497CultureInfo.CurrentCulture, 504string.Format(CultureInfo.CurrentCulture, errorMessagePrefix, failureCause));
Signing\Authoring\SigningOptions.cs (1)
131CultureInfo.CurrentCulture,
Signing\DerEncoding\DerSequenceReader.cs (2)
561"Expected tag '0x" + expectedByte.ToString("X2", CultureInfo.CurrentCulture) + 562"', got '0x" + actual.ToString("X2", CultureInfo.CurrentCulture) +
Signing\Signatures\AuthorPrimarySignature.cs (1)
33string.Format(CultureInfo.CurrentCulture, Strings.SignatureType, Type.ToString())));
Signing\Signatures\RepositoryCountersignature.cs (3)
99string.Format(CultureInfo.CurrentCulture, Strings.SignatureType, Type.ToString()))); 100issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, Strings.NuGetV3ServiceIndexUrl, V3ServiceIndexUrl.ToString()))); 104issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, Strings.NuGetPackageOwners, string.Join(", ", PackageOwners))));
Signing\Signatures\RepositoryPrimarySignature.cs (3)
38string.Format(CultureInfo.CurrentCulture, Strings.SignatureType, Type.ToString()))); 39issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, Strings.NuGetV3ServiceIndexUrl, V3ServiceIndexUrl.ToString()))); 43issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, Strings.NuGetPackageOwners, string.Join(", ", PackageOwners))));
Signing\Signatures\Signature.cs (13)
150issues.Add(SignatureLog.Issue(!settings.AllowIllegal, NuGetLogCode.NU3010, string.Format(CultureInfo.CurrentCulture, Strings.Verify_ErrorNoCertificate, FriendlyName))); 156issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, 170issues.Add(SignatureLog.Issue(!settings.AllowIllegal, NuGetLogCode.NU3012, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_SignatureVerificationFailed, FriendlyName))); 227issues.Add(SignatureLog.Issue(!settings.AllowIllegal, NuGetLogCode.NU3012, string.Format(CultureInfo.CurrentCulture, Strings.VerifyChainBuildingIssue, FriendlyName, message))); 239issues.Add(SignatureLog.Error(NuGetLogCode.NU3012, string.Format(CultureInfo.CurrentCulture, Strings.VerifyChainBuildingIssue, FriendlyName, messages.First()))); 251issues.Add(SignatureLog.Issue(!settings.AllowUntrusted, NuGetLogCode.NU3018, string.Format(CultureInfo.CurrentCulture, Strings.VerifyChainBuildingIssue_UntrustedRoot, FriendlyName))); 271unknownRevocationMessage = string.Format(CultureInfo.CurrentCulture, Strings.VerifyChainBuildingIssue, FriendlyName, unknownRevocationStatusMessages!.First()); 278issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, Strings.VerifyChainBuildingIssue, FriendlyName, Strings.VerifyCertTrustOfflineWhileRevocationModeOffline))); 290issues.Add(SignatureLog.Issue(!settings.AllowUnknownRevocation, NuGetLogCode.NU3018, string.Format(CultureInfo.CurrentCulture, Strings.VerifyChainBuildingIssue, FriendlyName, Strings.VerifyCertTrustOfflineWhileRevocationModeOnline))); 312CultureInfo.CurrentCulture, 329string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_SignatureNotTimeValid, FriendlyName))); 352CultureInfo.CurrentCulture, 361throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Verify_ErrorNoCertificate, FriendlyName));
Signing\Timestamp\Rfc3161TimestampProvider.cs (3)
34CultureInfo.CurrentCulture, 163var errorMessage = string.Format(CultureInfo.CurrentCulture, 182var errorMessage = string.Format(CultureInfo.CurrentCulture,
Signing\Timestamp\Rfc3161TimestampRequestNetstandard21Wrapper.cs (1)
65CultureInfo.CurrentCulture,
Signing\Timestamp\Timestamp.cs (11)
120issues.Add(SignatureLog.Issue(treatIssueAsError, NuGetLogCode.NU3020, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampNoCertificate, signature.FriendlyName))); 131issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, Strings.TimestampValue, GeneralizedTime.LocalDateTime.ToString(CultureInfo.CurrentCulture)) + Environment.NewLine)); 133issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, 185issues.Add(SignatureLog.Issue(treatIssueAsError, NuGetLogCode.NU3028, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampVerifyChainBuildingIssue, signature.FriendlyName, message))); 200issues.Add(SignatureLog.Error(NuGetLogCode.NU3028, string.Format(CultureInfo.CurrentCulture, Strings.VerifyTimestampChainBuildingIssue_UntrustedRoot, signature.FriendlyName))); 208issues.Add(SignatureLog.Error(NuGetLogCode.NU3028, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampVerifyChainBuildingIssue, signature.FriendlyName, messages!.First()))); 224unknownRevocationMessage = string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampVerifyChainBuildingIssue, signature.FriendlyName, unknownRevocationStatusMessages!.First()); 231issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampVerifyChainBuildingIssue, signature.FriendlyName, Strings.VerifyCertTrustOfflineWhileRevocationModeOffline))); 243issues.Add(SignatureLog.Issue(!settings.AllowUnknownRevocation, NuGetLogCode.NU3028, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampVerifyChainBuildingIssue, signature.FriendlyName, Strings.VerifyCertTrustOfflineWhileRevocationModeOnline))); 268CultureInfo.CurrentCulture,
Signing\TrustedSigners\TrustedSignersProvider.cs (1)
105string.Format(CultureInfo.CurrentCulture, Strings.ConflictingAllowUntrustedRoot, certificate.HashAlgorithm.ToString(), certificate.Fingerprint),
Signing\TrustStore\CertificateBundleX509ChainFactory.cs (2)
94CultureInfo.CurrentCulture, 103CultureInfo.CurrentCulture,
Signing\TrustStore\X509TrustStore.cs (3)
114CultureInfo.CurrentCulture, 128CultureInfo.CurrentCulture, 149CultureInfo.CurrentCulture,
Signing\Utility\AttributeUtility.cs (4)
127CultureInfo.CurrentCulture, 136CultureInfo.CurrentCulture, 199CultureInfo.CurrentCulture, 339throw new CryptographicException(string.Format(CultureInfo.CurrentCulture, Strings.MultipleAttributesDisallowed, oid));
Signing\Utility\CertificateUtility.cs (16)
51issues.Add(SignatureLog.MinimalLog($"{indentation}{string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateSubjectName, cert.Subject)}")); 52issues.Add(SignatureLog.InformationLog($"{indentation}{string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateHashSha1, cert.Thumbprint)}")); 53issues.Add(SignatureLog.MinimalLog($"{indentation}{string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateHash, fingerprintAlgorithm.ToString(), certificateFingerprint)}")); 54issues.Add(SignatureLog.InformationLog($"{indentation}{string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateIssuer, cert.IssuerName.Name)}")); 55issues.Add(SignatureLog.MinimalLog($"{indentation}{string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateValidity, cert.NotBefore, cert.NotAfter)}")); 59issues.Add(SignatureLog.InformationLog($"{indentation}{string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateCrlUrl, url)}")); 64issues.Add(SignatureLog.InformationLog($"{indentation}{string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateOcspUrl, url)}")); 74certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateSubjectName, cert.Subject)); 75certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateHashSha1, cert.Thumbprint)); 76certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateHash, fingerprintAlgorithm.ToString(), certificateFingerprint)); 77certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateIssuer, cert.IssuerName.Name)); 78certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateValidity, cert.NotBefore, cert.NotAfter)); 82certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateCrlUrl, url)); 87certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateOcspUrl, url)); 123collectionStringBuilder.AppendLine(string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityMultipleCertificatesFooter, certCollection.Count - ChainDepthLimit)); 145collectionStringBuilder.AppendLine(string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityMultipleCertificatesFooter, chainElementsCount - ChainDepthLimit));
Signing\Utility\SignatureUtility.cs (9)
118noCertificateString: string.Format(CultureInfo.CurrentCulture, Strings.Verify_ErrorNoCertificate, signatureFriendlyName), 337noCertificateString: string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampNoCertificate, signatureFriendlyName), 339invalidSignatureString: string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampInvalid, signatureFriendlyName), 440CultureInfo.CurrentCulture, 450CultureInfo.CurrentCulture, 464CultureInfo.CurrentCulture, 474CultureInfo.CurrentCulture, 497string.Format(CultureInfo.CurrentCulture, 687throw new SignatureException(string.Format(CultureInfo.CurrentCulture, Strings.SignatureContainsInvalidAttribute, attribute.Oid.Value));
Signing\Utility\VerificationUtility.cs (13)
73issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3013, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_CertificateHasUnsupportedSignatureAlgorithm, signatureFriendlyName))); 79issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3014, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_CertificateFailsPublicKeyLengthRequirement, signatureFriendlyName))); 85issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3015, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_CertificateHasLifetimeSigningEKU, signatureFriendlyName))); 91issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3017, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_CertificateNotYetValid, signatureFriendlyName))); 127issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3021, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampSignatureValidationFailed, signature.FriendlyName))); 134issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3022, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampUnsupportedSignatureAlgorithm, signature.FriendlyName))); 140issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3023, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampCertificateFailsPublicKeyLengthRequirement, signature.FriendlyName))); 146issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3024, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampSignatureUnsupportedDigestAlgorithm, signature.FriendlyName))); 158issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3019, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampIntegrityCheckFailed, signature.FriendlyName))); 165issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3030, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampMessageImprintUnsupportedHashAlgorithm, signature.FriendlyName))); 171issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3025, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampNotYetValid, signature.FriendlyName))); 177issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3036, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampGeneralizedTimeInvalid, signature.FriendlyName))); 183issues.Add(SignatureLog.Issue(treatIssuesAsErrors, NuGetLogCode.NU3020, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_TimestampNoCertificate, signature.FriendlyName)));
Signing\Verification\CertificateHashAllowListEntry.cs (3)
24CultureInfo.CurrentCulture, 34CultureInfo.CurrentCulture, 45CultureInfo.CurrentCulture,
Signing\Verification\IntegrityVerificationProvider.cs (2)
30issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, Strings.SignatureHashAlgorithm, signature.SignatureContent.HashAlgorithm))); 47issues.Add(SignatureLog.DebugLog(string.Format(CultureInfo.CurrentCulture, Strings.SignatureDebug_HashOidFound, signatureHashOid)));
Signing\Verification\SignedPackageVerifierSettings.cs (5)
94CultureInfo.CurrentCulture, 104CultureInfo.CurrentCulture, 114CultureInfo.CurrentCulture, 125CultureInfo.CurrentCulture, 139CultureInfo.CurrentCulture,
StringFormatter.cs (2)
18return string.Format(CultureInfo.CurrentCulture, 32return string.Format(CultureInfo.CurrentCulture,
NuGet.ProjectModel (30)
CacheFileFormat.cs (1)
66log.LogWarning(string.Format(CultureInfo.CurrentCulture,
FileFormatException.cs (4)
62var message = string.Format(CultureInfo.CurrentCulture, 76var message = string.Format(CultureInfo.CurrentCulture, 90var message = string.Format(CultureInfo.CurrentCulture, 119message = string.Format(CultureInfo.CurrentCulture,
JsonPackageSpecReader.Utf8JsonStreamReader.cs (3)
736CultureInfo.CurrentCulture, 1031string.Format(CultureInfo.CurrentCulture, 1301CultureInfo.CurrentCulture,
LockFile\LockFileContentFile.cs (1)
82SetProperty(CopyToOutputProperty, value.ToString(CultureInfo.CurrentCulture));
LockFile\LockFileFormat.cs (1)
166log.LogError(string.Format(CultureInfo.CurrentCulture,
ProjectLockFile\PackagesLockFileFormat.cs (1)
82log.LogInformation(string.Format(CultureInfo.CurrentCulture,
ProjectLockFile\PackagesLockFileUtilities.cs (17)
92CultureInfo.CurrentCulture, 114CultureInfo.CurrentCulture, 133CultureInfo.CurrentCulture, 148CultureInfo.CurrentCulture, 209CultureInfo.CurrentCulture, 268throw new Exception(string.Format(CultureInfo.CurrentCulture, Strings.PackagesLockFile_RestoreMetadataMissingTfms)); 274CultureInfo.CurrentCulture, 284CultureInfo.CurrentCulture, 429CultureInfo.CurrentCulture, 446CultureInfo.CurrentCulture, 457CultureInfo.CurrentCulture, 489CultureInfo.CurrentCulture, 513CultureInfo.CurrentCulture, 531CultureInfo.CurrentCulture, 573CultureInfo.CurrentCulture, 588CultureInfo.CurrentCulture, 601CultureInfo.CurrentCulture,
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (1)
286string.Format(CultureInfo.CurrentCulture,
StringExtensions.cs (1)
16var index = CultureInfo.CurrentCulture.CompareInfo.IndexOf(s, separator, CompareOptions.Ordinal);
NuGet.Protocol (193)
Converters\MetadataStringOrArrayStjConverter.cs (2)
28throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType)); 39throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType));
Converters\NuGetFrameworkStjConverter.cs (1)
28_ => throw new JsonException(string.Format(System.Globalization.CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType))
Converters\NuGetVersionStjConverter.cs (1)
24_ => throw new JsonException(string.Format(System.Globalization.CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType))
Converters\PackageDependencyGroupStjConverter.cs (4)
26throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType)); 36throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType)); 65throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType)); 72throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType));
Converters\Utf8JsonReaderExtensions.cs (1)
28_ => throw new JsonException(string.Format(System.Globalization.CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType))
Exceptions\PackageNotFoundProtocolException.cs (1)
35CultureInfo.CurrentCulture,
HttpSource\HttpRetryHandler.cs (2)
147CultureInfo.CurrentCulture, 284CultureInfo.CurrentCulture,
HttpSource\HttpSource.cs (2)
111string message = string.Format(CultureInfo.CurrentCulture, Strings.Log_InvalidCacheEntry, request.Uri) 529CultureInfo.CurrentCulture,
HttpSource\HttpSourceAuthenticationHandler.cs (2)
202CultureInfo.CurrentCulture, 210CultureInfo.CurrentCulture,
HttpSource\HttpStreamValidation.cs (5)
67CultureInfo.CurrentCulture, 106CultureInfo.CurrentCulture, 139CultureInfo.CurrentCulture, 191CultureInfo.CurrentCulture, 230CultureInfo.CurrentCulture,
HttpSource\ProxyAuthenticationHandler.cs (1)
206CultureInfo.CurrentCulture,
LegacyFeed\DependencyInfoResourceV2Feed.cs (2)
56var error = String.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, package, _source); 87var error = String.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, packageId, _source);
LegacyFeed\DownloadResourceV2Feed.cs (1)
103string message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ErrorDownloading, identity, _feedParser.Source);
LegacyFeed\MetadataResourceV2Feed.cs (2)
80throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, packageId, _source), ex); 96throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, identity, _source), ex);
LegacyFeed\ODataServiceDocumentUtils.cs (1)
43string message = String.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadServiceIndex, url);
LegacyFeed\V2FeedParser.cs (3)
483CultureInfo.CurrentCulture, 570CultureInfo.CurrentCulture, 613CultureInfo.CurrentCulture,
LegacyFeed\V2FeedQueryBuilder.cs (6)
89filters.IncludePrerelease.ToString(CultureInfo.CurrentCulture).ToLowerInvariant(), 157CultureInfo.CurrentCulture, 166CultureInfo.CurrentCulture, 175CultureInfo.CurrentCulture, 184CultureInfo.CurrentCulture, 191CultureInfo.CurrentCulture,
LocalPackageArchiveDownloader.cs (3)
98string.Format(CultureInfo.CurrentCulture, Strings.StringCannotBeNullOrEmpty, nameof(packageFilePath)), 165CultureInfo.CurrentCulture, 235string.Format(CultureInfo.CurrentCulture, Strings.StringCannotBeNullOrEmpty, nameof(hashAlgorithm)),
LocalRepositories\LocalDependencyInfoResource.cs (2)
79var error = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, package, _localResource.Root); 129CultureInfo.CurrentCulture,
LocalRepositories\LocalMetadataResource.cs (1)
95throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture,
LocalRepositories\LocalPackageSearchResource.cs (1)
49CultureInfo.CurrentCulture,
LocalRepositories\LocalV2FindPackageByIdResource.cs (2)
442var message = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, nupkgInfo.Name, _source); 448var message = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, nupkgInfo.Name, _source);
LocalRepositories\LocalV3FindPackageByIdResource.cs (4)
456var message = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, id + "." + version, _source); 463var message = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, id + "." + version, _source); 518CultureInfo.CurrentCulture, 537CultureInfo.CurrentCulture,
Model\LocalPackageSearchMetadata.cs (4)
158fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_FileTooLarge, path, "5"); 171fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_FileNotFound, path); 177fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_UnknownProblemLoadingTheFile, path); 183fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_UnknownProblemLoadingTheFile, path);
Model\PackageSearchMetadata.cs (2)
249errors.Add(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_NonStandardIdentifier, string.Join(", ", invalidLicenseIdentifiers))); 271CultureInfo.CurrentCulture,
Model\RepositoryCertificateInfo.cs (4)
51Fingerprints = fingerprints ?? throw new System.Text.Json.JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, JsonProperties.Fingerprints)); 52Subject = subject ?? throw new System.Text.Json.JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, JsonProperties.Subject)); 53Issuer = issuer ?? throw new System.Text.Json.JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, JsonProperties.Issuer)); 56ContentUrl = contentUrl ?? throw new System.Text.Json.JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, JsonProperties.ContentUrl));
Plugins\ConnectionOptions.cs (1)
79CultureInfo.CurrentCulture,
Plugins\Logging\ProcessLogMessage.cs (1)
34["process start time"] = _processStartTime.ToString("O", CultureInfo.CurrentCulture),
Plugins\MessageConverter.cs (9)
110throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, nameof(Message.RequestId))); 116throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.ArgumentCannotBeNullOrEmpty, nameof(Message.RequestId))); 121throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, nameof(Message.Type))); 127throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Plugin_UnrecognizedEnumValue, typeStr)); 132throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, nameof(Message.Method))); 138throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Plugin_UnrecognizedEnumValue, methodStr)); 146throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedPayloadTokenType, payloadProp.ValueKind)); 163throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Plugin_UnrecognizedEnumValue, $"{messageMethod}/{messageType}")); 181throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnsupportedPayloadType, value.PayloadObject.GetType()));
Plugins\MessageDispatcher.cs (4)
557CultureInfo.CurrentCulture, 582CultureInfo.CurrentCulture, 647string.Format(CultureInfo.CurrentCulture, Strings.Plugin_RequestHandlerDoesNotExist, method)); 658string.Format(CultureInfo.CurrentCulture, Strings.Plugin_RequestContextDoesNotExist, requestId));
Plugins\Messages\CopyFilesInPackageResponse.cs (1)
45CultureInfo.CurrentCulture,
Plugins\Messages\CopyNupkgFileResponse.cs (1)
34CultureInfo.CurrentCulture,
Plugins\Messages\GetAuthenticationCredentialsResponse.cs (1)
61CultureInfo.CurrentCulture,
Plugins\Messages\GetCredentialsRequest.cs (1)
45CultureInfo.CurrentCulture,
Plugins\Messages\GetCredentialsResponse.cs (1)
52CultureInfo.CurrentCulture,
Plugins\Messages\GetFilesInPackageResponse.cs (1)
45CultureInfo.CurrentCulture,
Plugins\Messages\GetOperationClaimsResponse.cs (1)
44CultureInfo.CurrentCulture,
Plugins\Messages\GetPackageHashResponse.cs (1)
42CultureInfo.CurrentCulture,
Plugins\Messages\GetPackageVersionsResponse.cs (1)
45CultureInfo.CurrentCulture,
Plugins\Messages\GetServiceIndexResponse.cs (1)
57CultureInfo.CurrentCulture,
Plugins\Messages\HandshakeRequest.cs (1)
60CultureInfo.CurrentCulture,
Plugins\Messages\HandshakeResponse.cs (1)
58CultureInfo.CurrentCulture,
Plugins\Messages\InitializeResponse.cs (1)
34CultureInfo.CurrentCulture,
Plugins\Messages\LogRequest.cs (1)
44CultureInfo.CurrentCulture,
Plugins\Messages\LogResponse.cs (1)
34CultureInfo.CurrentCulture,
Plugins\Messages\Message.cs (2)
77CultureInfo.CurrentCulture, 87CultureInfo.CurrentCulture,
Plugins\Messages\MonitorNuGetProcessExitResponse.cs (1)
34CultureInfo.CurrentCulture,
Plugins\Messages\PrefetchPackageResponse.cs (1)
34CultureInfo.CurrentCulture,
Plugins\Messages\SetCredentialsResponse.cs (1)
34CultureInfo.CurrentCulture,
Plugins\Messages\SetLogLevelRequest.cs (1)
35CultureInfo.CurrentCulture,
Plugins\Messages\SetLogLevelResponse.cs (1)
34CultureInfo.CurrentCulture,
Plugins\NsjRawJsonStringConverter.cs (1)
25string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType));
Plugins\ObjectPayloadConverter.cs (1)
25System.Globalization.CultureInfo.CurrentCulture,
Plugins\OutboundRequestContext`1.cs (1)
140CultureInfo.CurrentCulture,
Plugins\PluginDiscoveryResult.cs (3)
38CultureInfo.CurrentCulture, 45CultureInfo.CurrentCulture, 52CultureInfo.CurrentCulture,
Plugins\PluginFactory.cs (3)
280string.Format(CultureInfo.CurrentCulture, Strings.Plugin_Exception, plugin.Name, ex.Message)); 290CultureInfo.CurrentCulture, 413CultureInfo.CurrentCulture,
Plugins\PluginManager.cs (2)
286string.Format(CultureInfo.CurrentCulture, 424var currentCultureName = CultureInfo.CurrentCulture.Name;
Plugins\PluginPackageReader.cs (3)
298string.Format(CultureInfo.CurrentCulture, 1045string.Format(CultureInfo.CurrentCulture, 1084string.Format(CultureInfo.CurrentCulture,
Plugins\RawJsonStringConverter.cs (1)
22throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedPayloadTokenType, reader.TokenType));
Plugins\RequestHandlers\GetCredentialsRequestHandler.cs (3)
237CultureInfo.CurrentCulture, 244CultureInfo.CurrentCulture, 269CultureInfo.CurrentCulture,
Plugins\StjSemanticVersionConverter.cs (1)
23throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType));
Providers\PackageUpdateResourceV3Provider.cs (1)
47throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
Providers\RepositorySignatureResourceProvider.cs (5)
60throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.RepositorySignaturesResourceMustBeHttps, source.PackageSource.Source)); 96?? throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri)); 123?? throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri)); 140var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_RetryingRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri) 147var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri);
Providers\ServiceIndexResourceV3Provider.cs (6)
166var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_RetryingServiceIndex, url) 185var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadServiceIndex, url); 221CultureInfo.CurrentCulture, 229CultureInfo.CurrentCulture, 238CultureInfo.CurrentCulture, 268CultureInfo.CurrentCulture,
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (3)
531logger.LogWarning(string.Format(CultureInfo.CurrentCulture, Strings.Log_FileIsCorrupt, httpSourceResult.CacheFile)); 549var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_RetryingFindPackagesById, nameof(FindPackagesByIdAsync), uri) 569CultureInfo.CurrentCulture,
RemoteRepositories\PackageUtilities.cs (2)
28throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToGetNuspecStream, id)); 40log.LogWarning(string.Format(CultureInfo.CurrentCulture, Strings.Log_FileIsCorrupt, fileStream.Name));
RemoteRepositories\PluginFindPackageByIdResource.cs (2)
429CultureInfo.CurrentCulture, 445CultureInfo.CurrentCulture,
RemoteRepositories\RemoteV2FindPackageByIdResource.cs (3)
528CultureInfo.CurrentCulture, 546var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_RetryingFindPackagesById, nameof(FindPackagesByIdAsyncCore), uri) 554CultureInfo.CurrentCulture,
Resources\AutoCompleteResourceV3.cs (1)
142"&prerelease=" + includePrerelease.ToString(CultureInfo.CurrentCulture).ToLowerInvariant() +
Resources\DependencyInfoResourceV3.cs (3)
94var error = String.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, package, _source); 132var error = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, packageId, _source); 158var error = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, packageId, _source);
Resources\DownloadResourcePlugin.cs (1)
136string.Format(CultureInfo.CurrentCulture,
Resources\MetadataResourceV3.cs (1)
75throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, id, _regResource.BaseUri), ex);
Resources\PackageSearchResourceV3.cs (4)
129"&skip=" + skip.ToString(CultureInfo.CurrentCulture) + 130"&take=" + take.ToString(CultureInfo.CurrentCulture) + 174throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 178throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex);
Resources\PackageUpdateResource.cs (14)
177log.LogWarning(string.Format(CultureInfo.CurrentCulture, 182if (confirm(string.Format(CultureInfo.CurrentCulture, Strings.DeleteCommandConfirm, packageId, packageVersion, sourceDisplayName))) 185CultureInfo.CurrentCulture, 192log.LogInformation(string.Format(CultureInfo.CurrentCulture, 223throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 234log.LogWarning(string.Format(CultureInfo.CurrentCulture, 280throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 289log.LogWarning(string.Format(CultureInfo.CurrentCulture, 325log.LogWarning(string.Format(CultureInfo.CurrentCulture, 365log.LogInformation(string.Format(CultureInfo.CurrentCulture, 441logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpServerUsage, "push", serviceEndpointUrl)); 495CultureInfo.CurrentCulture, 576CultureInfo.CurrentCulture, 743logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpServerUsage, "delete", sourceUri));
Resources\RawSearchResourceV3.cs (5)
51"&skip=" + skip.ToString(CultureInfo.CurrentCulture) + 52"&take=" + take.ToString(CultureInfo.CurrentCulture) + 53"&prerelease=" + filters.IncludePrerelease.ToString(CultureInfo.CurrentCulture).ToLowerInvariant(); 97throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 101throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex);
Resources\RepositorySignatureResource.cs (4)
34throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.AllRepositorySigned, source.PackageSource.Source)); 36throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.SigningCertificates, source.PackageSource.Source)); 59throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.AllRepositorySigned, source.PackageSource.Source)); 62throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.SigningCertificates, source.PackageSource.Source));
Utility\DownloadTimeoutStream.cs (1)
85CultureInfo.CurrentCulture,
Utility\FindPackagesByIdNupkgDownloader.cs (3)
288var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_CanceledNupkgDownload, url); 295CultureInfo.CurrentCulture, 319CultureInfo.CurrentCulture,
Utility\GetDownloadResultUtility.cs (2)
116var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ErrorDownloading, identity, uri) 123var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ErrorDownloading, identity, uri);
Utility\LocalFolderUtility.cs (5)
829var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToVerifyRootDirectory, root); 847var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToVerifyValidFile, fileUri.AbsoluteUri); 1103throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 1234CultureInfo.CurrentCulture, 1263log.LogWarning(string.Format(CultureInfo.CurrentCulture, Strings.UnableToParseFolderV3Version, version));
Utility\OfflineFeedAddContext.cs (2)
32throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 39throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Utility\OfflineFeedUtility.cs (8)
82throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 94throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 107throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 128throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 165CultureInfo.CurrentCulture, 181var message = string.Format(CultureInfo.CurrentCulture, 217CultureInfo.CurrentCulture, 233CultureInfo.CurrentCulture,
Utility\PackageIdValidator.cs (1)
44throw new InvalidPackageIdException(string.Format(CultureInfo.CurrentCulture, Strings.Error_Invalid_package_id, packageId));
NuGet.Resolver (10)
PackageResolver.cs (4)
43throw new NuGetResolverInputException(String.Format(CultureInfo.CurrentCulture, Strings.MissingDependencyInfo, requiredId)); 92CultureInfo.CurrentCulture, Strings.InvalidPackageConfig, string.Join(", ", invalidExistingPackages))); 198String.Format(CultureInfo.CurrentCulture, Strings.CircularDependencyDetected, 205string.Format(CultureInfo.CurrentCulture, Strings.ResolverTotalTime, DatetimeUtility.ToReadableTimeFormat(stopWatch.Elapsed)));
ResolverPackage.cs (1)
53CultureInfo.CurrentCulture,
ResolverUtility.cs (5)
140message.AppendFormat(CultureInfo.CurrentCulture, Strings.UnableToResolveDependencyForMultipleSources, problemPackageId, packageSourceList); 144message.AppendFormat(CultureInfo.CurrentCulture, Strings.UnableToResolveDependencyForEmptySource, problemPackageId, packageSourceList); 161message.AppendFormat(CultureInfo.CurrentCulture, Strings.VersionIsNotCompatible, problemPackageString, String.Join(", ", dependantPackages)); 166message.AppendFormat(CultureInfo.CurrentCulture, Strings.UnableToFindCompatibleVersion, problemPackageId, String.Join(", ", dependantPackages)); 176message.AppendFormat(CultureInfo.CurrentCulture,
NuGet.Versioning (7)
FloatRange.cs (1)
205throw new FormatException(string.Format(CultureInfo.CurrentCulture, Resources.InvalidFloatRangeValue, versionString));
NuGetVersionFactory.cs (2)
27throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Argument_Cannot_Be_Null_Or_Empty, value), nameof(value)); 32throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Invalidvalue, value), nameof(value));
ResourcesFormatter.cs (2)
18message: string.Format(CultureInfo.CurrentCulture, Resources.TypeNotSupported, type.FullName), 25message: string.Format(CultureInfo.CurrentCulture, Resources.CannotBeNullWhenParameterIsNotNull, parameterThatIsNull, parameterThisIsNotNull),
SemanticVersionFactory.cs (1)
22throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Invalidvalue, value), nameof(value));
VersionRangeFactory.cs (1)
81string.Format(CultureInfo.CurrentCulture,
PresentationBuildTasks (16)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2265(i + 1).ToString(CultureInfo.CurrentCulture));
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (3)
1317numberOfConstructorAttributes.ToString(CultureInfo.CurrentCulture), 1737lineNumber.ToString(CultureInfo.CurrentCulture), 1738linePosition.ToString(CultureInfo.CurrentCulture));
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParser.cs (6)
233lineNumber.ToString(CultureInfo.CurrentCulture), 234linePosition.ToString(CultureInfo.CurrentCulture))}"; 890xamlDefAttributeNode.LineNumber.ToString(CultureInfo.CurrentCulture), 891xamlDefAttributeNode.LinePosition.ToString(CultureInfo.CurrentCulture)); 1350lineNumber.ToString(CultureInfo.CurrentCulture), 1351linePosition.ToString(CultureInfo.CurrentCulture));
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (4)
1383lineNumber.ToString(CultureInfo.CurrentCulture), 1384linePosition.ToString(CultureInfo.CurrentCulture)); 1407LineNumber.ToString(CultureInfo.CurrentCulture), 1408LinePosition.ToString(CultureInfo.CurrentCulture));
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (2)
692lineNumber.ToString(CultureInfo.CurrentCulture), 693linePosition.ToString(CultureInfo.CurrentCulture));
PresentationCore (7)
MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
1546return CultureInfo.CurrentCulture;
MS\Internal\TextFormatting\NumberSubstitution.cs (1)
132return CultureInfo.CurrentCulture;
System\Windows\Input\Stylus\Common\StylusButton.cs (1)
101return String.Format(CultureInfo.CurrentCulture, "{0}({1})", base.ToString(), this.Name);
System\Windows\Input\Stylus\Common\StylusDevice.cs (1)
163return String.Format(CultureInfo.CurrentCulture, "{0}({1})", base.ToString(), this.Name);
System\Windows\Input\Stylus\Common\TabletDeviceBase.cs (1)
180return String.Format(CultureInfo.CurrentCulture, "{0}({1})", base.ToString(), Name);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
1088return String.Format(CultureInfo.CurrentCulture, "{0}({1})", base.ToString(), this.Name);
System\Windows\Input\Stylus\Wisp\WispTabletDevice.cs (1)
162return String.Format(CultureInfo.CurrentCulture, "{0}({1})", base.ToString(), Name);
PresentationFramework (37)
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
670nameStr = nameStr.ToUpper(CultureInfo.CurrentCulture);
MS\Internal\Data\SortFieldComparer.cs (1)
36: (culture == CultureInfo.CurrentCulture) ? Comparer.Default
MS\Internal\Documents\DocumentViewerHelper.cs (2)
262cultureInfo = CultureInfo.CurrentCulture; 280messageString = String.Format(System.Globalization.CultureInfo.CurrentCulture, messageString, findToolBar.SearchText);
System\Windows\Controls\DataGridClipboardHelper.cs (2)
24FormatPlainText(cellValue.ToString(), csv, new StringWriter(sb, CultureInfo.CurrentCulture), ref escapeApplied); 53FormatPlainTextAsHtml(cellValue.ToString(), new StringWriter(sb, CultureInfo.CurrentCulture));
System\Windows\Controls\DatePicker.cs (2)
1287this._textBox.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.LongDatePattern.ToString()); 1293this._textBox.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.ShortDatePattern.ToString());
System\Windows\Controls\DateTimeHelper.cs (2)
104return GetDateFormat(CultureInfo.CurrentCulture); 117culture = CultureInfo.CurrentCulture;
System\Windows\Controls\DocumentViewer.cs (2)
1907columnValue = System.Convert.ToInt32((string)data, CultureInfo.CurrentCulture); 2151CultureInfo.CurrentCulture,
System\Windows\Controls\MenuItem.cs (1)
1136return keyGesture.GetDisplayStringForCulture(CultureInfo.CurrentCulture);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1531pageNumber = Convert.ToInt32(args.Parameter, System.Globalization.CultureInfo.CurrentCulture);
System\Windows\Controls\TextRangeAdaptor.cs (1)
1771ITextRange findResult = TextFindEngine.Find(_start, _end, text, findFlags, CultureInfo.CurrentCulture);
System\Windows\Controls\TextSearch.cs (1)
311CompareInfo compareInfo = (cultureInfo ?? CultureInfo.CurrentCulture).CompareInfo;
System\Windows\Documents\FixedDocument.cs (1)
667ApplicationException ae = new ApplicationException(string.Format(System.Globalization.CultureInfo.CurrentCulture, SR.ExceptionInGetPage, index), e);
System\Windows\Documents\RtfToXamlLexer.cs (1)
36_currentCodePage = CultureInfo.CurrentCulture.TextInfo.ANSICodePage;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
672throw new XamlParseException(string.Format(CultureInfo.CurrentCulture, SR.Format(SR.UnknownBamlRecord, recordType)));
System\Windows\Markup\BamlReader.cs (3)
461_value = _connectionId.ToString(CultureInfo.CurrentCulture); 658((int)_currentBamlRecord.RecordType).ToString(CultureInfo.CurrentCulture))); 1679((int)_currentBamlRecord.RecordType).ToString(CultureInfo.CurrentCulture)));
System\Windows\Markup\BamlRecordReader.cs (3)
763ThrowException(nameof(SR.ParserUnknownBaml), ((int)bamlRecord.RecordType).ToString(CultureInfo.CurrentCulture)); 1563ThrowException(nameof(SR.ParserBadConstructorParams), elementType.Name, paramCount.ToString(CultureInfo.CurrentCulture)); 1799ThrowException(nameof(SR.ParserUnexpInBAML), keyRecord.RecordType.ToString(CultureInfo.CurrentCulture));
System\Windows\Markup\BamlVersionHeader.cs (4)
81(BamlVersion.ReaderVersion.Major.ToString(CultureInfo.CurrentCulture) + "." + 82BamlVersion.ReaderVersion.Minor.ToString(CultureInfo.CurrentCulture)), 83(BamlWriterVersion.Major.ToString(CultureInfo.CurrentCulture) + "." + 84BamlWriterVersion.Minor.ToString(CultureInfo.CurrentCulture))));
System\Windows\Markup\MarkupExtensionParser.cs (2)
1737lineNumber.ToString(CultureInfo.CurrentCulture), 1738linePosition.ToString(CultureInfo.CurrentCulture));
System\Windows\Markup\XamlParser.cs (2)
1350lineNumber.ToString(CultureInfo.CurrentCulture), 1351linePosition.ToString(CultureInfo.CurrentCulture));
System\Windows\Markup\XamlStyleSerializer.cs (2)
154lineNumber.ToString(CultureInfo.CurrentCulture), 155linePosition.ToString(CultureInfo.CurrentCulture));
System\Windows\Markup\XamlTypeMapper.cs (2)
692lineNumber.ToString(CultureInfo.CurrentCulture), 693linePosition.ToString(CultureInfo.CurrentCulture));
PresentationUI (31)
MS\Internal\Documents\Application\AddressUtility.cs (2)
47CultureInfo.CurrentCulture, 68CultureInfo.CurrentCulture,
MS\Internal\Documents\Application\Document.cs (1)
311System.Globalization.CultureInfo.CurrentCulture,
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (3)
160CultureInfo.CurrentCulture, 222CultureInfo.CurrentCulture, 228CultureInfo.CurrentCulture,
MS\Internal\Documents\Application\DocumentStream.cs (2)
817CultureInfo.CurrentCulture, 823generation.ToString(CultureInfo.CurrentCulture)
MS\Internal\Documents\Application\PageTextBox.cs (2)
66if (CultureInfo.CurrentCulture != null) 68this.Text = pageNumber.ToString(CultureInfo.CurrentCulture);
MS\Internal\Documents\Application\Trace.cs (2)
27CultureInfo.CurrentCulture, 45CultureInfo.CurrentCulture,
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
465zoomString = String.Format(CultureInfo.CurrentCulture,
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (2)
1845CultureInfo culture = CultureInfo.CurrentCulture; 1967CultureInfo culture = CultureInfo.CurrentCulture;
MS\Internal\Documents\DocumentSignatureManager.cs (1)
605CultureInfo.CurrentCulture,
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
213String.Format(CultureInfo.CurrentCulture,
MS\Internal\Documents\RightsManagementResourceHelper.cs (3)
76CultureInfo.CurrentCulture, 82CultureInfo.CurrentCulture, 88CultureInfo.CurrentCulture,
MS\Internal\Documents\RMPublishingDialog.cs (1)
466CultureInfo.CurrentCulture,
MS\Internal\Documents\SignatureResourceHelper.cs (6)
208string sigSummary = string.Format(CultureInfo.CurrentCulture, 216certSummary = string.Format(CultureInfo.CurrentCulture, 223result = string.Format(CultureInfo.CurrentCulture, 235result = string.Format(CultureInfo.CurrentCulture, 325CultureInfo.CurrentCulture, 363CultureInfo.CurrentCulture,
MS\Internal\Documents\SigningDialog.cs (1)
168_signerlabel.Text = String.Format(CultureInfo.CurrentCulture,
TenFeetInstallationProgress.xaml.cs (3)
120CurrentBytesText.Text = String.Format(CultureInfo.CurrentCulture, SR.ProgressBarKiloBytesStringFormat, (bytesDownloaded / 1024)); 121TotalBytesText.Text = String.Format(CultureInfo.CurrentCulture, SR.ProgressBarKiloBytesStringFormat, (bytesTotal / 1024)); 127ProgressBarStatusText.Text = String.Format(CultureInfo.CurrentCulture, SR.ProgressBarPercentageStringFormat, percentDone);
ReachFramework (43)
PrintConfig\DocumentNUp.cs (2)
61return PagesPerSheet.ToString(CultureInfo.CurrentCulture); 556return PagesPerSheet.ToString(CultureInfo.CurrentCulture) + ", " +
PrintConfig\FallbackPTProvider.cs (1)
110CultureInfo.CurrentCulture,
PrintConfig\PageCopyCount.cs (1)
103return Value.ToString(CultureInfo.CurrentCulture);
PrintConfig\PageMediaSize.cs (4)
84return Value.ToString() + ": " + MediaSizeWidth.ToString(CultureInfo.CurrentCulture) + 85" x " + MediaSizeHeight.ToString(CultureInfo.CurrentCulture); 529": MediaSizeWidth=" + MediaSizeWidth.ToString(CultureInfo.CurrentCulture) + 530", MediaSizeHeight=" + MediaSizeHeight.ToString(CultureInfo.CurrentCulture);
PrintConfig\PageResolution.cs (4)
85return ResolutionX.ToString(CultureInfo.CurrentCulture) + " x " + 86ResolutionY.ToString(CultureInfo.CurrentCulture) + " (Qualitative: " + 420return ResolutionX.ToString(CultureInfo.CurrentCulture) + "x" + 421ResolutionY.ToString(CultureInfo.CurrentCulture) +
PrintConfig\PageScaling.cs (3)
549", ScaleWidth=" + CustomScaleWidth.ToString(CultureInfo.CurrentCulture) + 550", ScaleHeight=" + CustomScaleHeight.ToString(CultureInfo.CurrentCulture) + 551", SquareScale=" + CustomSquareScale.ToString(CultureInfo.CurrentCulture);
PrintConfig\PrtCap_Public_Simple.cs (2)
97return String.Format(CultureInfo.CurrentCulture, "({0}, {1}), ({2}, {3})", 162return String.Format(CultureInfo.CurrentCulture, "({0}, {1})",
PrintConfig\PrtCap_Public.cs (2)
457return new FormatException(String.Format(CultureInfo.CurrentCulture, 497throw NewPrintCapFormatException(String.Format(CultureInfo.CurrentCulture,
PrintConfig\PrtCap_Reader.cs (8)
50throw NewPrintCapFormatException(String.Format(CultureInfo.CurrentCulture, 70throw NewPrintCapFormatException(String.Format(CultureInfo.CurrentCulture, 84throw NewPrintCapFormatException(String.Format(CultureInfo.CurrentCulture, 93throw NewPrintCapFormatException(String.Format(CultureInfo.CurrentCulture, 290throw NewPrintCapFormatException(String.Format(CultureInfo.CurrentCulture, 318throw NewPrintCapFormatException(String.Format(CultureInfo.CurrentCulture, 346throw NewPrintCapFormatException(String.Format(CultureInfo.CurrentCulture, 364throw NewPrintCapFormatException(String.Format(CultureInfo.CurrentCulture,
PrintConfig\PrtTicket_Editor.cs (7)
44throw NewPTFormatException(String.Format(CultureInfo.CurrentCulture, 58throw NewPTFormatException(String.Format(CultureInfo.CurrentCulture, 71throw NewPTFormatException(String.Format(CultureInfo.CurrentCulture, 81throw NewPTFormatException(String.Format(CultureInfo.CurrentCulture, 105throw NewPTFormatException(String.Format(CultureInfo.CurrentCulture, 116throw NewPTFormatException(String.Format(CultureInfo.CurrentCulture, 221throw NewPTFormatException(String.Format(CultureInfo.CurrentCulture,
PrintConfig\PrtTicket_Public_Simple.cs (5)
110return ((PageMediaSizeName != null) ? String.Format(CultureInfo.CurrentCulture, "{0}", PageMediaSizeName) : "Null") + " (" + 111((Width != null) ? String.Format(CultureInfo.CurrentCulture, "{0}", Width) : "Null") + 113((Height != null) ? String.Format(CultureInfo.CurrentCulture, "{0}", Height) : "Null") + 218return ((X != null) ? String.Format(CultureInfo.CurrentCulture, "{0}", X) : "Null") + 220((Y != null) ? String.Format(CultureInfo.CurrentCulture, "{0}", Y) : "Null") +
PrintConfig\PrtTicket_Public.cs (1)
523return new FormatException(String.Format(CultureInfo.CurrentCulture,
PrintConfig\PTProvider.cs (3)
231throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, 336throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, 497throw new ArgumentException(String.Format(CultureInfo.CurrentCulture,
rzc (3)
CommandLine\CommandLineApplication.cs (2)
115CultureInfo.CurrentCulture, 418Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName));
Json\ObjectWriters.cs (1)
18writer.Write(WellKnownPropertyNames.Message, value.GetMessage(CultureInfo.CurrentCulture));
System.Collections.NonGeneric (5)
System\Collections\CaseInsensitiveComparer.cs (2)
24_compareInfo = CultureInfo.CurrentCulture.CompareInfo; 38return new CaseInsensitiveComparer(CultureInfo.CurrentCulture);
System\Collections\CaseInsensitiveHashCodeProvider.cs (1)
19_compareInfo = CultureInfo.CurrentCulture.CompareInfo;
System\Collections\SortedList.cs (2)
85comparer = new Comparer(CultureInfo.CurrentCulture); 101comparer = new Comparer(CultureInfo.CurrentCulture);
System.ComponentModel.Annotations (12)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
30CultureInfo.CurrentCulture, ErrorMessageString, name, OtherPropertyDisplayName ?? OtherProperty);
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (2)
200return string.Format(CultureInfo.CurrentCulture, _lastMessage, name); 331convertedValue = Convert.ChangeType(value, expectedValueType, CultureInfo.CurrentCulture);
System\ComponentModel\DataAnnotations\FileExtensionsAttribute.cs (1)
43string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, ExtensionsFormatted);
System\ComponentModel\DataAnnotations\LengthAttribute.cs (1)
80string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, MinimumLength, MaximumLength);
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (1)
97string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, Length);
System\ComponentModel\DataAnnotations\MinLengthAttribute.cs (1)
80string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, Length);
System\ComponentModel\DataAnnotations\RangeAttribute.cs (1)
183return string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, Minimum, Maximum);
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (2)
61string? stringValue = Convert.ToString(value, CultureInfo.CurrentCulture); 91return string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, Pattern);
System\ComponentModel\DataAnnotations\StringLengthAttribute.cs (1)
78return string.Format(CultureInfo.CurrentCulture, errorMessage, name, MaximumLength, MinimumLength);
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (1)
352string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name);
System.ComponentModel.Composition (10)
System\ComponentModel\Composition\CompositionError.cs (1)
180return new CompositionError(id, string.Format(CultureInfo.CurrentCulture, format, parameters), element, exception);
System\ComponentModel\Composition\CompositionException.cs (6)
178CultureInfo.CurrentCulture, 186CultureInfo.CurrentCulture, 199CultureInfo.CurrentCulture, 220writer.Append(ordinal.ToString(CultureInfo.CurrentCulture)); 252writer.AppendFormat(CultureInfo.CurrentCulture, SR.CompositionException_ElementPrefix, element.DisplayName); 256writer.AppendFormat(CultureInfo.CurrentCulture, SR.CompositionException_OriginFormat, SR.CompositionException_OriginSeparator, element.DisplayName);
System\ComponentModel\Composition\ExceptionBuilder.cs (1)
118return string.Format(CultureInfo.CurrentCulture, format, arguments);
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (2)
379builder.Append(CultureInfo.CurrentCulture.TextInfo.ListSeparator); 389builder.Append(CultureInfo.CurrentCulture.TextInfo.ListSeparator);
System.ComponentModel.TypeConverter (27)
System\ComponentModel\BaseNumberConverter.cs (2)
72culture ??= CultureInfo.CurrentCulture; 96culture ??= CultureInfo.CurrentCulture;
System\ComponentModel\CultureInfoConverter.cs (1)
259CompareInfo compInfo = (CultureInfo.CurrentCulture).CompareInfo;
System\ComponentModel\DateOnlyConverter.cs (1)
86culture ??= CultureInfo.CurrentCulture;
System\ComponentModel\DateTimeConverter.cs (1)
91culture ??= CultureInfo.CurrentCulture;
System\ComponentModel\DateTimeOffsetConverter.cs (1)
93culture ??= CultureInfo.CurrentCulture;
System\ComponentModel\DecimalConverter.cs (1)
61return Convert.ToDecimal(value, CultureInfo.CurrentCulture);
System\ComponentModel\DoubleConverter.cs (1)
29return Convert.ToDouble(value, CultureInfo.CurrentCulture);
System\ComponentModel\MaskedTextProvider.cs (2)
231culture ??= CultureInfo.CurrentCulture; 794throw new IndexOutOfRangeException(index.ToString(CultureInfo.CurrentCulture));
System\ComponentModel\SingleConverter.cs (1)
27internal override object FromString(string value, int radix) => Convert.ToSingle(value, CultureInfo.CurrentCulture);
System\ComponentModel\TimeOnlyConverter.cs (1)
86culture ??= CultureInfo.CurrentCulture;
System\ComponentModel\TypeConverter.cs (5)
49public object? ConvertFrom(object value) => ConvertFrom(null, CultureInfo.CurrentCulture, value); 89return ConvertFrom(context, CultureInfo.CurrentCulture, text); 124if (culture != null && culture != CultureInfo.CurrentCulture) 157return (string?)ConvertTo(null, CultureInfo.CurrentCulture, value, typeof(string)); 165return (string?)ConvertTo(context, CultureInfo.CurrentCulture, value, typeof(string));
System\Drawing\ColorConverter.cs (2)
42return ColorConverterCommon.ConvertFromString(strValue, culture ?? CultureInfo.CurrentCulture); 72culture ??= CultureInfo.CurrentCulture;
System\Drawing\PointConverter.cs (2)
36culture ??= CultureInfo.CurrentCulture; 64culture ??= CultureInfo.CurrentCulture;
System\Drawing\RectangleConverter.cs (2)
36culture ??= CultureInfo.CurrentCulture; 66culture ??= CultureInfo.CurrentCulture;
System\Drawing\SizeConverter.cs (2)
36culture ??= CultureInfo.CurrentCulture; 64culture ??= CultureInfo.CurrentCulture;
System\Drawing\SizeFConverter.cs (2)
36culture ??= CultureInfo.CurrentCulture; 64culture ??= CultureInfo.CurrentCulture;
System.Configuration.ConfigurationManager (2)
System\Configuration\ConfigurationErrorsException.cs (2)
151? BareMessage + " (" + file + " line " + Line.ToString(CultureInfo.CurrentCulture) + ")" 156? BareMessage + " (line " + Line.ToString("G", CultureInfo.CurrentCulture) + ")"
System.Data.Common (19)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
475internal static int DstCompare(string strA, string strB) => CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, ADP.DefaultCompareOptions);
System\Data\Constraint.cs (1)
42CultureInfo locale = (Table != null ? Table.Locale : CultureInfo.CurrentCulture);
System\Data\DataColumn.cs (2)
412((null != _table) ? _table.FormatProvider : CultureInfo.CurrentCulture); 416((null != _table) ? _table.Locale : CultureInfo.CurrentCulture);
System\Data\DataRelation.cs (1)
364CultureInfo locale = (_dataSet != null ? _dataSet.Locale : CultureInfo.CurrentCulture);
System\Data\DataSet.cs (1)
98_culture = CultureInfo.CurrentCulture; // Set default locale
System\Data\DataTable.cs (1)
171_culture = CultureInfo.CurrentCulture;
System\Data\DataTableExtensions.cs (1)
119Locale = CultureInfo.CurrentCulture
System\Data\DataView.cs (2)
323CultureInfo locale = (_table != null ? _table.Locale : CultureInfo.CurrentCulture); 436CultureInfo locale = (_table != null ? _table.Locale : CultureInfo.CurrentCulture);
System\Data\Filter\ExpressionNode.cs (1)
23return ((null != _table) ? _table.FormatProvider : System.Globalization.CultureInfo.CurrentCulture);
System\Data\SQLTypes\SQLDateTime.cs (1)
366DateTimeFormatInfo dtfi = (DateTimeFormatInfo)(CultureInfo.CurrentCulture.GetFormat(typeof(DateTimeFormatInfo)))!;
System\Data\SQLTypes\SQLString.cs (1)
191public SqlString(string? data) : this(data, System.Globalization.CultureInfo.CurrentCulture.LCID, s_iDefaultFlag)
System\Data\xmlsaver.cs (2)
1034if (dataSet.ShouldSerializeLocale() || !dataSet.Locale.Equals(CultureInfo.CurrentCulture)) 1056if (dt.ShouldSerializeLocale() || !dt.Locale.Equals(CultureInfo.CurrentCulture))
System\Data\XMLSchema.cs (4)
2023string tmp = (-1).ToString(CultureInfo.CurrentCulture); 2137string tmp = (-1).ToString(CultureInfo.CurrentCulture); 2525string tmp = GetStringAttribute(elem, Keywords.MSD_ORDINAL, (-1).ToString(CultureInfo.CurrentCulture)); 2583_ds!.SetLocaleValue(CultureInfo.CurrentCulture, false);
System.Data.Odbc (7)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
475internal static int DstCompare(string strA, string strB) => CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, ADP.DefaultCompareOptions);
System\Data\Odbc\OdbcParameter.cs (5)
684value = ((decimal)value).ToString(CultureInfo.CurrentCulture); 698value = ((long)value).ToString(CultureInfo.CurrentCulture); 742int lcid = System.Globalization.CultureInfo.CurrentCulture.LCID; 969int lcid = System.Globalization.CultureInfo.CurrentCulture.LCID; 979Value = decimal.Parse((string)Value, System.Globalization.CultureInfo.CurrentCulture);
System\Data\Odbc\OdbcParameterCollectionHelper.cs (1)
333name = ADP.Parameter + index.ToString(CultureInfo.CurrentCulture);
System.Data.OleDb (3)
OleDbError.cs (1)
19int lcid = System.Globalization.CultureInfo.CurrentCulture.LCID;
OleDbParameterCollectionHelper.cs (1)
320name = ADP.Parameter + index.ToString(CultureInfo.CurrentCulture);
System\Data\Common\AdapterUtil.cs (1)
1283return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, ADP.compareOptions);
System.Diagnostics.EventLog (9)
System\Diagnostics\EventLogEntry.cs (1)
98category = "(" + CategoryNumber.ToString(CultureInfo.CurrentCulture) + ")";
System\Diagnostics\Reader\EventLogSession.cs (1)
240this.ExportLogAndMessages(path, pathType, query, targetFilePath, false, CultureInfo.CurrentCulture);
System\Diagnostics\Reader\ProviderMetadata.cs (1)
58targetCultureInfo ??= CultureInfo.CurrentCulture;
System\Diagnostics\Reader\ProviderMetadataCachedInformation.cs (6)
183ProviderMetadataId key = new ProviderMetadataId(ProviderName, CultureInfo.CurrentCulture); 201ProviderMetadataId key = new ProviderMetadataId(ProviderName, CultureInfo.CurrentCulture); 218ProviderMetadataId key = new ProviderMetadataId(ProviderName, CultureInfo.CurrentCulture); 228ProviderMetadataId key = new ProviderMetadataId(ProviderName, CultureInfo.CurrentCulture); 238ProviderMetadataId key = new ProviderMetadataId(ProviderName, CultureInfo.CurrentCulture); 248ProviderMetadataId key = new ProviderMetadataId(ProviderName, CultureInfo.CurrentCulture);
System.Diagnostics.PerformanceCounter (23)
src\runtime\src\libraries\Common\src\Interop\Windows\Advapi32\Interop.PERF_INFO.cs (6)
183+ wDay.ToString(CultureInfo.CurrentCulture) + "/" + wMonth.ToString(CultureInfo.CurrentCulture) + "/" + wYear.ToString(CultureInfo.CurrentCulture) 184+ " " + wHour.ToString(CultureInfo.CurrentCulture) + ":" + wMinute.ToString(CultureInfo.CurrentCulture) + ":" + wSecond.ToString(CultureInfo.CurrentCulture)
System\Diagnostics\PerformanceCounterLib.cs (17)
292if (CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name) 294CultureInfo culture = CultureInfo.CurrentCulture; 364if (!categoryExists && CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name) 366CultureInfo culture = CultureInfo.CurrentCulture; 747CultureInfo culture = CultureInfo.CurrentCulture; 776if (CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name) 778CultureInfo culture = CultureInfo.CurrentCulture; 814if (sample == null && CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name) 816CultureInfo culture = CultureInfo.CurrentCulture; 851if (!categoryExists && CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name) 853CultureInfo culture = CultureInfo.CurrentCulture; 912if (CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name) 914CultureInfo culture = CultureInfo.CurrentCulture; 1122if (CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name) 1124CultureInfo culture = CultureInfo.CurrentCulture; 1156if (CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name) 1158CultureInfo culture = CultureInfo.CurrentCulture;
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
163_xmlBlobWriter = new XmlTextWriter(new StringWriter(_strBldr, CultureInfo.CurrentCulture));
System.Drawing.Common (4)
System\Drawing\FontConverter.cs (2)
33culture ??= CultureInfo.CurrentCulture; 165culture ??= CultureInfo.CurrentCulture;
System\Drawing\Printing\MarginsConverter.cs (2)
38culture ??= CultureInfo.CurrentCulture; 73culture ??= CultureInfo.CurrentCulture;
System.Drawing.Primitives (1)
System\Drawing\ColorTranslator.cs (1)
274c = ColorConverterCommon.ConvertFromString(htmlColor, CultureInfo.CurrentCulture);
System.Linq.Expressions (1)
System\Linq\Expressions\Expression.cs (1)
230using (System.IO.StringWriter writer = new System.IO.StringWriter(CultureInfo.CurrentCulture))
System.Management (4)
System\Management\Property.cs (4)
306((ulong[])val)[i] = Convert.ToUInt64((string)(wmiValueArray.GetValue(i)), (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(ulong))); 320((long[])val)[i] = Convert.ToInt64((string)(wmiValueArray.GetValue(i)), (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(long))); 349CimType.UInt64 => Convert.ToUInt64((string)wmiValue, (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(ulong))), 350CimType.SInt64 => Convert.ToInt64((string)wmiValue, (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(long))),
System.Net.Requests (1)
System\Net\Cache\HttpRequestCachePolicy.cs (1)
99(CacheSyncDate == DateTime.MinValue ? string.Empty : " CacheSyncDate:" + CacheSyncDate.ToString(CultureInfo.CurrentCulture));
System.Private.CoreLib (59)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (2)
526return CultureInfo.CurrentCulture.TextInfo.ToUpper(c); 563return CultureInfo.CurrentCulture.TextInfo.ToLower(c);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Comparer.cs (1)
20public static readonly Comparer Default = new Comparer(CultureInfo.CurrentCulture);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (2)
124return ChangeType(value, typeCode, CultureInfo.CurrentCulture); 224return ChangeType(value, conversionType, CultureInfo.CurrentCulture);
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (2)
1917return GetDateTimeFormats(CultureInfo.CurrentCulture); 1933return GetDateTimeFormats(format, CultureInfo.CurrentCulture);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (1)
728ManifestError(SR.Format(SR.EventSource_UndefinedKeyword, "0x" + bit.ToString("x", CultureInfo.CurrentCulture), eventName), true);
src\runtime\src\libraries\System.Private.CoreLib\src\System\FormattableString.cs (2)
81return formattable.ToString(Globalization.CultureInfo.CurrentCulture); 85ToString(Globalization.CultureInfo.CurrentCulture);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Unix.cs (1)
53internal static unsafe CultureData GetCurrentRegionData() => CultureInfo.CurrentCulture._cultureData;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
294CultureInfo culture = CultureInfo.CurrentCulture;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (1)
415CultureInfo culture = CultureInfo.CurrentCulture;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringWriter.cs (2)
21: this(new StringBuilder(), CultureInfo.CurrentCulture) 32public StringWriter(StringBuilder sb) : this(sb, CultureInfo.CurrentCulture)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (1)
55=> _internalFormatProvider ?? CultureInfo.CurrentCulture;
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.cs (10)
64return CultureInfo.CurrentCulture.CompareInfo.Compare(span, other, string.GetCaseCompareOfComparisonCulture(comparisonType)) == 0; 114return CultureInfo.CurrentCulture.CompareInfo.Compare(span, other, string.GetCaseCompareOfComparisonCulture(comparisonType)); 150return CultureInfo.CurrentCulture.CompareInfo.IndexOf(span, value, string.GetCaseCompareOfComparisonCulture(comparisonType)); 201return CultureInfo.CurrentCulture.CompareInfo.LastIndexOf(span, value, string.GetCaseCompareOfComparisonCulture(comparisonType)); 236/// <remarks>If <paramref name="culture"/> is null, <see cref="CultureInfo.CurrentCulture"/> will be used.</remarks> 244culture ??= CultureInfo.CurrentCulture; 288/// <remarks>If <paramref name="culture"/> is null, <see cref="CultureInfo.CurrentCulture"/> will be used.</remarks> 296culture ??= CultureInfo.CurrentCulture; 370return CultureInfo.CurrentCulture.CompareInfo.IsSuffix(span, value, string.GetCaseCompareOfComparisonCulture(comparisonType)); 408return CultureInfo.CurrentCulture.CompareInfo.IsPrefix(span, value, string.GetCaseCompareOfComparisonCulture(comparisonType));
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.Utf8.cs (1)
42return CultureInfo.CurrentCulture.CompareInfo.IsPrefixUtf8(span, value, string.GetCaseCompareOfComparisonCulture(comparisonType));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (2)
741public override string ToString() => ToString("G", CultureInfo.CurrentCulture); 746public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string? format) => ToString(format, CultureInfo.CurrentCulture);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (2)
1120public override readonly string ToString() => ToString("G", CultureInfo.CurrentCulture); 1128public readonly string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string? format) => ToString(format, CultureInfo.CurrentCulture);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (2)
1130public override readonly string ToString() => ToString("G", CultureInfo.CurrentCulture); 1138public readonly string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string? format) => ToString(format, CultureInfo.CurrentCulture);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (2)
1200public override readonly string ToString() => ToString("G", CultureInfo.CurrentCulture); 1208public readonly string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string? format) => ToString(format, CultureInfo.CurrentCulture);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (12)
148return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, GetCaseCompareOfComparisonCulture(comparisonType)); 171CultureInfo compareCulture = culture ?? CultureInfo.CurrentCulture; 232return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB, options); 252CultureInfo compareCulture = culture ?? CultureInfo.CurrentCulture; 310return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB, GetCaseCompareOfComparisonCulture(comparisonType)); 451return CultureInfo.CurrentCulture.CompareInfo.IsSuffix(this, value, GetCaseCompareOfComparisonCulture(comparisonType)); 481CultureInfo referenceCulture = culture ?? CultureInfo.CurrentCulture; 604return CultureInfo.CurrentCulture.CompareInfo.Compare(this, value, GetCaseCompareOfComparisonCulture(comparisonType)) == 0; 662return CultureInfo.CurrentCulture.CompareInfo.Compare(a, b, GetCaseCompareOfComparisonCulture(comparisonType)) == 0; 727return CultureInfo.CurrentCulture.CompareInfo.GetHashCode(value, GetCaseCompareOfComparisonCulture(comparisonType)); 1065return CultureInfo.CurrentCulture.CompareInfo.IsPrefix(this, value, GetCaseCompareOfComparisonCulture(comparisonType)); 1104CultureInfo referenceCulture = culture ?? CultureInfo.CurrentCulture;
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (5)
1010var result = new DefaultInterpolatedStringHandler(0, 0, CultureInfo.CurrentCulture, stackalloc char[StackallocCharBufferSizeLimit]); 1218StringComparison.CurrentCulture or StringComparison.CurrentCultureIgnoreCase => ReplaceCore(oldValue, newValue, CultureInfo.CurrentCulture.CompareInfo, GetCaseCompareOfComparisonCulture(comparisonType)), 1235return ReplaceCore(this, oldValue.AsSpan(), newValue.AsSpan(), ci ?? CultureInfo.CurrentCulture.CompareInfo, options) 2574CultureInfo cult = culture ?? CultureInfo.CurrentCulture; 2589CultureInfo cult = culture ?? CultureInfo.CurrentCulture;
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (4)
122StringComparison.CurrentCulture or StringComparison.CurrentCultureIgnoreCase => CultureInfo.CurrentCulture.CompareInfo.IndexOf(this, value, startIndex, count, GetCaseCompareOfComparisonCulture(comparisonType)), 336StringComparison.CurrentCulture or StringComparison.CurrentCultureIgnoreCase => CultureInfo.CurrentCulture.CompareInfo.IndexOf(this, value, startIndex, count, GetCaseCompareOfComparisonCulture(comparisonType)), 536StringComparison.CurrentCulture or StringComparison.CurrentCultureIgnoreCase => CultureInfo.CurrentCulture.CompareInfo.LastIndexOf(this, value, startIndex, count, GetCaseCompareOfComparisonCulture(comparisonType)), 666StringComparison.CurrentCulture or StringComparison.CurrentCultureIgnoreCase => CultureInfo.CurrentCulture.CompareInfo.LastIndexOf(this, value, startIndex, count, GetCaseCompareOfComparisonCulture(comparisonType)),
src\runtime\src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (2)
22new CultureAwareComparer(CultureInfo.CurrentCulture, CompareOptions.None); 25new CultureAwareComparer(CultureInfo.CurrentCulture, CompareOptions.IgnoreCase);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
305return CultureInfo.CurrentCulture;
System.Private.Windows.Core.TestUtilities (9)
ThreadCultureChange.cs (3)
9/// Facilitates temporarily changing the <see cref="CultureInfo.CurrentCulture"/> and <see cref="CultureInfo.CurrentUICulture"/>. 13private readonly CultureInfo _originalCulture = CultureInfo.CurrentCulture; 30_originalCulture = CultureInfo.CurrentCulture;
XUnit\UseCultureAttribute.cs (5)
16/// <see cref="CultureInfo.CurrentCulture" /> and <see cref="CultureInfo.CurrentUICulture" /> with another culture. 68/// <see cref="CultureInfo.CurrentCulture" /> and <see cref="CultureInfo.CurrentUICulture" /> 87CultureInfo.CurrentCulture.ClearCachedData(); 92/// Restores the original <see cref="CultureInfo.CurrentCulture" /> and 106CultureInfo.CurrentCulture.ClearCachedData();
XUnit\UseDefaultXunitCultureAttribute.cs (1)
10/// <see cref="CultureInfo.CurrentCulture" /> and <see cref="CultureInfo.CurrentUICulture" /> with another culture.
System.Private.Xml (5)
System\Xml\Serialization\CodeIdentifiers.cs (2)
14public CaseInsensitiveKeyComparer() : base(CultureInfo.CurrentCulture) 29return CultureInfo.CurrentCulture.TextInfo.ToUpper(s).GetHashCode();
System\Xml\XPath\Internal\CompiledXPathExpr.cs (1)
165_cinfo = CultureInfo.CurrentCulture;
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
418return CultureInfo.CurrentCulture;
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
539return CultureInfo.CurrentCulture;
System.Runtime.Caching (1)
System\Runtime\Caching\Resources\RH.cs (1)
13return string.Format(CultureInfo.CurrentCulture, resource, args);
System.Security.Cryptography (2)
System\Security\Cryptography\CryptographicUnexpectedOperationException.cs (1)
30: base(string.Format(CultureInfo.CurrentCulture, format, insert))
System\Security\Cryptography\X509Certificates\X509Certificate.cs (1)
739CultureInfo culture = CultureInfo.CurrentCulture;
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (1)
662FaultReasonText reason = fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture);
System.ServiceModel.Primitives (44)
Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
90return string.Format(CultureInfo.CurrentCulture, "{0}/{1}", source.GetType().ToString(), source.GetHashCode());
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (4)
43using (StringWriter stringWriter = new StringWriter(sb, CultureInfo.CurrentCulture)) 145using (StringWriter stringWriter = new StringWriter(sb, CultureInfo.CurrentCulture)) 189using (StringWriter stringWriter = new StringWriter(sb, CultureInfo.CurrentCulture)) 303using (StringWriter stringWriter = new StringWriter(sb, CultureInfo.CurrentCulture))
System\IdentityModel\Claims\Claim.cs (1)
241return string.Format(CultureInfo.CurrentCulture, "{0}: {1}", _right, _claimType);
System\ServiceModel\Channels\BindingContext.cs (1)
109builder.Append(CultureInfo.CurrentCulture.TextInfo.ListSeparator);
System\ServiceModel\Channels\ChannelRequirements.cs (2)
274contractChannelTypes.Append(CultureInfo.CurrentCulture.TextInfo.ListSeparator); 318bindingChannelTypes.Append(CultureInfo.CurrentCulture.TextInfo.ListSeparator);
System\ServiceModel\Channels\FaultConverter.cs (9)
98exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 136exception = new ActionNotSupportedException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 141exception = new EndpointNotFoundException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 149exception = new MessageHeaderException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text, true); 157exception = new MessageHeaderException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 162exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 170exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 175exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 189exception = new ServerTooBusyException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text);
System\ServiceModel\Channels\MessageFault.cs (1)
132s_defaultMessageFault = MessageFault.CreateFault(new FaultCode("Default"), new FaultReason("", CultureInfo.CurrentCulture));
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (2)
1809FaultReason faultReason = new FaultReason(SRP.Format(SRP.CSRefused, reason), CultureInfo.CurrentCulture); 1902FaultReason faultReason = new FaultReason(reason, CultureInfo.CurrentCulture);
System\ServiceModel\Channels\ServiceChannel.cs (3)
1055throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ChannelTerminatedException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text)); 1064throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityAccessDeniedException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text)); 1089fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text));
System\ServiceModel\Channels\WsrmFault.cs (1)
35reason = new FaultReason(faultReason, CultureInfo.CurrentCulture);
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
271return source.GetType().ToString() + "/" + source.GetHashCode().ToString(CultureInfo.CurrentCulture);
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
497endpointContractNames.Append(CultureInfo.CurrentCulture.TextInfo.ListSeparator);
System\ServiceModel\FaultException.cs (1)
236return reason.GetMatchingTranslation(Globalization.CultureInfo.CurrentCulture).Text;
System\ServiceModel\FaultReason.cs (1)
81return GetMatchingTranslation(CultureInfo.CurrentCulture);
System\ServiceModel\FaultReasonText.cs (1)
17XmlLang = CultureInfo.CurrentCulture.Name;
System\ServiceModel\MustUnderstandSoapException.cs (1)
37FaultReason reason = new FaultReason(SRP.Format(SRP.SFxHeaderNotUnderstood, name, ns), CultureInfo.CurrentCulture);
System\ServiceModel\ProtocolException.cs (2)
28FaultReasonText reason = fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture); 52FaultReasonText reason = fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture);
System\ServiceModel\Security\SecurityTimestamp.cs (8)
159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampHasCreationAheadOfExpiry, CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture)))); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampHasExpiryTimeInPast, ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew))); 177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampHasCreationTimeInFuture, CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew))); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampWasCreatedTooLongAgo, CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), timeToLive, allowedClockSkew)));
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
126return String.Format(CultureInfo.CurrentCulture, "SecurityContextSecurityToken(Identifier='{0}', KeyGeneration='{1}')", ContextId, _keyGeneration);
System\ServiceModel\WSAddressing10ProblemHeaderQNameFault.cs (2)
39_reason = new FaultReason(e.Message, CultureInfo.CurrentCulture); 49_reason = new FaultReason(e.Message, CultureInfo.CurrentCulture);
System.ServiceModel.Primitives.Tests (1)
ServiceModel\FaultExceptionTest.cs (1)
86Assert.Equal(CultureInfo.CurrentCulture.Name, faultReasonText.XmlLang);
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceBase.cs (1)
285throw new ArgumentException(SR.Format(SR.ServiceName, value, ServiceBase.MaxNameLength.ToString(CultureInfo.CurrentCulture)));
System.Speech (1)
Result\RecognizedPhrase.cs (1)
1042alternateNode.SetAttribute("Rank", i.ToString(CultureInfo.CurrentCulture));
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Roslyn4.0.cs (2)
49CultureInfo originalCulture = CultureInfo.CurrentCulture; 106CultureInfo originalCulture = CultureInfo.CurrentCulture;
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\Regex.Cache.cs (1)
139CultureInfo culture = CultureInfo.CurrentCulture;
System\Text\RegularExpressions\Regex.cs (1)
337RegexTree tree = RegexParser.Parse(pattern, options, (options & RegexOptions.CultureInvariant) != 0 ? CultureInfo.InvariantCulture : CultureInfo.CurrentCulture);
System\Text\RegularExpressions\RegexParser.cs (2)
87(options & RegexOptions.CultureInvariant) != 0 ? CultureInfo.InvariantCulture : CultureInfo.CurrentCulture; 140CultureInfo culture = (options & RegexOptions.CultureInvariant) != 0 ? CultureInfo.InvariantCulture : CultureInfo.CurrentCulture;
System.Text.RegularExpressions.Generator (3)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (2)
87(options & RegexOptions.CultureInvariant) != 0 ? CultureInfo.InvariantCulture : CultureInfo.CurrentCulture; 140CultureInfo culture = (options & RegexOptions.CultureInvariant) != 0 ? CultureInfo.InvariantCulture : CultureInfo.CurrentCulture;
UpgradeToGeneratedRegexCodeFixer.cs (1)
321cultureNameValue = generator.LiteralExpression(CultureInfo.CurrentCulture.Name);
System.Transactions.Local (18)
System\Transactions\Oletx\DtcTransactionManager.cs (1)
117returnTimeout = Convert.ToUInt32(timeout.TotalMilliseconds, CultureInfo.CurrentCulture);
System\Transactions\Oletx\OletxVolatileEnlistment.cs (17)
133OutstandingNotifications.ToString(CultureInfo.CurrentCulture) + 135IncompleteDependentClones.ToString(CultureInfo.CurrentCulture) + 136", phase = " + Phase.ToString(CultureInfo.CurrentCulture); 172OutstandingNotifications.ToString(CultureInfo.CurrentCulture) + 173", incompleteDependentClones = " + IncompleteDependentClones.ToString(CultureInfo.CurrentCulture); 231OutstandingNotifications.ToString(CultureInfo.CurrentCulture) + 233IncompleteDependentClones.ToString(CultureInfo.CurrentCulture); 424abortHint.ToString(CultureInfo.CurrentCulture) + 425", phase = " + Phase.ToString(CultureInfo.CurrentCulture); 537string description = "OletxPhase0VolatileEnlistmentContainer.Phase0Request, abortHint = " + abortHint.ToString(CultureInfo.CurrentCulture); 602OutstandingNotifications.ToString(CultureInfo.CurrentCulture) + 604IncompleteDependentClones.ToString(CultureInfo.CurrentCulture) + 605", phase = " + Phase.ToString(CultureInfo.CurrentCulture); 636OutstandingNotifications.ToString(CultureInfo.CurrentCulture) + 637", incompleteDependentClones = " + IncompleteDependentClones.ToString(CultureInfo.CurrentCulture); 714OutstandingNotifications.ToString(CultureInfo.CurrentCulture) + 716IncompleteDependentClones.ToString(CultureInfo.CurrentCulture);
System.Web.HttpUtility (1)
System\Web\HttpUtility.cs (1)
150_ => HtmlEncode(Convert.ToString(value, CultureInfo.CurrentCulture) ?? string.Empty),
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\KeyTipService.cs (1)
902CultureInfo culture = CultureInfo.CurrentCulture;
System.Windows.Forms (99)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1759wParam = (WPARAM)char.ToUpper(charCode, CultureInfo.CurrentCulture),
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
909? string.Format(CultureInfo.CurrentCulture, SR.DispInvokeFailed, "SetValue", setError)
System\Windows\Forms\Control.cs (4)
6615char c2 = char.ToUpper(charCode, CultureInfo.CurrentCulture); 6629char c1 = char.ToUpper(text[pos], CultureInfo.CurrentCulture); 6631if (c1 == c2 || char.ToLower(c1, CultureInfo.CurrentCulture) == char.ToLower(c2, CultureInfo.CurrentCulture))
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1180if (string.Compare(candidate, base.Text, true, CultureInfo.CurrentCulture) == 0) 1214|| string.Compare(value, GetItemText(selectedItem), ignoreCase: false, CultureInfo.CurrentCulture) != 0)
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
421if (string.Compare(_owner.GetItemText(value), _owner.NativeGetItemText(index), true, CultureInfo.CurrentCulture) != 0)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
27455throw new ArgumentOutOfRangeException(nameof(width), width, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture))); 27460throw new ArgumentOutOfRangeException(nameof(height), height, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture)));
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
222!defaultCellStyle.FormatProvider.Equals(Globalization.CultureInfo.CurrentCulture) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
1320using StringWriter sw = new(sb, CultureInfo.CurrentCulture); 1357using StringWriter sw = new(sb, CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
193get => Properties.GetValueOrDefault<IFormatProvider>(s_propFormatProvider) ?? Globalization.CultureInfo.CurrentCulture;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
308!defaultCellStyle.FormatProvider.Equals(Globalization.CultureInfo.CurrentCulture) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
223!defaultCellStyle.FormatProvider.Equals(CultureInfo.CurrentCulture) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (2)
149using StringWriter sw = new(stringBuilder, CultureInfo.CurrentCulture); 180using StringWriter sw = new(stringBuilder, CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1038? Convert.ToString(displayValue, CultureInfo.CurrentCulture) 2411throw new FormatException(string.Format(CultureInfo.CurrentCulture, SR.Formatter_CantConvert, value, DisplayType));
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
47if (string.Compare(valueStr, Text, true, CultureInfo.CurrentCulture) != 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
284!defaultCellStyle.FormatProvider.Equals(Globalization.CultureInfo.CurrentCulture) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
101return string.Format(SR.DataGridView_AccRowName, index.ToString(CultureInfo.CurrentCulture));
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (2)
120using StringWriter sw = new(stringBuilder, CultureInfo.CurrentCulture); 152using StringWriter sw = new(stringBuilder, CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (4)
627DateTime maxSupportedDateTime = CultureInfo.CurrentCulture.Calendar.MaxSupportedDateTime; 687DateTime minSupportedDateTime = CultureInfo.CurrentCulture.Calendar.MinSupportedDateTime; 833Value = DateTime.Parse(value, CultureInfo.CurrentCulture); 1007return value.ToString("G", CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (2)
61culture ??= CultureInfo.CurrentCulture; 92culture ??= CultureInfo.CurrentCulture;
System\Windows\Forms\Controls\Labels\LinkConverter.cs (2)
57culture ??= CultureInfo.CurrentCulture; 88culture ??= CultureInfo.CurrentCulture;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1087if (string.Compare(value, GetItemText(Items[index]), true, CultureInfo.CurrentCulture) == 0)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
424if (string.Compare(_owner.GetItemText(value), _owner.NativeGetItemText(index), true, CultureInfo.CurrentCulture) != 0)
System\Windows\Forms\Controls\ListControl\ListControl.cs (4)
499found = string.Compare(str, GetItemText(items[index]), ignoreCase, CultureInfo.CurrentCulture) == 0; 503found = string.Compare(str, 0, GetItemText(items[index]), 0, str.Length, ignoreCase, CultureInfo.CurrentCulture) == 0; 530return Convert.ToString(item, CultureInfo.CurrentCulture); 569return Convert.ToString(item, CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
3348if (isPrefixSearch && CultureInfo.CurrentCulture.CompareInfo.IsPrefix(listViewSubItem.Text, text, CompareOptions.IgnoreCase))
System\Windows\Forms\Controls\ListView\ListView.IconComparer.cs (2)
34return string.Compare(currentItem?.Text, nextItem?.Text, false, CultureInfo.CurrentCulture); 38return string.Compare(nextItem?.Text, currentItem?.Text, false, CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (1)
79CultureInfo culture = CultureInfo.CurrentCulture;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (2)
168=> CultureInfo.CurrentCulture.Calendar 169.GetWeekOfYear(date, CultureInfo.CurrentCulture.DateTimeFormat.CalendarWeekRule,
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (5)
1133private static string FormatDate(DateTime value) => value.ToString("d", CultureInfo.CurrentCulture); 1757throw new ArgumentOutOfRangeException(nameof(x), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture))); 1762throw new ArgumentOutOfRangeException(nameof(y), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture)));
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (2)
61culture ??= CultureInfo.CurrentCulture; 100culture ??= CultureInfo.CurrentCulture;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.DisplayNameSortComparer.cs (1)
20CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyDescriptorComparer.cs (1)
36result = string.Compare(a1.PropertyType.FullName, a2.PropertyType.FullName, true, CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2465currentValue = entry.TypeConverter.ConvertTo(entry, CultureInfo.CurrentCulture, currentValue, value.GetType()); 2472equal = string.Compare(@string, currentValue.ToString(), true, CultureInfo.CurrentCulture) == 0;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (4)
111MaskedTextProvider maskedTextProvider = new(NullMask, CultureInfo.CurrentCulture); 123MaskedTextProvider maskedTextProvider = new(mask, CultureInfo.CurrentCulture); 2465Culture = CultureInfo.CurrentCulture; 2670return !CultureInfo.CurrentCulture.Equals(Culture);
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (2)
37double val = double.Parse(text, CultureInfo.CurrentCulture); 42text = val.ToString(CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (4)
2557char charToCompare = char.ToUpper(charCode, CultureInfo.CurrentCulture); 2558char firstLetter = char.ToUpper(text[0], CultureInfo.CurrentCulture); 2559if (firstLetter == charToCompare || (char.ToLower(charCode, CultureInfo.CurrentCulture) == char.ToLower(text[0], CultureInfo.CurrentCulture)))
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.ToolStripContainerTypedControlCollection.cs (1)
37throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, string.Format(SR.TypedControlCollectionShouldBeOfTypes, _contentPanelType.Name, _panelType.Name)), value.GetType().Name);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
52throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, string.Format(SR.TypedControlCollectionShouldBeOfType, nameof(ToolStrip))), control.GetType().Name);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
257Debug.Write(_thisRowID.ToString(CultureInfo.CurrentCulture));
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainUpDownItemCompare.cs (1)
25return string.Compare(p.ToString(), q.ToString(), false, CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (4)
456NumberFormatInfo numberFormatInfo = CultureInfo.CurrentCulture.NumberFormat; 547Value = Constrain(decimal.Parse(Text, CultureInfo.CurrentCulture)); 712text = num.ToString($"{(ThousandsSeparator ? "N" : "F")}{DecimalPlaces}", CultureInfo.CurrentCulture); 821: testNumber.ToString(CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
335wParam = (WPARAM)char.ToUpper(charCode, CultureInfo.CurrentCulture),
System\Windows\Forms\DataBinding\Binding.cs (4)
652cevent.Value = Convert.ChangeType(cevent.Value, cevent.DesiredType, CultureInfo.CurrentCulture); 665cevent.Value = Convert.ChangeType(cevent.Value, cevent.DesiredType, CultureInfo.CurrentCulture); 727object ret = Convert.ChangeType(value, type, CultureInfo.CurrentCulture); 801ret = Convert.ChangeType(value, type, CultureInfo.CurrentCulture);
System\Windows\Forms\DataBinding\BindingNavigator.cs (3)
565_positionItem?.Text = position.ToString(CultureInfo.CurrentCulture); 568_countItem?.Text = DesignMode ? CountItemFormat : string.Format(CultureInfo.CurrentCulture, CountItemFormat, count); 611newPosition = Convert.ToInt32(_positionItem.Text, CultureInfo.CurrentCulture) - 1;
System\Windows\Forms\DataBinding\CurrencyManager.cs (2)
258throw new IndexOutOfRangeException(string.Format(SR.ListManagerNoValue, index.ToString(CultureInfo.CurrentCulture))); 267throw new IndexOutOfRangeException(string.Format(SR.ListManagerNoValue, index.ToString(CultureInfo.CurrentCulture)));
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (3)
174detailsTextBuilder.AppendFormat(CultureInfo.CurrentCulture, sectionseparator, SR.ExDlgMsgExceptionSection); 177detailsTextBuilder.AppendFormat(CultureInfo.CurrentCulture, sectionseparator, SR.ExDlgMsgLoadedAssembliesSection); 194detailsTextBuilder.AppendFormat(CultureInfo.CurrentCulture, sectionseparator, SR.ExDlgMsgJITDebuggingSection);
System\Windows\Forms\Internal\Formatter.cs (3)
384formatInfo ??= CultureInfo.CurrentCulture; 423return string.Format(CultureInfo.CurrentCulture, stringResId, value, targetType.Name); 437return CultureInfo.CurrentCulture;
System\Windows\Forms\Internal\TypedControlCollection.cs (1)
48throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, string.Format(SR.TypedControlCollectionShouldBeOfType, _typeOfControl.Name)), value.GetType().Name);
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
249mnemonic = char.ToUpper(text[i + 1], CultureInfo.CurrentCulture); 253mnemonic = char.ToLower(text[i + 1], CultureInfo.CurrentCulture);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
44culture ??= CultureInfo.CurrentCulture;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (4)
83xmlWriter.WriteAttributeString("Row", c.Row.ToString(CultureInfo.CurrentCulture)); 84xmlWriter.WriteAttributeString("RowSpan", c.RowSpan.ToString(CultureInfo.CurrentCulture)); 86xmlWriter.WriteAttributeString("Column", c.Column.ToString(CultureInfo.CurrentCulture)); 87xmlWriter.WriteAttributeString("ColumnSpan", c.ColumnSpan.ToString(CultureInfo.CurrentCulture));
System.Windows.Forms.Design (30)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
226SizeF sizeW = g.MeasureString(c.ToString(CultureInfo.CurrentCulture), _listBox.Font); 578SizeF sizeW = g.MeasureString(maxC.ToString(CultureInfo.CurrentCulture), _listBox.Font); 622g.DrawString(e.Index.ToString(CultureInfo.CurrentCulture), Font, SystemBrushes.ControlText,
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
66string newItem = PropertyDescriptor.Converter.ConvertToString(TypeDescriptorContext, CultureInfo.CurrentCulture, standardValue)!;
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
64newValue = PropertyDescriptor.Converter.ConvertFrom(_typeDescriptorContext, CultureInfo.CurrentCulture, newValue);
System\ComponentModel\Design\MenuCommandService.cs (1)
84throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.MenuCommandService_DuplicateCommand, commandId.ToString()));
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
1017span[i] = char.ToLower(baseName[i], CultureInfo.CurrentCulture);
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1603_helpTextCtrl.Text = string.Format(CultureInfo.CurrentCulture, (SR.DesignBindingPickerHelpGenCurrentBinding), _selectedNode.Text); 2348resName = string.Format(CultureInfo.CurrentCulture, "DesignBindingPickerHelpNode{0}{1}{2}", dsType, nodeType, (CanSelect ? "1" : "0")); 2484public InstancesNode(string? rootComponentName) : base(null, string.Format(CultureInfo.CurrentCulture, (SR.DesignBindingPickerNodeInstances), rootComponentName), BindingImage.Instances)
System\Windows\Forms\Design\FormatControl.cs (1)
446return _value.ToString(FormatString, CultureInfo.CurrentCulture);
System\Windows\Forms\Design\FormatControl.CurrencyFormatType.cs (1)
23(-1234.5678).ToString(FormatString, CultureInfo.CurrentCulture);
System\Windows\Forms\Design\FormatControl.CustomFormatType.cs (4)
38label = s_dateTimeFormatValue.ToString(formatString, CultureInfo.CurrentCulture); 47label = (-1234.5678).ToString(formatString, CultureInfo.CurrentCulture); 61label = (-1234).ToString(formatString, CultureInfo.CurrentCulture); 75label = s_dateTimeFormatValue.ToString(formatString, CultureInfo.CurrentCulture);
System\Windows\Forms\Design\FormatControl.DateTimeFormatType.cs (1)
31return s_dateTimeFormatValue.ToString(FormatString, CultureInfo.CurrentCulture);
System\Windows\Forms\Design\FormatControl.NumericFormatType.cs (1)
23(-1234.5678).ToString(FormatString, CultureInfo.CurrentCulture);
System\Windows\Forms\Design\FormatControl.ScientificFormatType.cs (1)
23(-1234.5678).ToString(FormatString, CultureInfo.CurrentCulture);
System\Windows\Forms\Design\FormDocumentDesigner.cs (3)
170value.ToString(CultureInfo.CurrentCulture), 171(0.0f).ToString(CultureInfo.CurrentCulture), 172(1.0f).ToString(CultureInfo.CurrentCulture)),
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (1)
130return string.Format(CultureInfo.CurrentCulture, SR.MaskedTextBoxTextEditorErrorFormatString, e.Position, rejectionHint);
System\Windows\Forms\Design\StandardMenuStripVerb.cs (1)
457c = char.ToLower(c, CultureInfo.CurrentCulture);
System\Windows\Forms\Design\StyleEditorForm.cs (2)
558return value.ToString(CultureInfo.CurrentCulture); 563return (value / 100).ToString("P", CultureInfo.CurrentCulture);
System\Windows\Forms\Design\TabOrder.cs (1)
61NumberFormatInfo? formatInfo = (NumberFormatInfo?)CultureInfo.CurrentCulture.GetFormat(typeof(NumberFormatInfo));
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
1715c = char.ToUpper(c, CultureInfo.CurrentCulture); 1735? char.ToUpper(c, CultureInfo.CurrentCulture) 1736: char.ToLower(c, CultureInfo.CurrentCulture);
System.Windows.Forms.Primitives (3)
System\ComponentModel\TypeConverterHelper.cs (1)
30culture ??= CultureInfo.CurrentCulture;
System\Windows\Forms\PaddingConverter.cs (2)
35culture ??= CultureInfo.CurrentCulture; 49culture ??= CultureInfo.CurrentCulture;
System.Windows.Input.Manipulations (5)
System\Windows\Input\Manipulations\Exceptions.cs (2)
204System.Globalization.CultureInfo.CurrentCulture, 239return string.Format(CultureInfo.CurrentCulture, format, args);
System\Windows\Input\Manipulations\PointF.cs (1)
148System.Globalization.CultureInfo.CurrentCulture,
System\Windows\Input\Manipulations\VectorD.cs (1)
456return ToString(System.Globalization.CultureInfo.CurrentCulture);
System\Windows\Input\Manipulations\VectorF.cs (1)
440System.Globalization.CultureInfo.CurrentCulture,
System.Xaml (3)
System\Xaml\Replacements\DateTimeOffsetConverter2.cs (2)
41return dtOffset.ToString("O", culture ?? CultureInfo.CurrentCulture); 81return DateTimeOffset.Parse(s.Trim(), culture ?? CultureInfo.CurrentCulture, DateTimeStyles.None);
System\Xaml\XamlServices.cs (1)
130var sw = new StringWriter(CultureInfo.CurrentCulture);
testhost (2)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\UILanguageOverride.cs (1)
81SetIfNotAlreadySet(VSLANG, language.LCID.ToString(CultureInfo.CurrentCulture), environmentVariableHelper); // for tools following VS guidelines to just work in CLI
src\vstest\src\testhost.x86\DefaultEngineInvoker.cs (1)
202CultureInfo.CurrentCulture,
testhost.arm64 (2)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\UILanguageOverride.cs (1)
81SetIfNotAlreadySet(VSLANG, language.LCID.ToString(CultureInfo.CurrentCulture), environmentVariableHelper); // for tools following VS guidelines to just work in CLI
src\vstest\src\testhost.x86\DefaultEngineInvoker.cs (1)
202CultureInfo.CurrentCulture,
testhost.x86 (2)
DefaultEngineInvoker.cs (1)
202CultureInfo.CurrentCulture,
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\UILanguageOverride.cs (1)
81SetIfNotAlreadySet(VSLANG, language.LCID.ToString(CultureInfo.CurrentCulture), environmentVariableHelper); // for tools following VS guidelines to just work in CLI
UIAutomationClientSideProviders (18)
MS\Internal\AutomationProxies\Accessible.cs (4)
1158Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Unexpected exception thrown for AccessibleChildren: {0}", e)); 1166Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Unexpected hresult from AccessibleChildren: {0} count is {1} and actualCount is {2}", hr, count, actualCount)); 1370Debug.Fail(string.Format(CultureInfo.CurrentCulture, "MsaaNativeProvider: IAccessible threw a COMException: {0}", e.Message)); 1387Debug.Fail(string.Format(CultureInfo.CurrentCulture, "Unexpected IAccessible exception: {0}", e));
MS\Internal\AutomationProxies\EventManager.cs (1)
119System.Diagnostics.Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Unexpected idProp {0} for idOject 0x{1:x8} on element {2} for event {3}", idProp, idObject, el, eventId));
MS\Internal\AutomationProxies\MSAAEventDispatcher.cs (2)
151Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "ERROR: AdviseEventRemoved called for {0} and event/property {1} without matching AdviseEventAdded.", hwnd, key), "NativeMsaaProxy"); 157Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "ERROR: AdviseEventRemoved called for {0} without matching AdviseEventAdded.", hwnd), "NativeMsaaProxy");
MS\Internal\AutomationProxies\NonClientArea.cs (1)
108System.Diagnostics.Debug.Assert(idChild == 0, string.Format(CultureInfo.CurrentCulture, "Invalid Child Id, idChild == {2}\n\rClassName: \"{0}\"\n\rhwnd = 0x{1:x8}", Misc.ProxyGetClassName(hwnd), hwnd.ToInt32(), idChild));
MS\Internal\AutomationProxies\WindowsIPAddress.cs (3)
308_sAutomationId = "Octet " + position.ToString(CultureInfo.CurrentCulture); // This string is a non-localizable string 380Misc.ProxySendMessage(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(i.ToString(CultureInfo.CurrentCulture))); 393return double.Parse(s, CultureInfo.CurrentCulture);
MS\Internal\AutomationProxies\WindowsMenu.cs (5)
2449return string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}", sCanonicalsKeyword, menuText.Substring(pos + cKeyChars + 1, cMenuChars - (pos + cKeyChars + 2)), Char.ToUpper(menuText[cMenuChars - 1], CultureInfo.InvariantCulture)); 2480return "F" + iKey.ToString(CultureInfo.CurrentCulture); 2506itemId = "Item " + result.ToString(CultureInfo.CurrentCulture); 2513itemId = "Item " + (_item + 1).ToString(CultureInfo.CurrentCulture); 2857_sAutomationId = "Item " + (item).ToString(CultureInfo.CurrentCulture);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
426_sAutomationId = "StatusBar.Pane" + item.ToString(CultureInfo.CurrentCulture); // This string is a non-localizable string
MS\Internal\AutomationProxies\WindowsToolbar.cs (1)
628itemId = "Item " + tbb.idCommand.ToString(CultureInfo.CurrentCulture);
UIAutomationTypes (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
69return String.Format(System.Globalization.CultureInfo.CurrentCulture,"[{0}, {1}, {2}, {3}, {4}, {5}]", this.eM11, this.eM12, this.eM21, this.eM22, this.eDx, this.eDy );
vstest.console (80)
CommandLine\CommandLineOptions.cs (1)
280string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidArgument, source), ex);
CommandLine\Executor.cs (4)
271Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoArgumentProcessorFound, arg)); 379Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.DuplicateArgumentError, processor.Metadata.Value.CommandName)); 478string commandLineBanner = string.Format(CultureInfo.CurrentCulture, CommandLineResources.MicrosoftCommandLineTitle, assemblyVersionAndArchitecture); 574Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.OpenResponseFileError, fileName));
Internal\ConsoleLogger.cs (19)
250Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalDays, CommandLineResources.Days)); 254Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalHours, CommandLineResources.Hours)); 258Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalMinutes, CommandLineResources.Minutes)); 262Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalSeconds, CommandLineResources.Seconds)); 279var prefix = string.Format(CultureInfo.CurrentCulture, "{0}{1}", Environment.NewLine, TestMessageFormattingPrefix); 284sb.AppendFormat(CultureInfo.CurrentCulture, "{0}{1}", TestMessageFormattingPrefix, messageText); 315var errorMessage = string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}", TestResultPrefix, TestMessageFormattingPrefix, result.ErrorMessage); 323var stackTrace = string.Format(CultureInfo.CurrentCulture, "{0}{1}", TestResultPrefix, result.ErrorStackTrace); 429Output.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestSourcesDiscovered, commandLineOptions.Sources.Count()), OutputLevel.Information); 706var attachmentOutput = string.Format(CultureInfo.CurrentCulture, CommandLineResources.AttachmentOutputFormat, uriDataAttachment.Uri.LocalPath); 768var failed = sourceSummary.FailedTests.ToString(CultureInfo.CurrentCulture).PadLeft(5); 769var passed = sourceSummary.PassedTests.ToString(CultureInfo.CurrentCulture).PadLeft(5); 770var skipped = sourceSummary.SkippedTests.ToString(CultureInfo.CurrentCulture).PadLeft(5); 771var total = sourceSummary.TotalTests.ToString(CultureInfo.CurrentCulture).PadLeft(5); 781var outputLine = string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummary, 876Output.Information(false, string.Format(CultureInfo.CurrentCulture, totalTestsformat, totalTests)); 880Output.Information(false, ConsoleColor.Green, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryPassedTests, passedTests)); 884Output.Information(false, ConsoleColor.Red, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryFailedTests, failedTests)); 888Output.Information(false, ConsoleColor.Yellow, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummarySkippedTests, skippedTests));
Internal\FilePatternParser.cs (1)
67string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestSourceFileNotFound, filePattern));
Internal\MSBuildLogger.cs (4)
113SendMessage("run-abort", string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunAbortedWithError, e.Error)); 129var summary = string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummary, 361var prefix = string.Format(CultureInfo.CurrentCulture, "{0}{1}", Environment.NewLine, testMessageFormattingPrefix); 366stringBuilder.AppendFormat(CultureInfo.CurrentCulture, "{0}{1}", testMessageFormattingPrefix, messageText);
Internal\ProgressIndicator.cs (1)
42_testRunProgressString = string.Format(CultureInfo.CurrentCulture, "{0}...", Resources.Resources.ProgressIndicatorString);
Processors\AeDebuggerArgumentProcessor.cs (9)
92string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidAeDebuggerArgument, _argument ?? ""); 123_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.PostmortemDebuggerNotSupportedForCurrentOS)); 129_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpToolDirectoryPathArgumenNotFound)); 139_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidProcDumpToolDirectoryPath)); 150_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpFileNameNotFound, procDumpPath)); 157_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpFileNameNotFound, procDumpPath)); 213_output.Error(false, string.Format(CultureInfo.CurrentCulture, invalidArgumentErrorMessage)); 219_output.Error(false, string.Format(CultureInfo.CurrentCulture, invalidArgumentErrorMessage)); 226_output.Error(false, string.Format(CultureInfo.CurrentCulture, invalidDirectoryErrorMessage, directoryInfo.FullName));
Processors\CLIRunSettingsArgumentProcessor.cs (1)
228var exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidTestRunParameterArgument, node);
Processors\CollectArgumentProcessor.cs (4)
97string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.DataCollectorFriendlyNameInvalid, argument); 116throw new SettingsException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.CollectWithTestSettingErrorMessage, argument)); 257EnabledDataCollectors.Add(collectorName.ToLower(CultureInfo.CurrentCulture)); 293EnabledDataCollectors.Add(friendlyName.ToLower(CultureInfo.CurrentCulture));
Processors\EnableBlameArgumentProcessor.cs (3)
134var exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidBlameArgument, argument); 160Output.Warning(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.BlameIncorrectOption, argument)); 241hangDumpParameters.Add("TestTimeout", TimeSpan.FromHours(1).TotalMilliseconds.ToString(CultureInfo.CurrentCulture));
Processors\EnableCodeCoverageArgumentProcessor.cs (1)
193string.Format(CultureInfo.CurrentCulture, "{0} {1}", ObjectModel.Resources.CommonResources.MalformedRunSettingsFile, e.Message), e);
Processors\EnableDiagArgumentProcessor.cs (1)
119string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidDiagArgument, argument);
Processors\EnableLoggerArgumentProcessor.cs (1)
117string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.LoggerUriInvalid, argument);
Processors\FrameworkArgumentProcessor.cs (1)
116string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidFrameworkVersion, argument));
Processors\InIsolationArgumentProcessor.cs (1)
100string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidInIsolationCommand, argument));
Processors\ListExtensionsArgumentProcessor.cs (6)
91ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.UriOfDefaultExecutor, extension.Metadata.DefaultExecutorUri), OutputLevel.Information); 92ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.SupportedFileTypesIndicator + " " + string.Join(", ", extension.Metadata.FileExtension!)), OutputLevel.Information); 128ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "Uri", extension.Metadata.ExtensionUri), OutputLevel.Information); 172ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "Uri", extension.Metadata.ExtensionUri), OutputLevel.Information); 173ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "FriendlyName", string.Join(", ", extension.Metadata.FriendlyName)), OutputLevel.Information); 216ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "SettingName", extension.Metadata.SettingsName), OutputLevel.Information);
Processors\ListTestsArgumentProcessor.cs (1)
233string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableTestsFormat, test.DisplayName),
Processors\ParallelArgumentProcessor.cs (1)
107string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidParallelCommand, argument));
Processors\PlatformArgumentProcessor.cs (1)
144string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidPlatformType, argument, string.Join(", ", validPlatforms)));
Processors\PortArgumentProcessor.cs (1)
182throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.DesignModeClientTimeoutError, _port), ex);
Processors\ResultsDirectoryArgumentProcessor.cs (1)
129throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidResultsDirectoryPathCommand, argument, ex.Message));
Processors\RunSettingsArgumentProcessor.cs (2)
105CultureInfo.CurrentCulture, 142string.Format(CultureInfo.CurrentCulture, "{0} {1}", ObjectModel.Resources.CommonResources.MalformedRunSettingsFile, exception.Message),
Processors\RunSpecificTestsArgumentProcessor.cs (4)
245string warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.SomeTestsUnavailableAfterFiltering, _discoveredTestCount, missingFilters); 262warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoTestsAvailableAfterFiltering, _discoveredTestCount, string.Join(", ", _selectedTestNames!)); 267warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoTestsAvailableInSources, string.Join(", ", _commandLineOptions.Sources)); 271warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.StringFormatToJoinTwoStrings, warningMessage, CommandLineResources.SuggestTestAdapterPathIfNoTestsIsFound);
Processors\TestAdapterLoadingStrategyArgumentProcessor.cs (4)
133throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalidRecursive, $"{nameof(TestAdapterLoadingStrategy.Explicit)}, {nameof(TestAdapterLoadingStrategy.NextToSource)}")); 168throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalid, value)); 185throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterPathValueRequiredWhenStrategyXIsUsed, nameof(TestAdapterLoadingStrategy.Explicit))); 222string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidTestAdapterPathCommand, adapterPath, CommandLineResources.TestAdapterPathDoesNotExist)
Processors\TestAdapterPathArgumentProcessor.cs (1)
137string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterPathValueRequired));
Processors\TestCaseFilterArgumentProcessor.cs (1)
101throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestCaseFilterValueRequired));
Processors\UseVsixExtensionsArgumentProcessor.cs (3)
95throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.UseVsixExtensionsValueRequired)); 101string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidUseVsixExtensionsCommand, argument)); 104_output.Warning(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.UseVsixExtensionsDeprecation));
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\UILanguageOverride.cs (1)
81SetIfNotAlreadySet(VSLANG, language.LCID.ToString(CultureInfo.CurrentCulture), environmentVariableHelper); // for tools following VS guidelines to just work in CLI
TestPlatformHelpers\TestRequestManager.cs (1)
359CultureInfo.CurrentCulture,
vstest.console.arm64 (80)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\UILanguageOverride.cs (1)
81SetIfNotAlreadySet(VSLANG, language.LCID.ToString(CultureInfo.CurrentCulture), environmentVariableHelper); // for tools following VS guidelines to just work in CLI
src\vstest\src\vstest.console\CommandLine\CommandLineOptions.cs (1)
280string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidArgument, source), ex);
src\vstest\src\vstest.console\CommandLine\Executor.cs (4)
271Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoArgumentProcessorFound, arg)); 379Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.DuplicateArgumentError, processor.Metadata.Value.CommandName)); 478string commandLineBanner = string.Format(CultureInfo.CurrentCulture, CommandLineResources.MicrosoftCommandLineTitle, assemblyVersionAndArchitecture); 574Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.OpenResponseFileError, fileName));
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (19)
250Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalDays, CommandLineResources.Days)); 254Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalHours, CommandLineResources.Hours)); 258Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalMinutes, CommandLineResources.Minutes)); 262Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalSeconds, CommandLineResources.Seconds)); 279var prefix = string.Format(CultureInfo.CurrentCulture, "{0}{1}", Environment.NewLine, TestMessageFormattingPrefix); 284sb.AppendFormat(CultureInfo.CurrentCulture, "{0}{1}", TestMessageFormattingPrefix, messageText); 315var errorMessage = string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}", TestResultPrefix, TestMessageFormattingPrefix, result.ErrorMessage); 323var stackTrace = string.Format(CultureInfo.CurrentCulture, "{0}{1}", TestResultPrefix, result.ErrorStackTrace); 429Output.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestSourcesDiscovered, commandLineOptions.Sources.Count()), OutputLevel.Information); 706var attachmentOutput = string.Format(CultureInfo.CurrentCulture, CommandLineResources.AttachmentOutputFormat, uriDataAttachment.Uri.LocalPath); 768var failed = sourceSummary.FailedTests.ToString(CultureInfo.CurrentCulture).PadLeft(5); 769var passed = sourceSummary.PassedTests.ToString(CultureInfo.CurrentCulture).PadLeft(5); 770var skipped = sourceSummary.SkippedTests.ToString(CultureInfo.CurrentCulture).PadLeft(5); 771var total = sourceSummary.TotalTests.ToString(CultureInfo.CurrentCulture).PadLeft(5); 781var outputLine = string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummary, 876Output.Information(false, string.Format(CultureInfo.CurrentCulture, totalTestsformat, totalTests)); 880Output.Information(false, ConsoleColor.Green, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryPassedTests, passedTests)); 884Output.Information(false, ConsoleColor.Red, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryFailedTests, failedTests)); 888Output.Information(false, ConsoleColor.Yellow, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummarySkippedTests, skippedTests));
src\vstest\src\vstest.console\Internal\FilePatternParser.cs (1)
67string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestSourceFileNotFound, filePattern));
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (4)
113SendMessage("run-abort", string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunAbortedWithError, e.Error)); 129var summary = string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummary, 361var prefix = string.Format(CultureInfo.CurrentCulture, "{0}{1}", Environment.NewLine, testMessageFormattingPrefix); 366stringBuilder.AppendFormat(CultureInfo.CurrentCulture, "{0}{1}", testMessageFormattingPrefix, messageText);
src\vstest\src\vstest.console\Internal\ProgressIndicator.cs (1)
42_testRunProgressString = string.Format(CultureInfo.CurrentCulture, "{0}...", Resources.Resources.ProgressIndicatorString);
src\vstest\src\vstest.console\Processors\AeDebuggerArgumentProcessor.cs (9)
92string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidAeDebuggerArgument, _argument ?? ""); 123_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.PostmortemDebuggerNotSupportedForCurrentOS)); 129_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpToolDirectoryPathArgumenNotFound)); 139_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidProcDumpToolDirectoryPath)); 150_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpFileNameNotFound, procDumpPath)); 157_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpFileNameNotFound, procDumpPath)); 213_output.Error(false, string.Format(CultureInfo.CurrentCulture, invalidArgumentErrorMessage)); 219_output.Error(false, string.Format(CultureInfo.CurrentCulture, invalidArgumentErrorMessage)); 226_output.Error(false, string.Format(CultureInfo.CurrentCulture, invalidDirectoryErrorMessage, directoryInfo.FullName));
src\vstest\src\vstest.console\Processors\CLIRunSettingsArgumentProcessor.cs (1)
228var exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidTestRunParameterArgument, node);
src\vstest\src\vstest.console\Processors\CollectArgumentProcessor.cs (4)
97string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.DataCollectorFriendlyNameInvalid, argument); 116throw new SettingsException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.CollectWithTestSettingErrorMessage, argument)); 257EnabledDataCollectors.Add(collectorName.ToLower(CultureInfo.CurrentCulture)); 293EnabledDataCollectors.Add(friendlyName.ToLower(CultureInfo.CurrentCulture));
src\vstest\src\vstest.console\Processors\EnableBlameArgumentProcessor.cs (3)
134var exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidBlameArgument, argument); 160Output.Warning(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.BlameIncorrectOption, argument)); 241hangDumpParameters.Add("TestTimeout", TimeSpan.FromHours(1).TotalMilliseconds.ToString(CultureInfo.CurrentCulture));
src\vstest\src\vstest.console\Processors\EnableCodeCoverageArgumentProcessor.cs (1)
193string.Format(CultureInfo.CurrentCulture, "{0} {1}", ObjectModel.Resources.CommonResources.MalformedRunSettingsFile, e.Message), e);
src\vstest\src\vstest.console\Processors\EnableDiagArgumentProcessor.cs (1)
119string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidDiagArgument, argument);
src\vstest\src\vstest.console\Processors\EnableLoggerArgumentProcessor.cs (1)
117string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.LoggerUriInvalid, argument);
src\vstest\src\vstest.console\Processors\FrameworkArgumentProcessor.cs (1)
116string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidFrameworkVersion, argument));
src\vstest\src\vstest.console\Processors\InIsolationArgumentProcessor.cs (1)
100string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidInIsolationCommand, argument));
src\vstest\src\vstest.console\Processors\ListExtensionsArgumentProcessor.cs (6)
91ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.UriOfDefaultExecutor, extension.Metadata.DefaultExecutorUri), OutputLevel.Information); 92ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.SupportedFileTypesIndicator + " " + string.Join(", ", extension.Metadata.FileExtension!)), OutputLevel.Information); 128ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "Uri", extension.Metadata.ExtensionUri), OutputLevel.Information); 172ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "Uri", extension.Metadata.ExtensionUri), OutputLevel.Information); 173ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "FriendlyName", string.Join(", ", extension.Metadata.FriendlyName)), OutputLevel.Information); 216ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "SettingName", extension.Metadata.SettingsName), OutputLevel.Information);
src\vstest\src\vstest.console\Processors\ListTestsArgumentProcessor.cs (1)
233string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableTestsFormat, test.DisplayName),
src\vstest\src\vstest.console\Processors\ParallelArgumentProcessor.cs (1)
107string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidParallelCommand, argument));
src\vstest\src\vstest.console\Processors\PlatformArgumentProcessor.cs (1)
144string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidPlatformType, argument, string.Join(", ", validPlatforms)));
src\vstest\src\vstest.console\Processors\PortArgumentProcessor.cs (1)
182throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.DesignModeClientTimeoutError, _port), ex);
src\vstest\src\vstest.console\Processors\ResultsDirectoryArgumentProcessor.cs (1)
129throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidResultsDirectoryPathCommand, argument, ex.Message));
src\vstest\src\vstest.console\Processors\RunSettingsArgumentProcessor.cs (2)
105CultureInfo.CurrentCulture, 142string.Format(CultureInfo.CurrentCulture, "{0} {1}", ObjectModel.Resources.CommonResources.MalformedRunSettingsFile, exception.Message),
src\vstest\src\vstest.console\Processors\RunSpecificTestsArgumentProcessor.cs (4)
245string warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.SomeTestsUnavailableAfterFiltering, _discoveredTestCount, missingFilters); 262warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoTestsAvailableAfterFiltering, _discoveredTestCount, string.Join(", ", _selectedTestNames!)); 267warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoTestsAvailableInSources, string.Join(", ", _commandLineOptions.Sources)); 271warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.StringFormatToJoinTwoStrings, warningMessage, CommandLineResources.SuggestTestAdapterPathIfNoTestsIsFound);
src\vstest\src\vstest.console\Processors\TestAdapterLoadingStrategyArgumentProcessor.cs (4)
133throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalidRecursive, $"{nameof(TestAdapterLoadingStrategy.Explicit)}, {nameof(TestAdapterLoadingStrategy.NextToSource)}")); 168throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalid, value)); 185throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterPathValueRequiredWhenStrategyXIsUsed, nameof(TestAdapterLoadingStrategy.Explicit))); 222string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidTestAdapterPathCommand, adapterPath, CommandLineResources.TestAdapterPathDoesNotExist)
src\vstest\src\vstest.console\Processors\TestAdapterPathArgumentProcessor.cs (1)
137string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterPathValueRequired));
src\vstest\src\vstest.console\Processors\TestCaseFilterArgumentProcessor.cs (1)
101throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestCaseFilterValueRequired));
src\vstest\src\vstest.console\Processors\UseVsixExtensionsArgumentProcessor.cs (3)
95throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.UseVsixExtensionsValueRequired)); 101string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidUseVsixExtensionsCommand, argument)); 104_output.Warning(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.UseVsixExtensionsDeprecation));
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (1)
359CultureInfo.CurrentCulture,
WindowsFormsIntegration (12)
System\Windows\Integration\ElementHost.cs (2)
119Debug.WriteLineIf(_traceLayout.TraceInfo, String.Format(CultureInfo.CurrentCulture, "AvalonAdapter({0}): MeasureOverride (constraint={1},result={2})", this.Name, proposedSize, prefSize)); 482string upperKey = Char.ToUpper(charCode, CultureInfo.CurrentCulture).ToString();
System\Windows\Integration\IntegrationExceptionEventArgs.cs (1)
20throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "exception"));
System\Windows\Integration\PropertyMap.cs (5)
82throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "propertyName")); 86throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "translator")); 128throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.WFI_PropertyMappingExists, propertyName)); 140throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.WFI_PropertyDoesntExist, propertyName, SourceObject.GetType().FullName)); 250throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_ArgumentNullOrEmpty, "propertyName"));
System\Windows\Integration\PropertyMappingExceptionEventArgs.cs (2)
24throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "exception")); 28throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_ArgumentNullOrEmpty, "propertyName"));
System\Windows\Integration\WindowsFormsHost.cs (2)
469Debug.WriteLineIf(_traceHandle.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "WindowsFormsHost({0}): BuildWindowCore (parent=0x{1:x8})", this.Name, hwndParent.Handle.ToInt32())); 1025Debug.WriteLineIf(WindowsFormsHost._traceLayout.TraceInfo, String.Format(CultureInfo.CurrentCulture, "WindowsFormsHost({0}): Layout invalidated (control='{1}',property='{2}')", _host.Name, compName, e.AffectedProperty));