2215 references to Format
aspire (148)
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);
Backchannel\AppHostCliBackchannel.cs (2)
287string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostIncompatibleWithCli, BaselineCapability), 307string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostIncompatibleWithCli, BaselineCapability),
Backchannel\AppHostConnectionResolver.cs (1)
198interactionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.UsingAppHost, selectedDisplay));
Backchannel\ExtensionBackchannel.cs (8)
174throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidSocketPath, endpoint)); 226string.Format(CultureInfo.CurrentCulture, ErrorStrings.ExtensionIncompatibleWithCli, 242string.Format(CultureInfo.CurrentCulture, ErrorStrings.ExtensionIncompatibleWithCli, 435throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 465throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 489throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 515throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 541throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText));
Certificates\CertificateGeneration\MacOSCertificateManager.cs (2)
161string.Format(CultureInfo.InvariantCulture, MacOSVerifyCertificateCommandLineArgumentsFormat, tmpFile)) 208string.Format(
Certificates\CertificateService.cs (1)
88interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, ErrorStrings.CertificatesMayNotBeFullyTrusted, trustResultCode));
Commands\AddCommand.cs (4)
276var errorMessage = string.Format(CultureInfo.CurrentCulture, AddCommandStrings.ErrorOccurredWhileAddingPackage, ex.Message); 328InteractionService.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.NoPackagesMatchedSearchTerm, searchTerm)); 381string.Format(CultureInfo.CurrentCulture, AddCommandStrings.SelectAVersionOfPackage, firstPackage.Package.Id), 448string.Format(CultureInfo.CurrentCulture, AddCommandStrings.SelectAVersionOfPackage, firstPackage.Package.Id),
Commands\AgentInitCommand.cs (2)
124return ValidationResult.Error(string.Format(CultureInfo.InvariantCulture, McpCommandStrings.InitCommand_WorkspaceRootNotFound, path)); 265string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.SkippedMalformedConfigFile, applicator.Description));
Commands\AppHostLauncher.cs (2)
314interactionService.DisplayMessage(KnownEmojis.MagnifyingGlassTiltedRight, string.Format( 369_ => string.Format(CultureInfo.CurrentCulture, RunCommandStrings.AppHostExitedWithCode, childExitCode)
Commands\BaseCommand.cs (1)
109_ => (ExitCodeConstants.FailedToFindProject, string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message))
Commands\CacheCommand.cs (1)
164var errorMessage = string.Format(CultureInfo.CurrentCulture, CacheCommandStrings.CacheClearFailed, ex.Message);
Commands\CertificatesCleanCommand.cs (1)
48var details = string.Format(CultureInfo.CurrentCulture, CertificatesCommandStrings.CleanFailureDetailsFormat, result.ErrorMessage);
Commands\CertificatesTrustCommand.cs (1)
49var details = string.Format(CultureInfo.CurrentCulture, CertificatesCommandStrings.TrustFailureDetailsFormat, result);
Commands\ConfigCommand.cs (7)
113InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 193var errorMessage = string.Format(CultureInfo.CurrentCulture, ErrorStrings.ErrorSettingConfiguration, ex.Message); 385InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 408InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ConfigCommandStrings.ConfigurationKeyDeletedGlobally, key)); 412InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ConfigCommandStrings.ConfigurationKeyDeletedLocally, key)); 419InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 425var errorMessage = string.Format(CultureInfo.CurrentCulture, ErrorStrings.ErrorDeletingConfiguration, ex.Message);
Commands\DescribeCommand.cs (2)
125string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, DescribeCommandStrings.SelectAppHostAction), 173_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DescribeCommandStrings.ResourceNotFound, resourceName));
Commands\DocsGetCommand.cs (1)
77InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.DocumentNotFound, slug));
Commands\DocsListCommand.cs (1)
76InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.FoundDocumentationPages, docs.Count));
Commands\DocsSearchCommand.cs (1)
78InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.NoResultsFound, query));
Commands\ExecCommand.cs (5)
246InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, RunCommandStrings.ProjectCouldNotBeRun, ExecutionContext.LogFilePath)); 257InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, RunCommandStrings.ProjectCouldNotBeRun, ExecutionContext.LogFilePath)); 280var errorMessage = string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message); 287var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message); 295var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message);
Commands\ExportCommand.cs (4)
82string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, ExportCommandStrings.SelectAppHostAction), 139_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ExportCommandStrings.ResourceNotFound, resourceName)); 194_interactionService.DisplayMessage(KnownEmojis.CheckMark, string.Format(CultureInfo.CurrentCulture, ExportCommandStrings.ExportComplete, fullPath)); 200_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ExportCommandStrings.FailedToExport, ex.Message));
Commands\InitCommand.cs (1)
172InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.SolutionDetected, initContext.SelectedSolutionFile.Name));
Commands\LogsCommand.cs (2)
151string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, LogsCommandStrings.SelectAppHostAction), 176_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, LogsCommandStrings.ResourceNotFound, resourceName));
Commands\McpCallCommand.cs (1)
74string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, "call MCP tool on"),
Commands\McpToolsCommand.cs (1)
59string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, "list MCP tools for"),
Commands\PipelineCommandBase.cs (3)
328var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message); 341var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.AppHostConnectionLost, ex.Message); 354var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message);
Commands\ResourceCommand.cs (1)
75string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, ResourceCommandStrings.SelectAppHostAction),
Commands\RestoreCommand.cs (3)
105string.Format(CultureInfo.CurrentCulture, RestoreCommandStrings.RestoreSucceeded, effectiveAppHostFile.Name)); 125string.Format(CultureInfo.CurrentCulture, RestoreCommandStrings.RestoreSucceeded, effectiveAppHostFile.Name)); 146var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message);
Commands\RootCommand.cs (1)
161string.Format(CultureInfo.CurrentCulture, RootCommandStrings.WaitingForDebugger, Environment.ProcessId),
Commands\RunCommand.cs (6)
244InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ProjectCouldNotBeBuilt, ExecutionContext.LogFilePath)); 383var errorMessage = string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message); 390var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message); 394InteractionService.DisplayMessage(KnownEmojis.PageFacingUp, string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, ExecutionContext.LogFilePath)); 405var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message); 409InteractionService.DisplayMessage(KnownEmojis.PageFacingUp, string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, ExecutionContext.LogFilePath));
Commands\Sdk\SdkDumpCommand.cs (16)
285var loc = string.IsNullOrEmpty(d.Location) ? "" : string.Format(CultureInfo.InvariantCulture, " [{0}]", d.Location); 308var flagStr = flags.Count > 0 ? string.Format(CultureInfo.InvariantCulture, " [{0}]", string.Join(", ", flags)) : ""; 330var desc = !string.IsNullOrEmpty(p.Description) ? string.Format(CultureInfo.InvariantCulture, " # {0}", p.Description) : ""; 378sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Handle Types: {0}", capabilities.HandleTypes.Count)); 379sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " DTO Types: {0}", capabilities.DtoTypes.Count)); 380sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Enum Types: {0}", capabilities.EnumTypes.Count)); 381sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Capabilities: {0}", capabilities.Capabilities.Count)); 399sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " -> {0}", d.Location)); 423var flagStr = flags.Count > 0 ? string.Format(CultureInfo.InvariantCulture, " ({0})", string.Join(", ", flags)) : ""; 440sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Name)); 443sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Description)); 454sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", p.Description)); 468sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Name)); 469sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", string.Join(" | ", t.Values))); 485sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " [{0}]", group.Key)); 498sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", c.Description));
Commands\SecretDeleteCommand.cs (2)
58InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretNotFound, key.EscapeMarkup())); 63InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretDeleteSuccess, key));
Commands\SecretGetCommand.cs (1)
59InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretNotFound, key.EscapeMarkup()));
Commands\SecretSetCommand.cs (1)
67InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretSetSuccess, key));
Commands\StopCommand.cs (1)
131string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, StopCommandStrings.SelectAppHostAction),
Commands\TelemetryCommandHelpers.cs (1)
113string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, TelemetryCommandStrings.SelectAppHostAction),
Commands\TelemetryLogsCommand.cs (1)
163_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.FailedToFetchTelemetry, ex.Message));
Commands\TelemetrySpansCommand.cs (1)
164_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.FailedToFetchTelemetry, ex.Message));
Commands\TelemetryTracesCommand.cs (3)
131_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.TraceNotFound, traceId)); 160_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.FailedToFetchTelemetry, ex.Message)); 234_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.FailedToFetchTelemetry, ex.Message));
Commands\UpdateCommand.cs (1)
443string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.NoWritePermissionToInstallDirectory, installDir));
Commands\WaitCommand.cs (3)
78_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.InvalidStatusValue, status)); 93string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost, WaitCommandStrings.SelectAppHostAction), 134_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceNotFound, resourceName));
Diagnostics\StartupErrorWriter.cs (1)
67_errorConsole.MarkupLine(prefix + string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, _logFilePath.EscapeMarkup()));
Interaction\BannerService.cs (1)
64var versionText = string.Format(CultureInfo.CurrentCulture, RootCommandStrings.BannerVersionFormat, cliVersion);
Interaction\ConsoleInteractionService.cs (5)
178throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText)); 215throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText)); 416_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NewCliVersionAvailable, newerVersion.EscapeMarkup())); 420_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ToUpdateRunCommand, updateCommand.EscapeMarkup())); 423_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.MoreInfoNewCliVersion, UpdateUrl));
NuGet\NuGetPackageCache.cs (1)
101throw new NuGetPackageCacheException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.FailedToSearchForPackages, result.ExitCode));
Program.cs (2)
545errorMessage = string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidLocaleProvided, localeOverride); 752errorWriter.WriteLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Projects\ProjectLocator.cs (3)
135interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectFileUnsupportedInCurrentEnvironment, relativePath)); 142interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectFileMayBeUnbuildableAppHost, relativePath)); 437interactionService.DisplayMessage(KnownEmojis.FileCabinet, string.Format(CultureInfo.CurrentCulture, message, $"[bold]'{relativeSettingsFilePath.EscapeMarkup()}'[/]"), allowMarkup: true);
Projects\ProjectUpdater.cs (17)
129interactionService.DisplaySubtleMessage(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.ExecutingUpdateStepFormat, updateStep.Description)); 191throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedFetchItemsAndPropertiesFormat, projectFile.FullName)); 234var appHostProjectAnalyzeStep = new AnalyzeStep(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.AnalyzeProjectFormat, context.AppHostProjectFile.FullName), () => AnalyzeProjectAsync(context.AppHostProjectFile, context, cancellationToken)); 384interactionService.DisplaySubtleMessage(string.Format(CultureInfo.InvariantCulture, 399throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 414throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindRootProjectElementFormat, projectFile.FullName)); 432throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindSdkElementFormat, projectFile.FullName)); 583throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 639context.AnalyzeSteps.Enqueue(new AnalyzeStep(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.AnalyzeProjectFormat, referencedProjectFile.FullName), () => AnalyzeProjectAsync(referencedProjectFile, context, cancellationToken))); 795throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 1046interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.AddedFeedFormat, feed.Value)); 1053interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.MappingAddedFormat, pattern)); 1062interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.RemovedFeedFormat, feed.Value)); 1069interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.RetainedFeedFormat, feed.Value)); 1077interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.MappingAddedFormat, pattern)); 1083interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.MappingRemovedFormat, pattern)); 1097interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.MappingRetainedFormat, pattern));
src\Shared\DurationFormatter.cs (1)
60return string.Format(culture, formatString, ticks / primaryUnit.Ticks);
Templating\CliTemplateFactory.cs (1)
229_interactionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, TemplatingStrings.RunCdThenAspireRun, relativePath));
Templating\DotNetTemplateFactory.cs (4)
396interactionService.DisplayMessage(KnownEmojis.CheckMark, string.Format(CultureInfo.CurrentCulture, TemplatingStrings.PromptForTFM_UsingForTesting, testFramework)); 550interactionService.DisplayMessage(KnownEmojis.Package, string.Format(CultureInfo.CurrentCulture, TemplatingStrings.UsingProjectTemplatesVersion, templateInstallResult.TemplateVersion)); 596interactionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.ProjectCreatedSuccessfully, outputPath)); 607interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message));
Utils\AppHostHelper.cs (2)
23interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectCouldNotBeAnalyzed, logFilePath)); 42interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.AspireSDKVersionNotSupported, appHostInformation.AspireHostingVersion));
Utils\EnvironmentChecker\DeprecatedAgentConfigCheck.cs (1)
68Message = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.DeprecatedConfigWarning, location.AgentName),
Utils\EnvironmentChecker\DevCertsCheck.cs (10)
20private static readonly string s_trustFixCommand = string.Format(CultureInfo.InvariantCulture, DoctorCommandStrings.DevCertsTrustFixFormat, "aspire certs trust"); 102Message = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsMultipleNoneTrustedMessageFormat, certInfos.Count), 103Details = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsMultipleNoneTrustedDetailsFormat, certDetails), 116Message = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsMultipleSomeUntrustedMessageFormat, certInfos.Count), 117Details = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsMultipleSomeUntrustedDetailsFormat, certDetails), 146Details = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsNotTrustedDetailsFormat, cert.Thumbprint ?? "unknown"), 162Details = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsPartiallyTrustedDetailsFormat, devCertsTrustPath), 163Fix = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsPartiallyTrustedFixFormat, BuildSslCertDirFixCommand(devCertsTrustPath)), 190Message = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsOldVersionMessageFormat, versions), 191Details = string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DevCertsOldVersionDetailsFormat, CertificateManager.CurrentMinimumAspNetCoreCertificateVersion),
Aspire.Dashboard (4)
Components\Controls\ApplicationName.razor.cs (1)
44applicationName = string.Format(CultureInfo.InvariantCulture, Loc[ResourceName], DashboardClient.ApplicationName);
Components\Controls\ClearSignalsButton.razor.cs (1)
51: string.Format(CultureInfo.InvariantCulture, ControlsStringsLoc[name: nameof(ControlsStrings.ClearSelectedResource)], SelectedResource.Name),
Model\TraceLinkHelpers.cs (1)
28string.Format(CultureInfo.InvariantCulture, loc[nameof(Dialogs.OpenSpanDialogMessage)], OtlpHelpers.ToShortenedId(spanId)),
src\Shared\DurationFormatter.cs (1)
60return string.Format(culture, formatString, ticks / primaryUnit.Ticks);
Aspire.Hosting (14)
ApplicationModel\CommandsConfigurationExtensions.cs (1)
192return new ExecuteCommandResult { Success = false, ErrorMessage = string.Format(CultureInfo.InvariantCulture, CommandStrings.RebuilderResourceNotFound, projectResource.Name) };
ApplicationModel\ParameterResource.cs (1)
146Placeholder = string.Format(CultureInfo.CurrentCulture, InteractionStrings.ParametersInputsParameterPlaceholder, Name)
ApplicationModel\RequiredCommandValidator.cs (3)
105_ => string.Format(CultureInfo.CurrentCulture, MessageStrings.RequiredCommandNotFound, command) 113(not null, null) => string.Format(CultureInfo.CurrentCulture, MessageStrings.RequiredCommandNotFound, command), 114_ => string.Format(CultureInfo.CurrentCulture, MessageStrings.RequiredCommandNotFound, command)
Dcp\DcpDependencyCheck.cs (3)
88throw new DistributedApplicationException(string.Format( 116throw new DistributedApplicationException(string.Format( 166throw new DistributedApplicationException(string.Format(
Orchestrator\ParameterProcessor.cs (2)
338? string.Format(CultureInfo.CurrentCulture, InteractionStrings.DeleteParameterMessageWithUserSecrets, parameterResource.Name) 339: string.Format(CultureInfo.CurrentCulture, InteractionStrings.DeleteParameterMessage, parameterResource.Name);
Publishing\ContainerRuntimeBase.cs (1)
164throw new DistributedApplicationException(string.Format(System.Globalization.CultureInfo.InvariantCulture, exceptionMessageTemplate, processResult.ExitCode));
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (2)
62var message = string.Format(CultureInfo.InvariantCulture, LaunchProfileStrings.LaunchSettingsFileDoesNotContainProfileExceptionMessage, launchProfileName); 79var message = string.Format(CultureInfo.InvariantCulture, LaunchProfileStrings.ProjectFileNotFoundExceptionMessage, projectMetadata.ProjectPath);
VersionChecking\VersionCheckService.cs (1)
147message: string.Format(CultureInfo.CurrentCulture, InteractionStrings.VersionCheckMessage, latestVersion),
Aspire.Hosting.Azure.Functions (2)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (2)
62var message = string.Format(CultureInfo.InvariantCulture, LaunchProfileStrings.LaunchSettingsFileDoesNotContainProfileExceptionMessage, launchProfileName); 79var message = string.Format(CultureInfo.InvariantCulture, LaunchProfileStrings.ProjectFileNotFoundExceptionMessage, projectMetadata.ProjectPath);
Aspire.Hosting.DevTunnels (2)
DevTunnelHealthCheck.cs (1)
31return HealthCheckResult.Unhealthy(string.Format(CultureInfo.CurrentCulture, Resources.MessageStrings.DevTunnelUnhealthy_NoActiveHostConnections, _tunnelResource.TunnelId));
DevTunnelPortHealthCheck.cs (1)
27return Task.FromResult(HealthCheckResult.Unhealthy(string.Format(CultureInfo.CurrentCulture, Resources.MessageStrings.DevTunnelUnhealthy_NoActiveHostConnections, _tunnelResource.TunnelId)));
Aspire.Hosting.Testing (3)
DistributedApplicationHostingTestingExtensions.cs (3)
55throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, Properties.Resources.ResourceDoesNotExposeConnectionStringExceptionMessage, resourceName), nameof(resourceName)); 138throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, Properties.Resources.ResourceNotFoundExceptionMessage, resourceName), nameof(resourceName)); 149throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, Properties.Resources.ResourceHasNoAllocatedEndpointsExceptionMessage, resourceName), nameof(resourceName));
Aspire.Hosting.Tests (2)
Dcp\DcpHostNotificationTests.cs (1)
115Assert.Contains(string.Format(CultureInfo.InvariantCulture, InteractionStrings.ContainerRuntimeUnhealthyMessage, "docker"), interaction.Message);
ReferenceExpressionTests.cs (1)
60var expected = string.Format(CultureInfo.InvariantCulture, input, parameterValue);
aspire-managed (3)
NuGet\Commands\LayoutCommand.cs (2)
118Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "Libraries: {0}", target.Libraries.Count)); 228Console.WriteLine(string.Format(CultureInfo.InvariantCulture, " ({0} packages skipped - not found in cache)", skippedCount));
NuGet\Commands\RestoreCommand.cs (1)
321Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "Using {0} package sources:", packageSources.Count));
dotnet (10)
Commands\Test\MTP\IPC\NamedPipeBase.cs (2)
30: throw new ArgumentException((string.Format( 41: throw new ArgumentException(string.Format(
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (6)
253terminal.Append(string.Format(CultureInfo.CurrentCulture, "{0}!", CliCommandStrings.Failed)); 261terminal.Append(string.Format(CultureInfo.CurrentCulture, "{0}!", CliCommandStrings.Failed)); 265terminal.Append(string.Format(CultureInfo.CurrentCulture, "{0}!", CliCommandStrings.Passed)); 434(true, _) => string.Format(CultureInfo.CurrentCulture, CliCommandStrings.FailedWithErrors, state.FailedTests), 1019terminal.Append(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.DiscoveredTestsInAssembly, assembly.DiscoveredTestNames.Count)); 1052terminal.AppendLine(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.TestDiscoverySummarySingular, totalTests));
Commands\Test\MTP\Terminal\TestNodeResultsState.cs (2)
60? string.Format(CultureInfo.CurrentCulture, CliCommandStrings.ActiveTestsRunning_FullTestsCount, sortedDetails.Count) 62: $"... {string.Format(CultureInfo.CurrentCulture, CliCommandStrings.ActiveTestsRunning_MoreTestsCount, sortedDetails.Count - itemsToTake)}";
dotnet-dev-certs (8)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
162string.Format(CultureInfo.InvariantCulture, MacOSVerifyCertificateCommandLineArgumentsFormat, tmpFile)) 210string.Format(
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (6)
120var message = string.Format( 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName)); 444headerBuilder.Insert(6, string.Format(CultureInfo.InvariantCulture, " {0}", cmd.Name)); 481var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxArgLen + 2); 497var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxOptLen + 2); 513var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxCmdLen + 2);
dotnet-getdocument (8)
src\aspnetcore\artifacts\obj\dotnet-getdocument\Release\net11.0\Microsoft.Extensions.ApiDescription.Tool.Resources.cs (2)
44=> string.Format(Culture, GetResourceString("NETStandardProject"), p0); 66=> string.Format(Culture, GetResourceString("MissingOption"), p0);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (6)
120var message = string.Format( 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName)); 444headerBuilder.Insert(6, string.Format(CultureInfo.InvariantCulture, " {0}", cmd.Name)); 481var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxArgLen + 2); 497var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxOptLen + 2); 513var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxCmdLen + 2);
dotnet-Microsoft.XmlSerializer.Generator (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
dotnet-openapi (6)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (6)
120var message = string.Format( 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName)); 444headerBuilder.Insert(6, string.Format(CultureInfo.InvariantCulture, " {0}", cmd.Name)); 481var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxArgLen + 2); 497var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxOptLen + 2); 513var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxCmdLen + 2);
dotnet-sql-cache (8)
SqlQueries.cs (2)
38CreateTable = string.Format(CultureInfo.InvariantCulture, CreateTableFormat, tableNameWithSchema); 39CreateNonClusteredIndexOnExpirationTime = string.Format(
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (6)
120var message = string.Format( 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName)); 444headerBuilder.Insert(6, string.Format(CultureInfo.InvariantCulture, " {0}", cmd.Name)); 481var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxArgLen + 2); 497var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxOptLen + 2); 513var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxCmdLen + 2);
dotnet-svcutil.xmlserializer (2)
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (2)
253ToolConsole.WriteLine(string.Format(CultureInfo.InvariantCulture, " {0}", syntax)); 254s_exampleBuilder.WriteParagraph(string.Format(CultureInfo.InvariantCulture, " {0}", explanation));
dotnet-svcutil-lib (122)
CmdCredentialsProvider.cs (1)
143Console.WriteLine(string.Format(CultureInfo.InvariantCulture, SR.CertificateSelectionMessageFormat, serviceUri.Authority));
CodeDomFixup\MethodCreationHelper.cs (7)
120string.Format(CultureInfo.InvariantCulture, comment, "///") + 126string.Format(CultureInfo.InvariantCulture, comment, "'''") + 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));
CodeDomFixup\NoSoapEncodingFixup.cs (1)
30MetadataConversionError warning = new MetadataConversionError(string.Format(CultureInfo.InvariantCulture, SR.ErrIncompatibleContractSoapEncodingFormat, contract.Name), isWarning: true);
CodeSerializer.cs (1)
90filePath = _outputFilePath.Contains(" ") ? string.Format(CultureInfo.InvariantCulture, "\"{0}\"", _outputFilePath) : _outputFilePath;
CommandProcessorOptions.cs (8)
353throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrInvalidOperationNoProjectFileFoundUnderFolderFormat, workingDirectory)); 358var moreThanOneProjectMsg = string.Format(CultureInfo.CurrentCulture, SR.ErrMoreThanOneProjectFoundFormat, workingDirectory); 480throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrInvalidOperationNoProjectFileFoundUnderFolderFormat, Directory.GetCurrentDirectory())); 515throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrNoUpdateParamsFileFoundFormat, 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.Xml\Xml\Dom\XmlDocument.cs (1)
958throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, ResXml.Xdom_Import, node.NodeType.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlLoader.cs (1)
1007return new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, ResXml.Xml_UnexpectedNodeType, nodetype.ToString()));
FrameworkFork\Microsoft.Xml\Xml\XmlException.cs (2)
216aStringList[1] = string.Format(CultureInfo.InvariantCulture, "0x{0:X2}", combinedChar); 229aStringList[1] = string.Format(CultureInfo.InvariantCulture, "0x{0:X2}", (int)invChar);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (4)
1075throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(string.Format(CultureInfo.InvariantCulture, "localNames[{0}]", i)); 1090throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(string.Format(CultureInfo.InvariantCulture, "localNames[{0}]", i)); 1117throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(string.Format(CultureInfo.InvariantCulture, "localNames[{0}]", i)); 1132throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(string.Format(CultureInfo.InvariantCulture, "localNames[{0}]", i));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (4)
243throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(string.Format(CultureInfo.InvariantCulture, "localNames[{0}]", i)); 269throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(string.Format(CultureInfo.InvariantCulture, "localNames[{0}]", i)); 511throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(string.Format(CultureInfo.InvariantCulture, "strings[{0}]", i)); 531throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(string.Format(CultureInfo.InvariantCulture, "strings[{0}]", i));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpsSecurityMode.cs (1)
39Fx.Assert(mode == BasicHttpSecurityMode.Transport || mode == BasicHttpSecurityMode.TransportWithMessageCredential, string.Format(CultureInfo.InvariantCulture, "Invalid BasicHttpSecurityMode value: {0}.", mode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1036action = string.Format(CultureInfo.InvariantCulture, "\"{0}\"", UrlUtility.UrlPathEncode(action));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (3)
58string.Format(CultureInfo.InvariantCulture, "handlers[<<{0}>>]", cnt), 65string.Format(CultureInfo.InvariantCulture, "handlers[<<{0}>>]", cnt), 73string.Format(CultureInfo.InvariantCulture, "handlers[<<{0}>>]", cnt),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (2)
49action = string.Format(CultureInfo.InvariantCulture, "\"{0}\"", UrlUtility.UrlPathEncode(action)); 102string value = string.Format(CultureInfo.InvariantCulture, "\"{0}\"", actionParams[0].Value);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (9)
1414sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString())); 1415sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "DefaultAlgorithmSuite: {0}", _defaultAlgorithmSuite.ToString())); 1416sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IncludeTimestamp: {0}", _includeTimestamp.ToString())); 1417sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", _keyEntropyMode.ToString())); 1418sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "MessageSecurityVersion: {0}", this.MessageSecurityVersion.ToString())); 1419sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", _securityHeaderLayout.ToString())); 1420sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ProtectTokens: {0}", _protectTokens.ToString())); 1433sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters[\"{0}\"]:", requestAction)); 1445sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters[\"{0}\"]:", requestAction));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElementImporter.cs (2)
237sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "MessageProtectionOrder: {0}", _messageProtectionOrder.ToString())); 238sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "RequireSignatureConfirmation: {0}", _requireSignatureConfirmation.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SymmetricSecurityBindingElement.cs (2)
186sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "MessageProtectionOrder: {0}", _messageProtectionOrder.ToString())); 187sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "RequireSignatureConfirmation: {0}", _requireSignatureConfirmation.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (1)
90invalidChar = string.Format(CultureInfo.InvariantCulture, "[{0}]", (int)ch);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (9)
945return string.Format(CultureInfo.InvariantCulture, "{0}Async", syncMethodName); 950return string.Format(CultureInfo.InvariantCulture, "onBegin{0}Delegate", syncMethodName); 955return string.Format(CultureInfo.InvariantCulture, "OnBegin{0}", syncMethodName); 960return string.Format(CultureInfo.InvariantCulture, "onEnd{0}Delegate", syncMethodName); 965return string.Format(CultureInfo.InvariantCulture, "OnEnd{0}", syncMethodName); 970return string.Format(CultureInfo.InvariantCulture, "on{0}CompletedDelegate", syncMethodName); 975return string.Format(CultureInfo.InvariantCulture, "On{0}Completed", syncMethodName); 980return string.Format(CultureInfo.InvariantCulture, "{0}Completed", syncMethodName); 985return string.Format(CultureInfo.InvariantCulture, "{0}CompletedEventArgs", syncMethodName);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (2)
198Fx.Assert(String.Format(CultureInfo.InvariantCulture, "Cannot find DataContract attribute for {0}", messageName)); 200throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(String.Format(CultureInfo.InvariantCulture, "Cannot find DataContract attribute for {0}", messageName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (3)
421Fx.Assert(Microsoft.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(name), String.Format(System.Globalization.CultureInfo.InvariantCulture, "Type name '{0}' is not ValidLanguageIndependentIdentifier!", name)); 587Fx.Assert(String.IsNullOrEmpty(typeName) || Microsoft.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(typeName), String.Format(System.Globalization.CultureInfo.InvariantCulture, "Type name '{0}' is not ValidLanguageIndependentIdentifier!", typeName)); 1030Fx.Assert(String.Format(System.Globalization.CultureInfo.InvariantCulture, "Attribute generation is not supported for argument type {0}", type));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\PolicyReader.cs (1)
231return string.Format(CultureInfo.InvariantCulture, "#{0}", id);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "Cannot generate unique name for name {0}", baseName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (2)
840return string.Format(CultureInfo.InvariantCulture, "#{0}", key); 874return string.Format(CultureInfo.InvariantCulture, "{0}_policy", wsdlBinding.Name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (2)
1768string documentPath = string.Format(CultureInfo.InvariantCulture, xPathDocumentFormatString, wsdlNs); 1854rest += string.Format(CultureInfo.InvariantCulture, xPathItemSubFormatString, messageTag);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\IdentityVerifier.cs (1)
235expectedSpn = string.Format(CultureInfo.InvariantCulture, "host/{0}", (string)identity.IdentityClaim.Resource);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityToken.cs (1)
259throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "value[{0}]", index)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityTokenResponseCollection.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(String.Format(CultureInfo.InvariantCulture, "rstrCollection[{0}]", index));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (3)
305identity = EndpointIdentity.CreateSpnIdentity(String.Format(CultureInfo.InvariantCulture, "host/{0}", DnsCache.MachineName)); 398spn = string.Format(CultureInfo.InvariantCulture, "host/{0}", (string)identity.IdentityClaim.Resource); 416return string.Format(CultureInfo.InvariantCulture, "host/{0}", target.Uri.DnsSafeHost);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (9)
23private static readonly string s_wsidPPIClaim = String.Format(CultureInfo.InvariantCulture, "{0}/claims/privatepersonalidentifier", wsidNamespace); 595sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "TokenType: {0}", _tokenType == null ? "null" : _tokenType)); 596sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyType: {0}", _keyType.ToString())); 597sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeySize: {0}", _keySize.ToString(CultureInfo.InvariantCulture))); 598sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerAddress: {0}", _issuerAddress == null ? "null" : _issuerAddress.ToString())); 599sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerMetadataAddress: {0}", _issuerMetadataAddress == null ? "null" : _issuerMetadataAddress.ToString())); 600sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "DefaultMessgeSecurityVersion: {0}", _defaultMessageSecurityVersion == null ? "null" : _defaultMessageSecurityVersion.ToString())); 601sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "UseStrTransform: {0}", _useStrTransform.ToString())); 613sb.AppendLine(String.Format(CultureInfo.InvariantCulture, " BindingElement[{0}]:", i.ToString(CultureInfo.InvariantCulture)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecureConversationSecurityTokenParameters.cs (1)
165sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "RequireCancellation: {0}", _requireCancellation.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (2)
95sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString())); 96sb.Append(String.Format(CultureInfo.InvariantCulture, "RequireDerivedKeys: {0}", _requireDerivedKeys.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (3)
229sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString())); 233sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "PropertyName: {0}", propertyName)); 234sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "PropertyValue: {0}", propertyValue));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SslSecurityTokenParameters.cs (2)
111sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "RequireCancellation: {0}", this.RequireCancellation.ToString())); 112sb.Append(String.Format(CultureInfo.InvariantCulture, "RequireClientCertificate: {0}", this.RequireClientCertificate.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SspiSecurityTokenParameters.cs (1)
90sb.Append(String.Format(CultureInfo.InvariantCulture, "RequireCancellation: {0}", this.RequireCancellation.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (4)
120sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Endorsing[{0}]", k.ToString(CultureInfo.InvariantCulture))); 129sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Signed[{0}]", k.ToString(CultureInfo.InvariantCulture))); 138sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEncrypted[{0}]", k.ToString(CultureInfo.InvariantCulture))); 147sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEndorsing[{0}]", k.ToString(CultureInfo.InvariantCulture)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\X509SecurityTokenParameters.cs (1)
82sb.Append(String.Format(CultureInfo.InvariantCulture, "X509ReferenceStyle: {0}", _x509ReferenceStyle.ToString()));
HelpGenerator.cs (2)
95s_helpBuilder.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", syntax)); 96s_helpBuilder.AppendLine(paragraphHelper.AddIndentation(string.Format(CultureInfo.InvariantCulture, " {0}", explanation), indentLength: 4));
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 (3)
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)); 358return string.Format(CultureInfo.InvariantCulture, "{0}", id);
Metadata\MetadataFileNameManager.cs (4)
56throw new InvalidOperationException(string.Format(MetadataResources.Culture, MetadataResources.ErrUnableToCreateUniqueFileNameFormat, GetFileNameWithExtension(fileName, extension))); 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\OptionBase.cs (1)
182throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorOptionAlreadyDeserializedFormat, this.SerializationName));
Shared\Options\OptionsSerializer.cs (2)
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 (1)
239var supportedValues = string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorOnInvalidEnumSupportedValuesFormat, string.Join(", ", Enum.GetNames(typeof(TValue))));
Shared\ProjectDependency.cs (1)
273throw new FormatException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorDepenencySpecFormat, dependencySpec));
dotnet-user-jwts (28)
src\aspnetcore\artifacts\obj\dotnet-user-jwts\Release\net11.0\Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Resources.cs (14)
46=> string.Format(Culture, GetResourceString("ClearCommand_NoJwtsRemoved"), p0); 62=> string.Format(Culture, GetResourceString("CreateCommand_Confirmed", new [] { "id" }), id); 74=> string.Format(Culture, GetResourceString("CreateCommand_AppsettingsFileNotFound_Error"), p0); 82=> string.Format(Culture, GetResourceString("CreateCommand_InvalidDate_Error", new [] { "type" }), type); 90=> string.Format(Culture, GetResourceString("CreateCommand_InvalidPeriod_Error"), p0); 150=> string.Format(Culture, GetResourceString("KeyCommand_Confirmed"), p0); 160=> string.Format(Culture, GetResourceString("KeyCommand_KeyCreated"), p0); 178=> string.Format(Culture, GetResourceString("ListCommand_Project"), p0); 186=> string.Format(Culture, GetResourceString("ListCommand_UserSecretsId"), p0); 192=> string.Format(Culture, GetResourceString("PrintCommand_Confirmed"), p0); 202=> string.Format(Culture, GetResourceString("PrintCommand_NoJwtFound"), p0); 226=> string.Format(Culture, GetResourceString("RemoveCommand_Confirmed"), p0); 236=> string.Format(Culture, GetResourceString("RemoveCommand_NoJwtFound"), p0); 244=> string.Format(Culture, GetResourceString("RemoveCommand_AppsettingsFileNotFound_Error"), p0);
src\aspnetcore\artifacts\obj\dotnet-user-jwts\Release\net11.0\Microsoft.AspNetCore.Tools.SecretsHelpersResources.cs (8)
34=> string.Format(Culture, GetResourceString("Error_InvalidSecretsId", new [] { "userSecretsId" }), userSecretsId); 40=> string.Format(Culture, GetResourceString("Error_MultipleProjectsFound", new [] { "projectPath" }), projectPath); 46=> string.Format(Culture, GetResourceString("Error_NoProjectsFound", new [] { "projectPath" }), projectPath); 52=> string.Format(Culture, GetResourceString("Error_ProjectFailedToLoad", new [] { "project" }), project); 58=> string.Format(Culture, GetResourceString("Error_ProjectMissingId", new [] { "project" }), project); 64=> string.Format(Culture, GetResourceString("Error_File_NotFound"), p0); 70=> string.Format(Culture, GetResourceString("Message_ProjectAlreadyInitialized", new [] { "project" }), project); 76=> string.Format(Culture, GetResourceString("Message_Project_File_Path", new [] { "project" }), project);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (6)
120var message = string.Format( 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName)); 444headerBuilder.Insert(6, string.Format(CultureInfo.InvariantCulture, " {0}", cmd.Name)); 481var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxArgLen + 2); 497var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxOptLen + 2); 513var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxCmdLen + 2);
dotnet-user-secrets (26)
src\aspnetcore\artifacts\obj\dotnet-user-secrets\Release\net11.0\Microsoft.AspNetCore.Tools.SecretsHelpersResources.cs (8)
34=> string.Format(Culture, GetResourceString("Error_InvalidSecretsId", new [] { "userSecretsId" }), userSecretsId); 40=> string.Format(Culture, GetResourceString("Error_MultipleProjectsFound", new [] { "projectPath" }), projectPath); 46=> string.Format(Culture, GetResourceString("Error_NoProjectsFound", new [] { "projectPath" }), projectPath); 52=> string.Format(Culture, GetResourceString("Error_ProjectFailedToLoad", new [] { "project" }), project); 58=> string.Format(Culture, GetResourceString("Error_ProjectMissingId", new [] { "project" }), project); 64=> string.Format(Culture, GetResourceString("Error_File_NotFound"), p0); 70=> string.Format(Culture, GetResourceString("Message_ProjectAlreadyInitialized", new [] { "project" }), project); 76=> string.Format(Culture, GetResourceString("Message_Project_File_Path", new [] { "project" }), project);
src\aspnetcore\artifacts\obj\dotnet-user-secrets\Release\net11.0\Microsoft.Extensions.SecretManager.Tools.Resources.cs (12)
34=> string.Format(Culture, GetResourceString("Error_Command_Failed", new [] { "message" }), message); 42=> string.Format(Culture, GetResourceString("Error_MissingArgument", new [] { "name" }), name); 48=> string.Format(Culture, GetResourceString("Error_Missing_Secret", new [] { "key" }), key); 54=> string.Format(Culture, GetResourceString("Error_MultipleProjectsFound", new [] { "projectPath" }), projectPath); 62=> string.Format(Culture, GetResourceString("Error_ProjectMissingId", new [] { "project" }), project); 68=> string.Format(Culture, GetResourceString("Error_ProjectFailedToLoad", new [] { "project" }), project); 74=> string.Format(Culture, GetResourceString("Message_Project_File_Path", new [] { "project" }), project); 80=> string.Format(Culture, GetResourceString("Message_Saved_Secret", new [] { "key" }), key); 86=> string.Format(Culture, GetResourceString("Message_Saved_Secrets", new [] { "number" }), number); 92=> string.Format(Culture, GetResourceString("Message_Secret_File_Path", new [] { "secretsFilePath" }), secretsFilePath); 104=> string.Format(Culture, GetResourceString("Error_InvalidSecretsId", new [] { "userSecretsId" }), userSecretsId); 110=> string.Format(Culture, GetResourceString("Message_ProjectAlreadyInitialized", new [] { "project" }), project);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (6)
120var message = string.Format( 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName)); 444headerBuilder.Insert(6, string.Format(CultureInfo.InvariantCulture, " {0}", cmd.Name)); 481var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxArgLen + 2); 497var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxOptLen + 2); 513var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxCmdLen + 2);
GetDocument.Insider (13)
src\aspnetcore\artifacts\obj\GetDocument.Insider\Release\net11.0\Microsoft.Extensions.ApiDescription.Tool.Resources.cs (7)
36=> string.Format(Culture, GetResourceString("MissingOption"), p0); 50=> string.Format(Culture, GetResourceString("GeneratingDocument"), p0); 56=> string.Format(Culture, GetResourceString("MissingEntryPoint"), p0); 62=> string.Format(Culture, GetResourceString("ServiceTypeNotFound"), p0); 74=> string.Format(Culture, GetResourceString("ServiceNotFound"), p0); 144=> string.Format(Culture, GetResourceString("InvalidOpenApiVersion"), p0); 150=> string.Format(Culture, GetResourceString("DocumentNotFound"), p0);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (6)
120var message = string.Format( 424Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName)); 444headerBuilder.Insert(6, string.Format(CultureInfo.InvariantCulture, " {0}", cmd.Name)); 481var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxArgLen + 2); 497var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxOptLen + 2); 513var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxCmdLen + 2);
Microsoft.Analyzers.Local (2)
ApiLifecycle\Json\TextScanner.cs (2)
116string.Format(CultureInfo.InvariantCulture, "Parser expected '{0}'", next), 152string.Format(CultureInfo.InvariantCulture, "Parser expected '{0}'", Peek()),
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 (6)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Antiforgery\Release\net11.0\Microsoft.AspNetCore.Antiforgery.Resources.cs (3)
60=> string.Format(Culture, GetResourceString("Antiforgery_CookieToken_MustBeProvided"), p0); 68=> string.Format(Culture, GetResourceString("Antiforgery_FormToken_MustBeProvided"), p0); 74=> string.Format(Culture, GetResourceString("Antiforgery_HeaderToken_MustBeProvided"), p0);
src\aspnetcore\src\Shared\WebEncoders\Properties\EncoderResources.cs (1)
35return string.Format(CultureInfo.CurrentCulture, WebEncoders_MalformedInput, p0);
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (2)
229string.Format( 491string.Format(
Microsoft.AspNetCore.App.Analyzers (18)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.App.Analyzers\Release\netstandard2.0\Microsoft.AspNetCore.Analyzers.Resources.cs (18)
36=> string.Format(Culture, GetResourceString("TemplateRoute_CannotHaveDefaultValueSpecifiedInlineAndExplicitly"), p0); 52=> string.Format(Culture, GetResourceString("TemplateRoute_InvalidLiteral"), p0); 58=> string.Format(Culture, GetResourceString("TemplateRoute_InvalidParameterName"), p0); 68=> string.Format(Culture, GetResourceString("TemplateRoute_RepeatedParameter"), p0); 110=> string.Format(Culture, GetResourceString("Analyzer_RequestDelegateReturnValue_Message"), p0); 118=> string.Format(Culture, GetResourceString("Analyzer_RouteIssue_Message"), p0); 126=> string.Format(Culture, GetResourceString("Analyzer_UnusedParameter_Message"), p0); 152=> string.Format(Culture, GetResourceString("Analyzer_DoNotReturnActionResultsFromRouteHandlers_Message"), p0); 160=> string.Format(Culture, GetResourceString("Analyzer_DetectMisplacedLambdaAttribute_Message"), p0); 168=> string.Format(Culture, GetResourceString("Analyzer_DoNotUseNonLiteralSequenceNumbers_Message"), p0); 176=> string.Format(Culture, GetResourceString("Analyzer_DetectMismatchedParameterOptionality_Message"), p0); 196=> string.Format(Culture, GetResourceString("Analyzer_DoNotUseHostConfigureLogging_Message"), p0); 204=> string.Format(Culture, GetResourceString("Analyzer_DoNotUseHostConfigureServices_Message"), p0); 212=> string.Format(Culture, GetResourceString("Analyzer_DisallowConfigureAppConfigureHostBuilder_Message"), p0); 220=> string.Format(Culture, GetResourceString("Analyzer_UseTopLevelRouteRegistrationsInsteadOfUseEndpoints_Message"), p0); 244=> string.Format(Culture, GetResourceString("Analyzer_AmbiguousRouteHandlerRoute_Message"), p0); 252=> string.Format(Culture, GetResourceString("Analyzer_AmbiguousActionRoute_Message"), p0); 262=> string.Format(Culture, GetResourceString("Analyzer_OverriddenAuthorizeAttribute_Message"), p0);
Microsoft.AspNetCore.Authentication (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Authentication\Release\net11.0\Microsoft.AspNetCore.Authentication.Resources.cs (1)
40=> string.Format(Culture, GetResourceString("Exception_OptionMustBeProvided"), p0);
Microsoft.AspNetCore.Authentication.Facebook (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Authentication.Facebook\Release\net11.0\Microsoft.AspNetCore.Authentication.Facebook.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("Exception_OptionMustBeProvided"), p0);
Microsoft.AspNetCore.Authentication.Google (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Authentication.Google\Release\net11.0\Microsoft.AspNetCore.Authentication.Google.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("Exception_OptionMustBeProvided"), p0);
Microsoft.AspNetCore.Authentication.JwtBearer (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Authentication.JwtBearer\Release\net11.0\Microsoft.AspNetCore.Authentication.JwtBearer.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("Exception_OptionMustBeProvided"), p0);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Authentication.MicrosoftAccount\Release\net11.0\Microsoft.AspNetCore.Authentication.MicrosoftAccount.Resources.cs (1)
36=> string.Format(Culture, GetResourceString("Exception_OptionMustBeProvided"), p0);
Microsoft.AspNetCore.Authentication.OAuth (2)
OAuthOptions.cs (1)
36throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Exception_OptionMustBeProvided, nameof(CallbackPath)), nameof(CallbackPath));
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Authentication.OAuth\Release\net11.0\Microsoft.AspNetCore.Authentication.OAuth.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("Exception_OptionMustBeProvided"), p0);
Microsoft.AspNetCore.Authentication.OpenIdConnect (9)
OpenIdConnectHandler.cs (5)
1391throw new SecurityTokenException(string.Format(CultureInfo.InvariantCulture, Resources.UnableToValidateToken, idToken)); 1414throw new SecurityTokenException(string.Format(CultureInfo.InvariantCulture, Resources.ValidatedSecurityTokenNotJwt, validatedToken?.GetType())); 1420throw new SecurityTokenException(string.Format(CultureInfo.InvariantCulture, Resources.UnableToValidateToken, idToken)); 1469throw new SecurityTokenException(string.Format(CultureInfo.InvariantCulture, Resources.UnableToValidateTokenFromHandler, idToken)); 1475throw new SecurityTokenException(string.Format(CultureInfo.InvariantCulture, Resources.ValidatedSecurityTokenNotJsonWebToken, validatedToken?.GetType()));
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Authentication.OpenIdConnect\Release\net11.0\Microsoft.AspNetCore.Authentication.OpenIdConnect.Resources.cs (4)
44=> string.Format(Culture, GetResourceString("ValidatedSecurityTokenNotJwt"), p0); 50=> string.Format(Culture, GetResourceString("UnableToValidateToken"), p0); 58=> string.Format(Culture, GetResourceString("ValidatedSecurityTokenNotJsonWebToken"), p0); 64=> string.Format(Culture, GetResourceString("UnableToValidateTokenFromHandler"), p0);
Microsoft.AspNetCore.Authentication.Twitter (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Authentication.Twitter\Release\net11.0\Microsoft.AspNetCore.Authentication.Twitter.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("Exception_OptionMustBeProvided"), p0);
Microsoft.AspNetCore.Authentication.WsFederation (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Authentication.WsFederation\Release\net11.0\Microsoft.AspNetCore.Authentication.WsFederation.Resources.cs (1)
38=> string.Format(Culture, GetResourceString("Exception_OptionMustBeProvided"), p0);
Microsoft.AspNetCore.Authorization (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Authorization\Release\net11.0\Microsoft.AspNetCore.Authorization.Resources.cs (1)
36=> string.Format(Culture, GetResourceString("Exception_AuthorizationPolicyNotFound"), p0);
Microsoft.AspNetCore.Components (5)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Components\Release\net11.0\Microsoft.AspNetCore.Components.Routing.Resources.cs (5)
104=> string.Format(Culture, GetResourceString("ArgumentMustBeGreaterThanOrEqualTo"), p0); 116=> string.Format(Culture, GetResourceString("TemplateRoute_CannotHaveDefaultValueSpecifiedInlineAndExplicitly"), p0); 132=> string.Format(Culture, GetResourceString("TemplateRoute_InvalidLiteral"), p0); 138=> string.Format(Culture, GetResourceString("TemplateRoute_InvalidParameterName"), p0); 162=> string.Format(Culture, GetResourceString("TemplateRoute_RepeatedParameter"), p0);
Microsoft.AspNetCore.Components.Analyzers (7)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Components.Analyzers\Release\netstandard2.0\Microsoft.AspNetCore.Components.Analyzers.Resources.cs (7)
36=> string.Format(Culture, GetResourceString("ComponentParameterSettersShouldBePublic_Format"), p0); 64=> string.Format(Culture, GetResourceString("ComponentParameterShouldBePublic_Format"), p0); 78=> string.Format(Culture, GetResourceString("ComponentParameterShouldNotBeSetOutsideOfTheirDeclaredComponent_Format"), p0); 88=> string.Format(Culture, GetResourceString("DoNotUseRenderTreeTypes_Format"), p0); 96=> string.Format(Culture, GetResourceString("ComponentParametersShouldBeAutoProperties_Message"), p0); 108=> string.Format(Culture, GetResourceString("SupplyParameterFromFormShouldNotHavePropertyInitializer_Format"), p0); 118=> string.Format(Culture, GetResourceString("PersistentStateShouldNotHavePropertyInitializer_Format"), p0);
Microsoft.AspNetCore.Components.Endpoints (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Components.Endpoints\Release\net11.0\Microsoft.AspNetCore.Components.Endpoints.Resources.cs (1)
48=> string.Format(Culture, GetResourceString("UnsupportedRenderMode"), p0);
Microsoft.AspNetCore.Components.SdkAnalyzers (4)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Components.SdkAnalyzers\Release\netstandard2.0\Microsoft.AspNetCore.Components.Analyzers.Resources.cs (4)
36=> string.Format(Culture, GetResourceString("ComponentParameterSettersShouldBePublic_Format"), p0); 64=> string.Format(Culture, GetResourceString("ComponentParameterShouldBePublic_Format"), p0); 78=> string.Format(Culture, GetResourceString("ComponentParameterShouldNotBeSetOutsideOfTheirDeclaredComponent_Format"), p0); 88=> string.Format(Culture, GetResourceString("DoNotUseRenderTreeTypes_Format"), p0);
Microsoft.AspNetCore.Components.Web (2)
Forms\InputDate.cs (1)
121validationErrorMessage = string.Format(CultureInfo.InvariantCulture, _parsingErrorMessage, DisplayName ?? FieldIdentifier.FieldName);
Forms\InputNumber.cs (1)
78validationErrorMessage = string.Format(CultureInfo.InvariantCulture, ParsingErrorMessage, DisplayName ?? FieldIdentifier.FieldName);
Microsoft.AspNetCore.Components.WebView (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Components.WebView\Release\net11.0\Microsoft.AspNetCore.Components.WebView.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("Exception_PathMustStartWithSlash"), p0);
Microsoft.AspNetCore.Cors (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Cors\Release\net11.0\Microsoft.AspNetCore.Cors.Resources.cs (1)
36=> string.Format(Culture, GetResourceString("PolicyNotFound"), p0);
Microsoft.AspNetCore.Cryptography.Internal (2)
SafeHandles\BCryptAlgorithmHandle.cs (1)
144string message = String.Format(CultureInfo.CurrentCulture, Resources.BCryptAlgorithmHandle_ProviderNotFound, algorithmId);
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Cryptography.Internal\Release\net11.0\Microsoft.AspNetCore.Cryptography.Internal.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("BCryptAlgorithmHandle_ProviderNotFound"), p0);
Microsoft.AspNetCore.DataProtection (18)
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);
KeyManagement\XmlKeyManager.cs (2)
553var friendlyName = string.Format(CultureInfo.InvariantCulture, "key-{0:D}", keyId); 640var friendlyName = string.Format(CultureInfo.InvariantCulture, "revocation-{0:D}", keyId);
Repositories\RegistryXmlRepository.cs (1)
91var aspnetAutoGenKeysBaseKeyName = string.Format(
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.DataProtection\Release\net11.0\Microsoft.AspNetCore.DataProtection.Resources.cs (8)
44=> string.Format(Culture, GetResourceString("Common_PropertyCannotBeNullOrEmpty"), p0); 78=> string.Format(Culture, GetResourceString("Common_PropertyMustBeNonNegative"), p0); 86=> string.Format(Culture, GetResourceString("CertificateXmlEncryptor_CertificateNotFound"), p0); 94=> string.Format(Culture, GetResourceString("AlgorithmAssert_BadBlockSize"), p0); 100=> string.Format(Culture, GetResourceString("AlgorithmAssert_BadDigestSize"), p0); 106=> string.Format(Culture, GetResourceString("AlgorithmAssert_BadKeySize"), p0); 118=> string.Format(Culture, GetResourceString("LifetimeMustNotBeNegative"), p0); 124=> string.Format(Culture, GetResourceString("FileSystem_EphemeralKeysLocationInContainer", new [] { "path" }), path);
XmlEncryption\DpapiNGXmlEncryptor.cs (1)
107return string.Format(CultureInfo.InvariantCulture, "SID={0}", currentIdentity?.User?.Value);
Microsoft.AspNetCore.DataProtection.Abstractions (4)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.DataProtection.Abstractions\Release\net11.0\Microsoft.AspNetCore.DataProtection.Abstractions.Resources.cs (1)
40=> string.Format(Culture, GetResourceString("DataProtectionExtensions_NoService"), p0);
src\aspnetcore\src\Shared\WebEncoders\Properties\EncoderResources.cs (1)
35return string.Format(CultureInfo.CurrentCulture, WebEncoders_MalformedInput, p0);
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (2)
229string.Format( 491string.Format(
Microsoft.AspNetCore.DataProtection.Extensions (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.DataProtection.Extensions\Release\net11.0\Microsoft.AspNetCore.DataProtection.Extensions.Resources.cs (1)
36=> string.Format(Culture, GetResourceString("TimeLimitedDataProtector_PayloadExpired"), p0);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
162string.Format(CultureInfo.InvariantCulture, MacOSVerifyCertificateCommandLineArgumentsFormat, tmpFile)) 210string.Format(
Microsoft.AspNetCore.Diagnostics (5)
StatusCodePage\StatusCodePagesExtensions.cs (5)
86var body = string.Format(CultureInfo.InvariantCulture, bodyFormat, context.HttpContext.Response.StatusCode); 109var location = string.Format(CultureInfo.InvariantCulture, locationFormat, context.HttpContext.Response.StatusCode); 118var location = string.Format(CultureInfo.InvariantCulture, locationFormat, context.HttpContext.Response.StatusCode); 222string.Format(CultureInfo.InvariantCulture, pathFormat, originalStatusCode)); 224string.Format(CultureInfo.InvariantCulture, queryFormat, originalStatusCode);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\AcceptanceTests.Mvc.cs (2)
115string redactedUserId = string.Format(CultureInfo.InvariantCulture, RedactedFormat, UserId); 161string redactedUserId = string.Format(CultureInfo.InvariantCulture, RedactedFormat, UserId);
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\XmlComments\GrpcXmlCommentsDocumentFilter.cs (1)
56var typeNode = _xmlNavigator.SelectSingleNode(string.Format(CultureInfo.InvariantCulture, MemberXPath, memberName));
Microsoft.AspNetCore.Hosting (3)
Internal\StartupLoader.cs (3)
243string.Format( 320var methodNameWithEnv = string.Format(CultureInfo.InvariantCulture, methodName, environmentName); 321var methodNameWithNoEnv = string.Format(CultureInfo.InvariantCulture, methodName, "");
Microsoft.AspNetCore.Http.Abstractions (5)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Http.Abstractions\Release\net11.0\Microsoft.AspNetCore.Http.Abstractions.Resources.cs (5)
34=> string.Format(Culture, GetResourceString("Exception_UseMiddlewareIServiceProviderNotAvailable"), p0); 64=> string.Format(Culture, GetResourceString("Exception_PathMustStartWithSlash"), p0); 76=> string.Format(Culture, GetResourceString("Exception_InvokeDoesNotSupportRefOrOutParams"), p0); 84=> string.Format(Culture, GetResourceString("Exception_UseMiddlewareNoMiddlewareFactory"), p0); 96=> string.Format(Culture, GetResourceString("Exception_UseMiddlewareExplicitArgumentsNotSupported"), p0);
Microsoft.AspNetCore.Http.Connections (4)
Internal\ConnectionLogScope.cs (1)
54_cachedToString = string.Format(
src\aspnetcore\src\Shared\WebEncoders\Properties\EncoderResources.cs (1)
35return string.Format(CultureInfo.CurrentCulture, WebEncoders_MalformedInput, p0);
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (2)
229string.Format( 491string.Format(
Microsoft.AspNetCore.Http.Extensions (4)
HeaderDictionaryTypeExtensions.cs (1)
319throw new NotSupportedException(string.Format(
RequestDelegateFactory.cs (3)
2779var message = string.Format(CultureInfo.InvariantCulture, RequestDelegateCreationLogging.ImplicitBodyNotProvidedExceptionMessage, parameterName); 2793var message = string.Format(CultureInfo.InvariantCulture, RequestDelegateCreationLogging.UnexpectedJsonContentTypeExceptionMessage, contentType); 2807var message = string.Format(CultureInfo.InvariantCulture, RequestDelegateCreationLogging.UnexpectedFormContentTypeExceptionMessage, contentType);
Microsoft.AspNetCore.Identity (3)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (3)
1617var message = string.Format(CultureInfo.InvariantCulture, "Implicit body inferred for parameter \"{0}\" but no body was provided. Did you mean to use a Service instead?", parameterName); 1634var message = string.Format(CultureInfo.InvariantCulture, "Expected a supported JSON media type but got \"{0}\".", contentType); 1651var message = string.Format(CultureInfo.InvariantCulture, "Expected a supported form media type but got \"{0}\".", contentType);
Microsoft.AspNetCore.Identity.EntityFrameworkCore (2)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Identity.EntityFrameworkCore\Release\net11.0\Microsoft.AspNetCore.Identity.EntityFrameworkCore.Resources.cs (1)
40=> string.Format(Culture, GetResourceString("RoleNotFound"), p0);
UserStore.cs (1)
372throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.RoleNotFound, normalizedRoleName));
Microsoft.AspNetCore.JsonPatch (15)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.JsonPatch\Release\net11.0\Microsoft.AspNetCore.JsonPatch.Resources.cs (15)
34=> string.Format(Culture, GetResourceString("CannotCopyProperty"), p0); 40=> string.Format(Culture, GetResourceString("CannotDeterminePropertyType"), p0); 52=> string.Format(Culture, GetResourceString("CannotReadProperty"), p0); 58=> string.Format(Culture, GetResourceString("CannotUpdateProperty"), p0); 64=> string.Format(Culture, GetResourceString("ExpressionTypeNotSupported"), p0); 70=> string.Format(Culture, GetResourceString("IndexOutOfBounds"), p0); 76=> string.Format(Culture, GetResourceString("InvalidIndexValue"), p0); 84=> string.Format(Culture, GetResourceString("InvalidJsonPatchOperation"), p0); 90=> string.Format(Culture, GetResourceString("InvalidPathSegment"), p0); 96=> string.Format(Culture, GetResourceString("InvalidValueForPath"), p0); 102=> string.Format(Culture, GetResourceString("InvalidValueForProperty"), p0); 114=> string.Format(Culture, GetResourceString("PatchNotSupportedForArrays"), p0); 120=> string.Format(Culture, GetResourceString("PatchNotSupportedForNonGenericLists"), p0); 126=> string.Format(Culture, GetResourceString("TargetLocationAtPathSegmentNotFound"), p0); 146=> string.Format(Culture, GetResourceString("ValueForTargetSegmentCannotBeNullOrEmpty"), p0);
Microsoft.AspNetCore.JsonPatch.SystemTextJson (15)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.JsonPatch.SystemTextJson\Release\net11.0\Microsoft.AspNetCore.JsonPatch.SystemTextJson.Resources.cs (15)
34=> string.Format(Culture, GetResourceString("CannotCopyProperty"), p0); 40=> string.Format(Culture, GetResourceString("CannotDeterminePropertyType"), p0); 52=> string.Format(Culture, GetResourceString("CannotReadProperty"), p0); 58=> string.Format(Culture, GetResourceString("CannotUpdateProperty"), p0); 64=> string.Format(Culture, GetResourceString("ExpressionTypeNotSupported"), p0); 70=> string.Format(Culture, GetResourceString("IndexOutOfBounds"), p0); 76=> string.Format(Culture, GetResourceString("InvalidIndexValue"), p0); 84=> string.Format(Culture, GetResourceString("InvalidJsonPatchOperation"), p0); 90=> string.Format(Culture, GetResourceString("InvalidPathSegment"), p0); 96=> string.Format(Culture, GetResourceString("InvalidValueForPath"), p0); 102=> string.Format(Culture, GetResourceString("InvalidValueForProperty"), p0); 114=> string.Format(Culture, GetResourceString("PatchNotSupportedForArrays"), p0); 120=> string.Format(Culture, GetResourceString("PatchNotSupportedForNonGenericLists"), p0); 126=> string.Format(Culture, GetResourceString("TargetLocationAtPathSegmentNotFound"), p0); 146=> string.Format(Culture, GetResourceString("ValueForTargetSegmentCannotBeNullOrEmpty"), p0);
Microsoft.AspNetCore.Mvc.Abstractions (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Mvc.Abstractions\Release\net11.0\Microsoft.AspNetCore.Mvc.Abstractions.Resources.cs (1)
100=> string.Format(Culture, GetResourceString("ModelStateDictionary_MaxModelStateDepth"), p0);
Microsoft.AspNetCore.Mvc.Core (43)
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));
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Mvc.Core\Release\net11.0\Microsoft.AspNetCore.Mvc.Core.Resources.cs (41)
34=> string.Format(Culture, GetResourceString("MatchAllContentTypeIsNotAllowed"), p0); 58=> string.Format(Culture, GetResourceString("ActionInvokerFactory_CouldNotCreateInvoker"), p0); 64=> string.Format(Culture, GetResourceString("ActionDescriptorMustBeBasedOnControllerAction"), p0); 84=> string.Format(Culture, GetResourceString("ModelBinding_NullValueNotValid"), p0); 90=> string.Format(Culture, GetResourceString("Invalid_IncludePropertyExpression"), p0); 116=> string.Format(Culture, GetResourceString("ActionResult_ActionReturnValueCannotBeNull"), p0); 128=> string.Format(Culture, GetResourceString("InputFormatterNoEncoding"), p0); 134=> string.Format(Culture, GetResourceString("UnsupportedContentType"), p0); 140=> string.Format(Culture, GetResourceString("OutputFormatterNoMediaType"), p0); 228=> string.Format(Culture, GetResourceString("FileResult_InvalidPath"), p0); 248=> string.Format(Culture, GetResourceString("ApiExplorer_UnsupportedAction"), p0); 254=> string.Format(Culture, GetResourceString("FormatterMappings_NotValidMediaType"), p0); 260=> string.Format(Culture, GetResourceString("Format_NotValid"), p0); 266=> string.Format(Culture, GetResourceString("CacheProfileNotFound"), p0); 308=> string.Format(Culture, GetResourceString("JQueryFormValueProviderFactory_MissingClosingBracket"), p0); 316=> string.Format(Culture, GetResourceString("ModelBinderUtil_ModelCannotBeNull"), p0); 330=> string.Format(Culture, GetResourceString("ModelBinding_MissingBindRequiredMember"), p0); 344=> string.Format(Culture, GetResourceString("FileResult_PathNotRooted"), p0); 352=> string.Format(Culture, GetResourceString("FormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat"), p0); 358=> string.Format(Culture, GetResourceString("AcceptHeaderParser_ParseAcceptHeader_InvalidValues"), p0); 370=> string.Format(Culture, GetResourceString("ModelState_NonPropertyAttemptedValueIsInvalid"), p0); 376=> string.Format(Culture, GetResourceString("ModelState_UnknownValueIsInvalid"), p0); 384=> string.Format(Culture, GetResourceString("HtmlGeneration_ValueIsInvalid"), p0); 390=> string.Format(Culture, GetResourceString("HtmlGeneration_ValueMustBeNumber"), p0); 398=> string.Format(Culture, GetResourceString("TextInputFormatter_SupportedEncodingsMustNotBeEmpty"), p0); 404=> string.Format(Culture, GetResourceString("TextOutputFormatter_SupportedEncodingsMustNotBeEmpty"), p0); 422=> string.Format(Culture, GetResourceString("CouldNotCreateIModelBinder"), p0); 446=> string.Format(Culture, GetResourceString("MiddewareFilter_ConfigureMethodOverload"), p0); 458=> string.Format(Culture, GetResourceString("MiddlewareFilterBuilder_NullApplicationBuilder"), p0); 488=> string.Format(Culture, GetResourceString("VaryByQueryKeys_Requires_ResponseCachingMiddleware"), p0); 494=> string.Format(Culture, GetResourceString("CandidateResolver_DifferentCasedReference"), p0); 512=> string.Format(Culture, GetResourceString("ComplexTypeModelBinder_NoParameterlessConstructor_ForType"), p0); 524=> string.Format(Culture, GetResourceString("NoRoutesMatchedForPage"), p0); 564=> string.Format(Culture, GetResourceString("ApplicationAssembliesProvider_DuplicateRelatedAssembly"), p0); 588=> string.Format(Culture, GetResourceString("ApiConventionMustBeStatic"), p0); 668=> string.Format(Culture, GetResourceString("FailedToReadRequestForm"), p0); 674=> string.Format(Culture, GetResourceString("ValidationVisitor_ContainerCannotBeSpecified"), p0); 680=> string.Format(Culture, GetResourceString("StateShouldBeNullForRouteValueTransformers"), p0); 698=> string.Format(Culture, GetResourceString("ComplexObjectModelBinder_NoSuitableConstructor_ForType"), p0); 716=> string.Format(Culture, GetResourceString("GetContentTypes_WildcardsNotSupported"), p0); 722=> string.Format(Culture, GetResourceString("OutputCacheAttribute_Requires_OutputCachingMiddleware"), p0);
Microsoft.AspNetCore.Mvc.Cors (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Mvc.Cors\Release\net11.0\Microsoft.AspNetCore.Mvc.Cors.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("CorsAuthorizationFilter_MissingCorsPolicy"), p0);
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Mvc.Formatters.Xml\Release\net11.0\Microsoft.AspNetCore.Mvc.Formatters.Xml.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("EnumerableWrapperProvider_InvalidSourceEnumerableOfT"), p0);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Mvc.NewtonsoftJson\Release\net11.0\Microsoft.AspNetCore.Mvc.NewtonsoftJson.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("ContractResolverCannotBeNull"), p0);
Microsoft.AspNetCore.Mvc.Razor (6)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Mvc.Razor\Release\net11.0\Microsoft.AspNetCore.Mvc.Razor.Resources.cs (6)
38=> string.Format(Culture, GetResourceString("FlushPointCannotBeInvoked"), p0); 76=> string.Format(Culture, GetResourceString("SectionAlreadyDefined"), p0); 126=> string.Format(Culture, GetResourceString("Compilation_MissingReferences"), p0); 132=> string.Format(Culture, GetResourceString("ViewLocationFormatsIsRequired"), p0); 156=> string.Format(Culture, GetResourceString("UnsupportedDebugInformationFormat"), p0); 168=> string.Format(Culture, GetResourceString("AsyncDisposableViewsNotSupported"), p0);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation\Release\net11.0\Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Resources.cs (2)
36=> string.Format(Culture, GetResourceString("Compilation_MissingReferences"), p0); 50=> string.Format(Culture, GetResourceString("UnsupportedDebugInformationFormat"), p0);
Microsoft.AspNetCore.Mvc.RazorPages (3)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Mvc.RazorPages\Release\net11.0\Microsoft.AspNetCore.Mvc.RazorPages.Resources.cs (3)
54=> string.Format(Culture, GetResourceString("UnsupportedHandlerMethodType"), p0); 86=> string.Format(Culture, GetResourceString("InvalidValidPageName"), p0); 98=> string.Format(Culture, GetResourceString("StateShouldBeNullForRouteValueTransformers"), p0);
Microsoft.AspNetCore.Mvc.Testing (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Mvc.Testing\Release\net11.0\Microsoft.AspNetCore.Mvc.Testing.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("InvalidAssemblyEntryPoint"), p0);
Microsoft.AspNetCore.Mvc.ViewFeatures (19)
DefaultDisplayTemplates.cs (1)
153string.Format(CultureInfo.CurrentCulture, "{0:0.00}", htmlHelper.ViewData.Model);
DefaultEditorTemplates.cs (2)
136string.Format(CultureInfo.CurrentCulture, "{0:0.00}", htmlHelper.ViewData.Model); 432string.Format(CultureInfo.InvariantCulture, format, value);
RemoteAttributeBase.cs (1)
119return string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name);
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Mvc.ViewFeatures\Release\net11.0\Microsoft.AspNetCore.Mvc.ViewFeatures.Resources.cs (13)
60=> string.Format(Culture, GetResourceString("ViewComponent_IViewComponentFactory_ReturnedNull"), p0); 118=> string.Format(Culture, GetResourceString("HtmlHelper_NullModelMetadata"), p0); 132=> string.Format(Culture, GetResourceString("HtmlHelper_SelectExpressionNotEnumerable"), p0); 158=> string.Format(Culture, GetResourceString("TemplateHelpers_NoTemplate"), p0); 164=> string.Format(Culture, GetResourceString("ViewData_ModelCannotBeNull"), p0); 190=> string.Format(Culture, GetResourceString("UnobtrusiveJavascript_ValidationParameterCannotBeEmpty"), p0); 202=> string.Format(Culture, GetResourceString("UnobtrusiveJavascript_ValidationTypeCannotBeEmpty"), p0); 214=> string.Format(Culture, GetResourceString("UnobtrusiveJavascript_ValidationTypeMustBeUnique"), p0); 220=> string.Format(Culture, GetResourceString("TemplatedViewLocationExpander_NoReplacementToken"), p0); 248=> string.Format(Culture, GetResourceString("RemoteAttribute_RemoteValidationFailed"), p0); 266=> string.Format(Culture, GetResourceString("Dictionary_DuplicateKey"), p0); 324=> string.Format(Culture, GetResourceString("TempData_CannotDeserializeType"), p0); 330=> string.Format(Culture, GetResourceString("AsyncDisposableViewsNotSupported"), p0);
TemplateBuilder.cs (1)
94formattedModelValue = string.Format(CultureInfo.CurrentCulture, formatString, _model);
ViewDataDictionary.cs (1)
411return string.Format(formatProvider, format, value);
Microsoft.AspNetCore.OpenApi (3)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (3)
350var message = string.Format(CultureInfo.InvariantCulture, "Implicit body inferred for parameter \"{0}\" but no body was provided. Did you mean to use a Service instead?", parameterName); 367var message = string.Format(CultureInfo.InvariantCulture, "Expected a supported JSON media type but got \"{0}\".", contentType); 384var message = string.Format(CultureInfo.InvariantCulture, "Expected a supported form media type but got \"{0}\".", contentType);
Microsoft.AspNetCore.Razor.Utilities.Shared (5)
src\roslyn\artifacts\obj\Microsoft.AspNetCore.Razor.Utilities.Shared\Release\net11.0\Microsoft.AspNetCore.Razor.SharedUtilities.Resources.CollectionUtilitiesSR.cs (1)
92=> string.Format(Culture, GetResourceString("Expected_0_to_be_non_null"), p0);
src\roslyn\artifacts\obj\Microsoft.AspNetCore.Razor.Utilities.Shared\Release\net11.0\Microsoft.AspNetCore.Razor.Utilities.Shared.Resources.SR.cs (4)
88=> string.Format(Culture, GetResourceString("Cannot_advance_past_end_of_the_buffer_which_has_a_size_of_0"), p0); 94=> string.Format(Culture, GetResourceString("Cannot_allocate_a_buffer_of_size_0"), p0); 104=> string.Format(Culture, GetResourceString("Expected_0_to_be_non_null"), p0); 126=> string.Format(Culture, GetResourceString("Unsupported_type_0"), p0);
Microsoft.AspNetCore.Rewrite (6)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Rewrite\Release\net11.0\Microsoft.AspNetCore.Rewrite.Resources.cs (6)
36=> string.Format(Culture, GetResourceString("Error_CouldNotParseInteger"), p0); 54=> string.Format(Culture, GetResourceString("Error_InputParserMissingCloseBrace"), p0); 60=> string.Format(Culture, GetResourceString("Error_InputParserNoBackreference"), p0); 74=> string.Format(Culture, GetResourceString("Error_InvalidChangeCookieFlag"), p0); 86=> string.Format(Culture, GetResourceString("Error_ModRewriteGeneralParseError"), p0); 98=> string.Format(Culture, GetResourceString("Error_UnsupportedServerVariable"), p0);
Microsoft.AspNetCore.Routing (11)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Routing\Release\net11.0\Microsoft.AspNetCore.Routing.Resources.cs (11)
34=> string.Format(Culture, GetResourceString("ArgumentMustBeGreaterThanOrEqualTo"), p0); 52=> string.Format(Culture, GetResourceString("NamedRoutes_AmbiguousRoutesFound"), p0); 58=> string.Format(Culture, GetResourceString("DefaultHandler_MustBeSet"), p0); 84=> string.Format(Culture, GetResourceString("TemplateRoute_CannotHaveDefaultValueSpecifiedInlineAndExplicitly"), p0); 100=> string.Format(Culture, GetResourceString("TemplateRoute_InvalidLiteral"), p0); 106=> string.Format(Culture, GetResourceString("TemplateRoute_InvalidParameterName"), p0); 116=> string.Format(Culture, GetResourceString("TemplateRoute_RepeatedParameter"), p0); 148=> string.Format(Culture, GetResourceString("AttributeRoute_DifferentLinkGenerationEntries_SameName"), p0); 204=> string.Format(Culture, GetResourceString("DuplicateEndpointNameEntry"), p0); 212=> string.Format(Culture, GetResourceString("FormatterMapping_MediaTypeInvalid"), p0); 224=> string.Format(Culture, GetResourceString("MapGroup_CustomEndpointUnsupported"), p0);
Microsoft.AspNetCore.Server.HttpSys (9)
_generated\10\Windows.Win32.HRESULT.g.cs (1)
50 public override string ToString() => string.Format(global::System.Globalization.CultureInfo.InvariantCulture, "0x{0:X8}", this.Value);
HttpSysOptions.cs (1)
221string message = String.Format(
RequestProcessing\Response.cs (2)
78throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(CultureInfo.CurrentCulture, Resources.Exception_InvalidStatusCode, value)); 255string.Format(CultureInfo.InvariantCulture, "0x{0:X4}", (ushort)ch)));
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Server.HttpSys\Release\net11.0\Microsoft.AspNetCore.Server.HttpSys.Resources.cs (4)
48=> string.Format(Culture, GetResourceString("Exception_InvalidStatusCode"), p0); 56=> string.Format(Culture, GetResourceString("Exception_PrefixAlreadyRegistered"), p0); 72=> string.Format(Culture, GetResourceString("Exception_InvalidReasonPhraseCharacter"), p0); 78=> string.Format(Culture, GetResourceString("Warning_ExceptionInOnResponseCompletedAction"), p0);
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 (5)
_generated\8\Windows.Win32.HRESULT.g.cs (1)
50 public override string ToString() => string.Format(global::System.Globalization.CultureInfo.InvariantCulture, "0x{0:X8}", this.Value);
Core\IISHttpContext.cs (1)
900string.Format(System.Globalization.CultureInfo.InvariantCulture, "0x{0:X4}", (ushort)ch)));
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Server.IIS\Release\net11.0\Microsoft.AspNetCore.Server.IIS.CoreStrings.cs (2)
52=> string.Format(Culture, GetResourceString("ParameterReadOnlyAfterResponseStarted", new [] { "name" }), name); 72=> string.Format(Culture, GetResourceString("InvalidReasonPhraseCharacter"), p0);
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)
37string.Format(
Microsoft.AspNetCore.Server.Kestrel.Core (65)
Internal\Certificates\CertificateConfigLoader.cs (1)
254throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, CoreStrings.UnrecognizedCertificateKeyOid, certificate.PublicKey.Oid.Value));
Internal\ConnectionLogScope.cs (1)
52_cachedToString = string.Format(
Internal\Http\HttpHeaders.cs (1)
686throw new InvalidOperationException(CoreStrings.FormatInvalidAsciiOrControlChar(string.Format(CultureInfo.InvariantCulture, "0x{0:X4}", (ushort)ch)));
Internal\Http\HttpProtocol.cs (1)
287string.Format(System.Globalization.CultureInfo.InvariantCulture, "0x{0:X4}", (ushort)ch)));
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Server.Kestrel.Core\Release\net11.0\Microsoft.AspNetCore.Server.Kestrel.Core.CoreStrings.cs (54)
42=> string.Format(Culture, GetResourceString("BadRequest_FinalTransferCodingNotChunked", new [] { "detail" }), detail); 52=> string.Format(Culture, GetResourceString("BadRequest_InvalidContentLength_Detail", new [] { "detail" }), detail); 60=> string.Format(Culture, GetResourceString("BadRequest_InvalidHostHeader_Detail", new [] { "detail" }), detail); 70=> string.Format(Culture, GetResourceString("BadRequest_InvalidRequestHeader_Detail", new [] { "detail" }), detail); 78=> string.Format(Culture, GetResourceString("BadRequest_InvalidRequestLine_Detail", new [] { "detail" }), detail); 84=> string.Format(Culture, GetResourceString("BadRequest_InvalidRequestTarget_Detail", new [] { "detail" }), detail); 90=> string.Format(Culture, GetResourceString("BadRequest_LengthRequiredHttp10", new [] { "detail" }), detail); 116=> string.Format(Culture, GetResourceString("BadRequest_UnrecognizedHTTPVersion_Detail", new [] { "detail" }), detail); 122=> string.Format(Culture, GetResourceString("FallbackToIPv4Any", new [] { "port" }), port); 146=> string.Format(Culture, GetResourceString("UnknownTransportMode", new [] { "mode" }), mode); 152=> string.Format(Culture, GetResourceString("InvalidAsciiOrControlChar", new [] { "character" }), character); 158=> string.Format(Culture, GetResourceString("InvalidContentLength_InvalidNumber", new [] { "value" }), value); 174=> string.Format(Culture, GetResourceString("AddressBindingFailed", new [] { "address" }), address); 180=> string.Format(Culture, GetResourceString("BindingToDefaultAddress", new [] { "address" }), address); 186=> string.Format(Culture, GetResourceString("ConfigurePathBaseFromMethodCall", new [] { "methodName" }), methodName); 194=> string.Format(Culture, GetResourceString("EndpointAlreadyInUse", new [] { "endpoint" }), endpoint); 206=> string.Format(Culture, GetResourceString("OverridingWithKestrelOptions", new [] { "addresses" }), addresses); 218=> string.Format(Culture, GetResourceString("UnsupportedAddressScheme", new [] { "address" }), address); 234=> string.Format(Culture, GetResourceString("ParameterReadOnlyAfterResponseStarted", new [] { "name" }), name); 254=> string.Format(Culture, GetResourceString("WritingToResponseBodyNotSupported", new [] { "statusCode" }), statusCode); 270=> string.Format(Culture, GetResourceString("BadRequest_RequestBodyTooLarge", new [] { "maxRequestBodySize" }), maxRequestBodySize); 282=> string.Format(Culture, GetResourceString("MinimumGracePeriodRequired", new [] { "heartbeatInterval" }), heartbeatInterval); 316=> string.Format(Culture, GetResourceString("Http2ErrorStreamIdZero", new [] { "frameType" }), frameType); 322=> string.Format(Culture, GetResourceString("Http2ErrorStreamIdNotZero", new [] { "frameType" }), frameType); 328=> string.Format(Culture, GetResourceString("Http2ErrorPaddingTooLong", new [] { "frameType" }), frameType); 362=> string.Format(Culture, GetResourceString("Http2ErrorSettingsParameterOutOfRange", new [] { "parameter" }), parameter); 398=> string.Format(Culture, GetResourceString("InvalidServerCertificateEku", new [] { "thumbprint" }), thumbprint); 412=> string.Format(Culture, GetResourceString("EndpointMissingUrl", new [] { "endpointName" }), endpointName); 421=> string.Format(Culture, GetResourceString("MultipleCertificateSources", new [] { "endpointName" }), endpointName); 445=> string.Format(Culture, GetResourceString("Http2ErrorMinTlsVersion", new [] { "protocol" }), protocol); 471=> string.Format(Culture, GetResourceString("Http2ErrorMethodInvalid", new [] { "method" }), method); 477=> string.Format(Culture, GetResourceString("Http2StreamErrorPathInvalid", new [] { "path" }), path); 505=> string.Format(Culture, GetResourceString("Http3ErrorMethodInvalid", new [] { "method" }), method); 511=> string.Format(Culture, GetResourceString("Http3StreamErrorPathInvalid", new [] { "path" }), path); 543=> string.Format(Culture, GetResourceString("Http2StreamResetByApplication", new [] { "errorCode" }), errorCode); 555=> string.Format(Culture, GetResourceString("QPackErrorIndexOutOfRange", new [] { "index" }), index); 581=> string.Format(Culture, GetResourceString("ArgumentTimeSpanGreaterOrEqual", new [] { "value" }), value); 589=> string.Format(Culture, GetResourceString("UnrecognizedCertificateKeyOid"), p0); 601=> string.Format(Culture, GetResourceString("SniNotConfiguredToAllowNoServerName", new [] { "endpointName" }), endpointName); 607=> string.Format(Culture, GetResourceString("SniNameCannotBeEmpty", new [] { "endpointName" }), endpointName); 623=> string.Format(Culture, GetResourceString("Http3StreamResetByApplication", new [] { "errorCode" }), errorCode); 633=> string.Format(Culture, GetResourceString("Http3StreamErrorFrameReceivedAfterTrailers", new [] { "frameType" }), frameType); 639=> string.Format(Culture, GetResourceString("Http3ErrorUnsupportedFrameOnRequestStream", new [] { "frameType" }), frameType); 645=> string.Format(Culture, GetResourceString("Http3ErrorUnsupportedFrameOnServer", new [] { "frameType" }), frameType); 651=> string.Format(Culture, GetResourceString("Http3ErrorUnsupportedFrameOnControlStream", new [] { "frameType" }), frameType); 659=> string.Format(Culture, GetResourceString("Http3ErrorControlStreamFrameReceivedBeforeSettings", new [] { "frameType" }), frameType); 665=> string.Format(Culture, GetResourceString("Http3ErrorControlStreamReservedSetting", new [] { "identifier" }), identifier); 671=> string.Format(Culture, GetResourceString("Http3ControlStreamErrorMultipleInboundStreams", new [] { "streamType" }), streamType); 683=> string.Format(Culture, GetResourceString("Http3ControlStreamErrorUnsupportedType", new [] { "type" }), type); 721=> string.Format(Culture, GetResourceString("UnidentifiedStream", new [] { "stream" }), stream); 729=> string.Format(Culture, GetResourceString("FailedToNegotiateCommonWebTransportVersion", new [] { "currentSuppportedVersion" }), currentSuppportedVersion); 743=> string.Format(Culture, GetResourceString("ConnectResponseCanNotHaveBody", new [] { "StatusCode" }), StatusCode); 749=> string.Format(Culture, GetResourceString("FailedToBindToIPv6Any", new [] { "port" }), port); 763=> string.Format(Culture, GetResourceString("Http3ControlStreamFrameTooLarge", new [] { "frameType" }), frameType);
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Server.Kestrel.Core\Release\net11.0\System.Net.Http.SR.cs (5)
34=> string.Format(Culture, GetResourceString("net_http_headers_exceeded_length"), p0); 50=> string.Format(Culture, GetResourceString("net_http_hpack_invalid_index"), p0); 66=> string.Format(Culture, GetResourceString("net_http_invalid_header_name"), p0); 76=> string.Format(Culture, GetResourceString("net_quic_connectionaborted"), p0); 86=> string.Format(Culture, GetResourceString("net_quic_streamaborted"), p0);
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
162string.Format(CultureInfo.InvariantCulture, MacOSVerifyCertificateCommandLineArgumentsFormat, tmpFile)) 210string.Format(
Microsoft.AspNetCore.Session (1)
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Session\Release\net11.0\Microsoft.AspNetCore.Session.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("Exception_KeyLengthIsExceeded"), p0);
Microsoft.AspNetCore.WebUtilities (7)
FormPipeReader.cs (2)
329string.Format( 338string.Format(
src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.WebUtilities\Release\net11.0\Microsoft.AspNetCore.WebUtilities.Resources.cs (2)
40=> string.Format(Culture, GetResourceString("FormPipeReader_KeyTooLarge"), p0); 46=> string.Format(Culture, GetResourceString("FormPipeReader_ValueTooLarge"), p0);
src\aspnetcore\src\Shared\WebEncoders\Properties\EncoderResources.cs (1)
35return string.Format(CultureInfo.CurrentCulture, WebEncoders_MalformedInput, p0);
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (2)
229string.Format( 491string.Format(
Microsoft.Build (13)
BackEnd\Components\Scheduler\Scheduler.cs (3)
2643String.Format(CultureInfo.InvariantCulture, "{0:0.000}", request.GetTimeSpentInState(SchedulableRequestState.Executing).TotalSeconds), 2644String.Format(CultureInfo.InvariantCulture, "{0:0.000}", request.GetTimeSpentInState(SchedulableRequestState.Executing).TotalSeconds + request.GetTimeSpentInState(SchedulableRequestState.Blocked).TotalSeconds + request.GetTimeSpentInState(SchedulableRequestState.Ready).TotalSeconds), 2773? string.Format(
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1009string filename = Path.Combine(FileUtilities.GetCacheDirectory(), String.Format(CultureInfo.InvariantCulture, "Configuration{0}.cache", _configId));
Construction\ProjectRootElement.cs (1)
725=> _dirtyReason == null ? null : String.Format(CultureInfo.InvariantCulture, _dirtyReason, _dirtyParameter);
Construction\Solution\SolutionProjectGenerator.cs (1)
1320string targetOutputItemName = string.Format(CultureInfo.InvariantCulture, "{0}BuildOutput", safeItemNameFromProjectName);
Definition\Project.cs (1)
3202Trace.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Remove global property {0}", name));
Evaluation\ProjectXmlChangedEventArgs.cs (1)
55get { return _unformattedReason != null ? String.Format(CultureInfo.CurrentCulture, _unformattedReason, _formattingParameter) : null; }
Logging\BaseConsoleLogger.cs (1)
810time = String.Format(CultureInfo.CurrentCulture,
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
1765string time = String.Format(CultureInfo.CurrentCulture,
Logging\ParallelLogger\ParallelLoggerHelpers.cs (2)
635fullProjectKey = String.Format(CultureInfo.InvariantCulture, "{0}", _projectKey); 655fullProjectKey = String.Format(CultureInfo.InvariantCulture, "{0}", _projectKey);
src\msbuild\src\Shared\ResourceUtilities.cs (1)
385return string.Format(CultureInfo.CurrentCulture, unformatted, arg1);
Microsoft.Build.Framework (9)
src\msbuild\artifacts\obj\Microsoft.Build.Framework\Release\net11.0\Microsoft.Build.Framework.Resources.SR.cs (9)
102=> string.Format(Culture, GetResourceString("FailedCreatingTempFile"), p0); 108=> string.Format(Culture, GetResourceString("InvalidGetPathOfFileAboveParameter"), p0); 120=> string.Format(Culture, GetResourceString("DebugPathTooLong"), p0); 134=> string.Format(Culture, GetResourceString("CannotConvertStringToBool"), p0); 152=> string.Format(Culture, GetResourceString("UnsupportedFrameworkVersionForWindowsSdk"), p0); 158=> string.Format(Culture, GetResourceString("UnsupportedVisualStudioVersion"), p0); 164=> string.Format(Culture, GetResourceString("UnsupportedFrameworkVersion"), p0); 176=> string.Format(Culture, GetResourceString("_0_does_not_contain_matching_element"), p0); 182=> string.Format(Culture, GetResourceString("_0_contains_no_elements"), p0);
Microsoft.Build.NuGetSdkResolver (2)
NuGetSdkResolver.cs (2)
177logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_FailedToReadSettings, e.Message)); 234logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.CouldNotFindInstalledPackage, sdk));
Microsoft.Build.Tasks.Core (13)
AssemblyDependency\AssemblyInformation.cs (1)
534throw new BadImageFormatException(string.Format(CultureInfo.CurrentCulture,
BootstrapperUtil\BootstrapperBuilder.cs (5)
563XmlNode stringNode = stringsNode?.SelectSingleNode(string.Format(CultureInfo.InvariantCulture, "String[@Name='{0}']", cultureAttribute.Value)); 671foreach (XmlNode relatedProductNode in eitherProductNode.SelectNodes(String.Format(CultureInfo.InvariantCulture, "{0}:DependsOnProduct", BOOTSTRAPPER_PREFIX), _xmlNamespaceManager)) 1350XmlNode stringNode = stringsNode.SelectSingleNode(string.Format(CultureInfo.InvariantCulture, stringNodeLookupTemplate, attribute.Value), _xmlNamespaceManager); 1535string configFileKey = string.Format(CultureInfo.InvariantCulture, "EULA{0}", eulas.Count); 1650XmlNode stringNode = stringsNode.SelectSingleNode(string.Format(CultureInfo.InvariantCulture, stringNodeLookupTemplate, attribute.Value), _xmlNamespaceManager);
ManifestUtil\Manifest.cs (3)
405throw new InvalidOperationException(String.Format(System.Globalization.CultureInfo.InvariantCulture, "XPath not found: {0}", XPaths.codebasePaths[0])); 414throw new InvalidOperationException(String.Format(System.Globalization.CultureInfo.InvariantCulture, "XPath not found: {0}", XPaths.dependencyPublicKeyTokenAttribute)); 433throw new InvalidOperationException(String.Format(System.Globalization.CultureInfo.InvariantCulture, "XPath not found: {0}", XPaths.fileSizeAttribute));
ManifestUtil\ManifestReader.cs (1)
230Util.WriteLog(String.Format(CultureInfo.InvariantCulture, "ManifestReader.ReadManifest t={0}", Environment.TickCount - t1));
ManifestUtil\SecurityUtil.cs (2)
678throw new FileNotFoundException(String.Format(CultureInfo.InvariantCulture, resources.GetString("SecurityUtil.SignTargetNotFound"), path), path); 901throw new ApplicationException(String.Format(CultureInfo.CurrentCulture,
src\msbuild\src\Shared\ResourceUtilities.cs (1)
385return string.Format(CultureInfo.CurrentCulture, unformatted, arg1);
Microsoft.Build.Utilities.Core (1)
src\msbuild\src\Shared\ResourceUtilities.cs (1)
385return string.Format(CultureInfo.CurrentCulture, unformatted, arg1);
Microsoft.CodeAnalysis (2)
CommandLine\ReportAnalyzerUtil.cs (2)
45string.Format(culture, "{0,8:<0.000}", 0.001) : 46string.Format(culture, "{0,8:##0.000}", executionTime);
Microsoft.CodeAnalysis.Analyzers (2)
MetaAnalyzers\Fixers\ApplyDiagnosticAnalyzerAttributeFix.cs (2)
39var title = string.Format(CultureInfo.CurrentCulture, CodeAnalysisDiagnosticsResources.ApplyDiagnosticAnalyzerAttribute_1, LanguageNames.CSharp); 43title = string.Format(CultureInfo.CurrentCulture, CodeAnalysisDiagnosticsResources.ApplyDiagnosticAnalyzerAttribute_1, LanguageNames.VisualBasic);
Microsoft.CodeAnalysis.CSharp (8)
Compilation\MemberSemanticModel.NodeMapBuilder.cs (3)
97string.Format( 105string.Format( 118string.Format(
Compiler\DocumentationCommentCompiler.cs (3)
323WriteLine(string.Format(CultureInfo.CurrentUICulture, message, firstExtension.GetEscapedDocumentationCommentId())); 432WriteLine(string.Format(CultureInfo.CurrentUICulture, message, symbol.GetEscapedDocumentationCommentId())); 551WriteLine(string.Format(CultureInfo.CurrentUICulture, message, symbol.GetEscapedDocumentationCommentId()));
Errors\XmlSyntaxDiagnosticInfo.cs (2)
47return String.Format(formatProvider, messagePrefix, message); 50return String.Format(formatProvider, String.Format(formatProvider, messagePrefix, message), GetArgumentsToUse(formatProvider));
Microsoft.CodeAnalysis.Features (1)
CodeLens\CodeLensReferencesService.cs (1)
116throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Unsupported language '{0}'", semanticModel.Language), nameof(semanticModel));
Microsoft.CodeAnalysis.Razor.Compiler (68)
Language\Legacy\CodeBlockEditHandler.cs (1)
121return string.Format(CultureInfo.InvariantCulture, "{0};CodeBlock", base.ToString());
Language\Legacy\LiteralAttributeChunkGenerator.cs (1)
25return string.Format(CultureInfo.CurrentCulture, "LitAttr:{0:F}", Prefix);
src\roslyn\artifacts\obj\Microsoft.CodeAnalysis.Razor.Compiler\Release\net11.0\Microsoft.AspNetCore.Mvc.Razor.Extensions.RazorExtensionsResources.cs (5)
52=> string.Format(Culture, GetResourceString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"), p0); 58=> string.Format(Culture, GetResourceString("MvcRazorCodeParser_InjectDirectivePropertyNameRequired"), p0); 64=> string.Format(Culture, GetResourceString("MvcRazorCodeParser_KeywordMustBeFollowedByTypeName"), p0); 70=> string.Format(Culture, GetResourceString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"), p0); 88=> string.Format(Culture, GetResourceString("PageDirectiveMustExistAtTheTopOfFile"), p0);
src\roslyn\artifacts\obj\Microsoft.CodeAnalysis.Razor.Compiler\Release\net11.0\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Resources.cs (4)
52=> string.Format(Culture, GetResourceString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"), p0); 58=> string.Format(Culture, GetResourceString("MvcRazorCodeParser_InjectDirectivePropertyNameRequired"), p0); 64=> string.Format(Culture, GetResourceString("MvcRazorCodeParser_KeywordMustBeFollowedByTypeName"), p0); 70=> string.Format(Culture, GetResourceString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"), p0);
src\roslyn\artifacts\obj\Microsoft.CodeAnalysis.Razor.Compiler\Release\net11.0\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Resources.cs (4)
52=> string.Format(Culture, GetResourceString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"), p0); 58=> string.Format(Culture, GetResourceString("MvcRazorCodeParser_InjectDirectivePropertyNameRequired"), p0); 64=> string.Format(Culture, GetResourceString("MvcRazorCodeParser_KeywordMustBeFollowedByTypeName"), p0); 70=> string.Format(Culture, GetResourceString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"), p0);
src\roslyn\artifacts\obj\Microsoft.CodeAnalysis.Razor.Compiler\Release\net11.0\Microsoft.AspNetCore.Razor.Language.ComponentResources.cs (6)
56=> string.Format(Culture, GetResourceString("BindTagHelper_Element_Event_Documentation"), p0); 62=> string.Format(Culture, GetResourceString("BindTagHelper_Element_Format_Documentation"), p0); 74=> string.Format(Culture, GetResourceString("BindTagHelper_Fallback_Event_Documentation"), p0); 82=> string.Format(Culture, GetResourceString("ChildContentParameterName_Documentation"), p0); 102=> string.Format(Culture, GetResourceString("EventHandlerTagHelper_PreventDefault_Documentation"), p0); 108=> string.Format(Culture, GetResourceString("EventHandlerTagHelper_StopPropagation_Documentation"), p0);
src\roslyn\artifacts\obj\Microsoft.CodeAnalysis.Razor.Compiler\Release\net11.0\Microsoft.AspNetCore.Razor.Language.Resources.cs (40)
44=> string.Format(Culture, GetResourceString("BlockDirectiveCannotBeImported"), p0); 54=> string.Format(Culture, GetResourceString("CodeWriter_InvalidNewLine"), p0); 84=> string.Format(Culture, GetResourceString("DirectiveDescriptor_InvalidDirectiveKeyword"), p0); 92=> string.Format(Culture, GetResourceString("DirectiveExpectsIdentifier"), p0); 98=> string.Format(Culture, GetResourceString("DirectiveExpectsNamespace"), p0); 104=> string.Format(Culture, GetResourceString("DirectiveExpectsQuotedStringLiteral"), p0); 110=> string.Format(Culture, GetResourceString("DirectiveExpectsTypeName"), p0); 116=> string.Format(Culture, GetResourceString("DirectiveMustAppearAtStartOfLine"), p0); 122=> string.Format(Culture, GetResourceString("DirectiveTokensMustBeSeparatedByWhitespace"), p0); 134=> string.Format(Culture, GetResourceString("DuplicateDirective"), p0); 170=> string.Format(Culture, GetResourceString("IntermediateNodeBuilder_PopInvalid"), p0); 176=> string.Format(Culture, GetResourceString("IntermediateNodeReference_CollectionIsReadOnly"), p0); 202=> string.Format(Culture, GetResourceString("InvalidTagHelperLookupText"), p0); 232=> string.Format(Culture, GetResourceString("ParseError_DirectiveMustHaveValue"), p0); 250=> string.Format(Culture, GetResourceString("ParseError_HelperDirectiveNotAvailable"), p0); 256=> string.Format(Culture, GetResourceString("ParseError_IncompleteQuotesAroundDirective"), p0); 266=> string.Format(Culture, GetResourceString("ParseError_MissingEndTag"), p0); 282=> string.Format(Culture, GetResourceString("ParseError_ReservedWord"), p0); 288=> string.Format(Culture, GetResourceString("ParseError_Sections_Cannot_Be_Nested"), p0); 298=> string.Format(Culture, GetResourceString("ParseError_Unexpected_Character_At_Start_Of_CodeBlock"), p0); 310=> string.Format(Culture, GetResourceString("ParseError_UnexpectedEndTag"), p0); 316=> string.Format(Culture, GetResourceString("ParseError_UnfinishedTag"), p0); 408=> string.Format(Culture, GetResourceString("TagHelper_InvalidRestrictedChildNullOrWhitespace"), p0); 478=> string.Format(Culture, GetResourceString("TagHelpers_AttributesMustHaveAName"), p0); 484=> string.Format(Culture, GetResourceString("TagHelpers_CannotHaveCSharpInTagDeclaration"), p0); 495=> string.Format(Culture, GetResourceString("TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes"), p0); 501=> string.Format(Culture, GetResourceString("TagHelpersParseTreeRewriter_FoundMalformedTagHelper"), p0); 507=> string.Format(Culture, GetResourceString("TagHelpersParseTreeRewriter_VoidElement"), p0); 513=> string.Format(Culture, GetResourceString("TagHelpersParseTreeRewriter_MissingCloseAngle"), p0); 519=> string.Format(Culture, GetResourceString("UnexpectedDirectiveKind"), p0); 555=> string.Format(Culture, GetResourceString("RazorLanguageVersion_InvalidVersion"), p0); 567=> string.Format(Culture, GetResourceString("VirtualFileSystem_InvalidRelativePath"), p0); 587=> string.Format(Culture, GetResourceString("TagHelper_InvalidBoundAttributeParameterNullOrWhitespace"), p0); 593=> string.Format(Culture, GetResourceString("DirectiveExpectsCSharpAttribute"), p0); 617=> string.Format(Culture, GetResourceString("DirectiveExpectsBooleanLiteral"), p0); 643=> string.Format(Culture, GetResourceString("An_item_with_the_same_key_has_already_been_added_Key_0"), p0); 649=> string.Format(Culture, GetResourceString("The_given_key_0_was_not_present"), p0); 655=> string.Format(Culture, GetResourceString("Unknown_documentation_id_0"), p0); 661=> string.Format(Culture, GetResourceString("A_documentation_object_can_only_be_a_0_instance_string_or_null"), p0); 679=> string.Format(Culture, GetResourceString("DirectiveExpectsIdentifierOrExpression"), p0);
src\roslyn\artifacts\obj\Microsoft.CodeAnalysis.Razor.Compiler\Release\net11.0\Microsoft.CodeAnalysis.Razor.CodeAnalysisResources.cs (1)
34=> string.Format(Culture, GetResourceString("TagHelper_CouldNotFindMatchingEndBrace"), p0);
src\roslyn\artifacts\obj\Microsoft.CodeAnalysis.Razor.Compiler\Release\net11.0\Microsoft.NET.Sdk.Razor.SourceGenerators.Diagnostics.RazorSourceGeneratorResources.cs (6)
44=> string.Format(Culture, GetResourceString("InvalidRazorWarningLevelMessage"), p0); 60=> string.Format(Culture, GetResourceString("TargetPathNotProvidedMessage"), p0); 68=> string.Format(Culture, GetResourceString("GeneratedOutputFullPathNotProvidedMessage"), p0); 80=> string.Format(Culture, GetResourceString("SkippingGeneratedFileWriteMessage"), p0); 88=> string.Format(Culture, GetResourceString("SourceTextNotFoundMessage"), p0); 96=> string.Format(Culture, GetResourceString("UnexpectedProjectItemReadCallMessage"), p0);
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.CSharp (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Data.Analysis (2)
TextFieldParser.cs (2)
307string pattern = string.Format(CultureInfo.InvariantCulture, "\\G[{0}]*\"", WhitespacePattern); 314private string EndQuotePattern => string.Format(CultureInfo.InvariantCulture, "\"[{0}]*", WhitespacePattern);
Microsoft.Data.Analysis.Tests (2)
src\Microsoft.Data.Analysis\TextFieldParser.cs (2)
307string pattern = string.Format(CultureInfo.InvariantCulture, "\\G[{0}]*\"", WhitespacePattern); 314private string EndQuotePattern => string.Format(CultureInfo.InvariantCulture, "\"[{0}]*", WhitespacePattern);
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
ChooseBestP2PTargetFrameworkTask.cs (1)
56string errorMessage = string.Format(CultureInfo.CurrentCulture, "The project target framework '{0}' is not a supported target framework.", $"TargetFrameworkMoniker: {CurrentProjectTargetFramework}, TargetPlatformMoniker:{CurrentProjectTargetPlatform}");
Microsoft.Extensions.AI.Evaluation.Reporting (5)
Storage\DiskBasedResponseCache.CacheEntry.cs (2)
40string.Format(CultureInfo.CurrentCulture, DeserializationFailedMessage, cacheEntryFilePath)); 57string.Format(CultureInfo.CurrentCulture, DeserializationFailedMessage, cacheEntryFilePath));
Storage\DiskBasedResponseCache.cs (2)
307? string.Format(CultureInfo.CurrentCulture, EntryFileNotFound, entryFilePath) 308: string.Format(CultureInfo.CurrentCulture, ContentsFileNotFound, contentsFilePath));
Storage\DiskBasedResultStore.cs (1)
76string.Format(CultureInfo.CurrentCulture, DeserializationFailedMessage, resultFile.FullName))
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (7)
Storage\AzureStorageResponseCache.CacheEntry.cs (2)
45string.Format(CultureInfo.CurrentCulture, DeserializationFailedMessage, fileClient.Name)); 63string.Format(CultureInfo.CurrentCulture, DeserializationFailedMessage, fileClient.Name));
Storage\AzureStorageResponseCache.cs (4)
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.ApiDescription.Client (1)
src\aspnetcore\artifacts\obj\Microsoft.Extensions.ApiDescription.Client\Release\netstandard2.0\Microsoft.Extensions.ApiDescription.Client.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("DuplicateFileOutputPaths"), p0);
Microsoft.Extensions.Caching.Memory (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Caching.SqlServer (5)
SqlQueries.cs (5)
64GetCacheItem = string.Format(CultureInfo.InvariantCulture, UpdateCacheItemFormat + GetCacheItemFormat, tableNameWithSchema); 65GetCacheItemWithoutValue = string.Format(CultureInfo.InvariantCulture, UpdateCacheItemFormat, tableNameWithSchema); 66DeleteCacheItem = string.Format(CultureInfo.InvariantCulture, DeleteCacheItemFormat, tableNameWithSchema); 67DeleteExpiredCacheItems = string.Format(CultureInfo.InvariantCulture, DeleteExpiredCacheItemsFormat, tableNameWithSchema); 68SetCacheItem = string.Format(CultureInfo.InvariantCulture, SetCacheItemFormat, tableNameWithSchema);
Microsoft.Extensions.Compliance.Testing (3)
FakeRedactor.cs (2)
77var str = string.Format(CultureInfo.InvariantCulture, _format, sourceString); 92return string.Format(CultureInfo.InvariantCulture, _format, input.ToString()).Length;
FakeRedactorOptionsCustomValidator.cs (1)
20_ = string.Format(CultureInfo.InvariantCulture, options.RedactionFormat, "Test");
Microsoft.Extensions.Configuration (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Configuration.Abstractions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Configuration.Binder (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Configuration.CommandLine (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Configuration.FileExtensions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Configuration.Ini (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Configuration.Json (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Configuration.UserSecrets (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Configuration.Xml (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.DependencyInjection (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.DependencyModel (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Diagnostics (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.FileProviders.Abstractions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.FileProviders.Physical (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.FileSystemGlobbing (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Hosting (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Hosting.Abstractions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Http (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Http.Resilience.Tests (1)
Hedging\HedgingTests.cs (1)
371uri = new Uri(string.Format(CultureInfo.InvariantCulture, pattern, attemptCount));
Microsoft.Extensions.Identity.Core (12)
src\aspnetcore\artifacts\obj\Microsoft.Extensions.Identity.Core\Release\net11.0\Microsoft.Extensions.Identity.Core.Resources.cs (12)
38=> string.Format(Culture, GetResourceString("DuplicateEmail"), p0); 44=> string.Format(Culture, GetResourceString("DuplicateRoleName"), p0); 50=> string.Format(Culture, GetResourceString("DuplicateUserName"), p0); 56=> string.Format(Culture, GetResourceString("InvalidEmail"), p0); 72=> string.Format(Culture, GetResourceString("InvalidRoleName"), p0); 80=> string.Format(Culture, GetResourceString("InvalidUserName"), p0); 108=> string.Format(Culture, GetResourceString("PasswordTooShort"), p0); 114=> string.Format(Culture, GetResourceString("RoleNotFound"), p0); 156=> string.Format(Culture, GetResourceString("UserAlreadyInRole"), p0); 166=> string.Format(Culture, GetResourceString("UserNameNotFound"), p0); 172=> string.Format(Culture, GetResourceString("UserNotInRole"), p0); 180=> string.Format(Culture, GetResourceString("PasswordRequiresUniqueChars"), p0);
Microsoft.Extensions.Localization (2)
src\aspnetcore\artifacts\obj\Microsoft.Extensions.Localization\Release\net11.0\Microsoft.Extensions.Localization.Resources.cs (2)
34=> string.Format(Culture, GetResourceString("Localization_MissingManifest"), p0); 42=> string.Format(Culture, GetResourceString("Localization_TypeMustHaveTypeName"), p0);
Microsoft.Extensions.Logging (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Logging.Abstractions (5)
FormattedLogValues.cs (1)
14/// LogValues to enable formatting options supported by <see cref="string.Format(IFormatProvider, string, object?)"/>.
FormattedLogValuesObsolete.cs (1)
12/// LogValues to enable formatting options supported by <see cref="string.Format(IFormatProvider, string, object?)"/>.
LogValuesFormatter.cs (1)
14/// Formatter to convert the named format items like {NamedformatItem} to <see cref="string.Format(IFormatProvider, string, object)"/> format.
LogValuesFormatterObsolete.cs (1)
11/// Formatter to convert the named format items like {NamedformatItem} to <see cref="string.Format(IFormatProvider, string, object)"/> format.
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Logging.Configuration (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Logging.Console (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Logging.Generators (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Options (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Options.SourceGeneration (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Primitives (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Extensions.Validation.Localization (1)
DefaultValidationLocalizer.cs (1)
68?? string.Format(CultureInfo.CurrentCulture, localizedTemplate, context.DisplayName);
Microsoft.Gen.ComplianceReports (1)
ComplianceReportsGenerator.cs (1)
99helpLinkUri: string.Format(CultureInfo.InvariantCulture, DiagnosticIds.UrlFormat, DiagnosticIds.AuditReports.AUDREPGEN001));
Microsoft.Gen.MetadataExtractor (3)
MetadataReportsGenerator.cs (1)
88helpLinkUri: string.Format(CultureInfo.InvariantCulture, DiagnosticIds.UrlFormat, DiagnosticIds.AuditReports.AUDREPGEN000));
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (1)
99helpLinkUri: string.Format(CultureInfo.InvariantCulture, DiagnosticIds.UrlFormat, DiagnosticIds.AuditReports.AUDREPGEN001));
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (1)
63helpLinkUri: string.Format(CultureInfo.InvariantCulture, DiagnosticIds.UrlFormat, DiagnosticIds.AuditReports.AUDREPGEN000));
Microsoft.Gen.Metrics (3)
Emitter.cs (3)
172typeDefinition = string.Format(CultureInfo.InvariantCulture, CounterOfTTypeDefinitionTemplate, metricValueType); 178typeDefinition = string.Format(CultureInfo.InvariantCulture, HistogramOfTTypeDefinitionTemplate, metricValueType); 184typeDefinition = string.Format(CultureInfo.InvariantCulture, GaugeOfTTypeDefinitionTemplate, metricValueType);
Microsoft.Gen.MetricsReports (1)
MetricsReportsGenerator.cs (1)
63helpLinkUri: string.Format(CultureInfo.InvariantCulture, DiagnosticIds.UrlFormat, DiagnosticIds.AuditReports.AUDREPGEN000));
Microsoft.Interop.ComInterfaceGenerator (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Interop.LibraryImportGenerator (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Interop.SourceGeneration (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.ML.Core (4)
Utilities\Contracts.cs (4)
806DbgFailCore(string.Format(CultureInfo.InvariantCulture, "Non-null assertion failure: {0}", paramName)); 810DbgFailCore(string.Format(CultureInfo.InvariantCulture, "Non-null assertion failure: {0}", paramName), ctx); 826DbgFailCore(string.Format(CultureInfo.InvariantCulture, "Non-empty assertion failure: {0}", msg)); 830DbgFailCore(string.Format(CultureInfo.InvariantCulture, "Non-empty assertion failure: {0}", msg), ctx);
Microsoft.ML.CpuMath (4)
src\Microsoft.ML.Core\Utilities\Contracts.cs (4)
806DbgFailCore(string.Format(CultureInfo.InvariantCulture, "Non-null assertion failure: {0}", paramName)); 810DbgFailCore(string.Format(CultureInfo.InvariantCulture, "Non-null assertion failure: {0}", paramName), ctx); 826DbgFailCore(string.Format(CultureInfo.InvariantCulture, "Non-empty assertion failure: {0}", msg)); 830DbgFailCore(string.Format(CultureInfo.InvariantCulture, "Non-empty assertion failure: {0}", msg), ctx);
Microsoft.ML.Data (3)
Evaluators\EvaluatorUtils.cs (3)
1548sb.Append(string.Format(CultureInfo.InvariantCulture, "{0,7:N6}", avg)); 1579sb.Append(string.Format(CultureInfo.InvariantCulture, "{0,7:N6}", metrics[i].Sum)); 1581weightedSb?.Append(string.Format(CultureInfo.InvariantCulture, "{0,7:N6}", weightedMetrics[i].Sum));
Microsoft.ML.LightGbm (1)
WrappedLightGbmInterface.cs (1)
256res.Add(keyVal.Key + "=" + string.Format(CultureInfo.InvariantCulture, "{0}", keyVal.Value));
Microsoft.ML.Maml (1)
ChainCommand.cs (1)
57using (var chCmd = _host.Start(string.Format(CultureInfo.InvariantCulture, "Command[{0}]", i)))
Microsoft.NET.Build.Tasks (3)
ShowMissingWorkloads.cs (1)
59var errorMessage = string.Format(CultureInfo.CurrentCulture,
src\sdk\src\Tasks\Common\ConflictResolution\PlatformManifestReader.cs (1)
21string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.CouldNotLoadPlatformManifest,
src\sdk\src\Tasks\Common\ConflictResolution\ResolvePackageFileConflicts.cs (1)
140log.LogError(string.Format(CultureInfo.CurrentCulture, Strings.CouldNotLoadPlatformManifest, pm.ItemSpec));
Microsoft.Net.Http.Headers (5)
ContentDispositionHeaderValue.cs (2)
345throw new FormatException(string.Format(CultureInfo.InvariantCulture, 496result = string.Format(CultureInfo.InvariantCulture, "\"{0}\"", result);
HeaderUtilities.cs (1)
80throw new FormatException(string.Format(CultureInfo.InvariantCulture, "Invalid token '{0}'.", value));
MediaTypeHeaderValue.cs (1)
665throw new FormatException(string.Format(CultureInfo.InvariantCulture, "Invalid media type '{0}'.", mediaType));
NameValueHeaderValue.cs (1)
486throw new FormatException(string.Format(CultureInfo.InvariantCulture, "The header value is invalid: '{0}'", value));
Microsoft.NET.Sdk.Publish.Tasks (16)
MsDeploy\CommonUtility.cs (6)
703strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedArchiveDir, string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 779strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedArchiveDir, string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 876log.LogWarning(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_UnknownSkipDirective, name)); 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())); 1847throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYASSEMBLYLOAD_FAIL, task.ToString()));
Tasks\MsDeploy\MSDeploy.cs (2)
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);
Tasks\MsDeploy\VsMsdeploy.cs (1)
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 (6)
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)); 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.Private.Windows.Core (1)
_generated\119\Windows.Win32.HRESULT.g.cs (1)
50 public override string ToString() => string.Format(global::System.Globalization.CultureInfo.InvariantCulture, "0x{0:X8}", this.Value);
Microsoft.TestPlatform.AdapterUtilities (9)
Helpers\ReflectionHelpers.cs (1)
92string message = string.Format(CultureInfo.CurrentCulture, Resources.Resources.ErrorNoClosingQuote, escapedStringSegment);
ManagedNameUtilities\ManagedNameHelper.Reflection.cs (3)
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);
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 (3)
DataCollectionRequestSender.cs (1)
195logMessage = string.Format(CultureInfo.CurrentCulture, CommonResources.DataCollectionMessageFormat, dataCollectionMessageEventArgs.Message);
TestRequestSender.cs (2)
682LogErrorMessage(string.Format(CultureInfo.CurrentCulture, CommonResources.AbortedTestRun, reason)); 709LogErrorMessage(string.Format(CultureInfo.CurrentCulture, CommonResources.AbortedTestDiscoveryWithReason, reason));
Microsoft.TestPlatform.CoreUtilities (9)
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 (1)
109return string.Format(CultureInfo.CurrentCulture, messageTypeFormat, message);
Utilities\JobQueue.cs (2)
216string.Format(CultureInfo.CurrentCulture, Resources.QueuePausedDisposeError, _displayName)); 284string.Format(CultureInfo.CurrentCulture, Resources.QueueAlreadyDisposed, _displayName));
ValidateArg.cs (4)
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);
Microsoft.TestPlatform.CrossPlatEngine (20)
Client\ProxyDiscoveryManager.cs (1)
363LogMessage(TestMessageLevel.Warning, string.Format(CultureInfo.CurrentCulture, Resources.Resources.NonExistingExtensions, string.Join(",", nonExistingExtensions)));
Client\ProxyExecutionManager.cs (1)
501LogMessage(TestMessageLevel.Warning, string.Format(CultureInfo.CurrentCulture, Resources.Resources.NonExistingExtensions, string.Join(",", nonExistingExtensions)));
Client\ProxyOperationManager.cs (2)
252throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.FailedToLaunchTestHost, ex.ToString())); 547errorMsg += string.Format(
Client\TestLoggerManager.cs (2)
184string.Format(CultureInfo.CurrentCulture, CommonResources.LoggerNotFound, value)); 410string.Format(
Discovery\DiscovererEnumerator.cs (3)
280var mesage = string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.DiscovererInstantiationException, e.Message); 322string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.TestRunFailed_NoDiscovererFound_NoTestsAreAvailableInTheSources, sourcesString)); 366string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.TestRunFailed_NoDiscovererFound_NoTestsAreAvailableInTheSources, sourcesString));
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 (3)
417EqtTrace.Warning(string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.AttachDebuggerToDefaultTestHostFailure, pid)); 513? string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.AccessDenied, e.Message) 682string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.ExecutionThreadApartmentStateNotSupportedForFramework, _runConfiguration.TargetFramework!.ToString()));
Execution\RunTestsWithSources.cs (2)
89string.Format( 175string errorMessage = string.Format(
TestSession\ProxyTestSessionManager.cs (2)
300string.Format( 311string.Format(
Microsoft.TestPlatform.Extensions.BlameDataCollector (6)
BlameCollector.cs (5)
381_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.Name)); 407_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.UnexpectedValueForInactivityTimespanValue, attribute.Value)); 444_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.Name)); 653_logger.LogWarning(args.Context, string.Format(CultureInfo.CurrentCulture, Resources.Resources.ProcDumpCouldNotStart, e.Message)); 658_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);
Microsoft.TestPlatform.Filter.Source (13)
Condition.cs (4)
227throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, 228string.Format(CultureInfo.CurrentCulture, InvalidCondition, conditionString))); 291_ => 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 (1)
Hosting\DefaultTestHostManager.cs (1)
488string message = string.Format(CultureInfo.CurrentCulture, Resources.MultipleFileVersions, extensionsString);
Microsoft.TestPlatform.Utilities (3)
InferRunSettingsHelper.cs (3)
546string.Format( 557string.Format( 571string.Format(
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (4)
VsTestConsoleProcessManager.cs (4)
91throw new Exception(string.Format(CultureInfo.CurrentCulture, Resources.InvalidFilePath, vstestConsolePath)); 125throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, InternalResources.CannotFindConsoleRunner, consoleRunnerPath), consoleRunnerPath); 268string.Format(CultureInfo.InvariantCulture, ParentProcessidArgument, parameters.ParentProcessId), 269string.Format(CultureInfo.InvariantCulture, PortArgument, parameters.PortNumber)
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (2)
1347Dim pattern As String = String.Format(CultureInfo.InvariantCulture, BEGINS_WITH_QUOTE, WhitespacePattern) 1362Return String.Format(CultureInfo.InvariantCulture, ENDING_QUOTE, WhitespacePattern)
Microsoft\VisualBasic\Strings.vb (2)
1282Return System.String.Format(cp, Style, CStr(ConvertibleExpression.ToBoolean(Nothing))) 1331Return System.String.Format(cp, Style, Expression)
Microsoft.VisualStudio.TestPlatform.Client (1)
Execution\TestRunRequest.cs (1)
173string message = string.Format(CultureInfo.CurrentCulture, ClientResources.TestSessionTimeoutMessage, _testSessionTimeout);
Microsoft.VisualStudio.TestPlatform.Common (25)
DataCollection\DataCollectionAttachmentManager.cs (2)
128string accessDeniedMessage = string.Format(CultureInfo.CurrentCulture, Resources.Resources.AccessDenied, accessException.Message); 204string.Format(
DataCollection\DataCollectionManager.cs (3)
496LogWarning(string.Format(CultureInfo.CurrentCulture, Resources.Resources.UnableToFetchUriString, dataCollectorSettings.FriendlyName)); 507LogWarning(string.Format(CultureInfo.CurrentCulture, Resources.Resources.DataCollectorNotFound, dataCollectorSettings.FriendlyName)); 580LogWarning(string.Format(CultureInfo.CurrentCulture, Resources.Resources.IgnoredDuplicateConfiguration, settings.FriendlyName));
ExtensionFramework\TestExtensionManager.cs (1)
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 (1)
64string message = string.Format(CultureInfo.CurrentCulture, Resources.Resources.FailedToFindInstalledUnitTestExtensions, ex);
RunSettings.cs (4)
116string.Format( 161string.Format( 184string.Format(CultureInfo.CurrentCulture, CommonResources.DuplicateSettingsProvided, reader.Name)); 217var message = string.Format(
SettingsProvider\SettingsProviderExtensionManager.cs (1)
74string.Format(
src\vstest\src\Microsoft.TestPlatform.Filter.Source\Condition.cs (4)
227throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, 228string.Format(CultureInfo.CurrentCulture, InvalidCondition, conditionString))); 291_ => 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 (1)
HtmlLogger.cs (1)
355var htmlFilePathMessage = string.Format(CultureInfo.CurrentCulture, HtmlResource.HtmlFilePath, HtmlFilePath);
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (4)
TrxLogger.cs (3)
425string resultsFileMessage = string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.TrxLoggerResultsFile, trxFileName); 454string message = string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.MessageForSkippedTests, testCaseName); 468var overwriteWarningMsg = string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.TrxLoggerResultsFileOverwriteWarning, filePath);
Utility\TrxFileHelper.cs (1)
90throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.Common_NothingLeftAfterReplaciingBadCharsInName, fileName));
Microsoft.VisualStudio.TestPlatform.ObjectModel (21)
Client\TestRunCriteria.cs (1)
625sb.AppendLine(string.Format(CultureInfo.CurrentCulture, " Settingsxml={0}", TestRunSettings));
DataCollector\DataCollectorSettings.cs (1)
164throw new SettingsException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.InvalidDataCollectorUriInSettings, reader.Value));
Navigation\FullSymbolReader.cs (1)
142throw new COMException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.FailedToCreateDiaSession, hResult));
Nuget.Frameworks\FrameworkNameHelpers.cs (1)
14return String.Format(CultureInfo.InvariantCulture, "Profile{0}", profileNumber);
Nuget.Frameworks\FrameworkNameProvider.cs (2)
499throw new ArgumentException(string.Format( 1114string.Format(NumberFormatInfo.InvariantInfo, "Profile{0}", pair.Key));
Nuget.Frameworks\NuGetFramework.cs (5)
144parts.Add(string.Format(CultureInfo.InvariantCulture, "Version=v{0}", GetDisplayVersion(framework.Version))); 148parts.Add(string.Format(CultureInfo.InvariantCulture, "Profile={0}", framework.Profile)); 155return string.Format(CultureInfo.InvariantCulture, "{0},Version=v0.0", framework.Framework); 217throw new FrameworkException(string.Format( 252throw new FrameworkException(string.Format(
Nuget.Frameworks\NuGetFrameworkFactory.cs (4)
117throw new ArgumentException(string.Format( 196: throw new ArgumentException(string.Format( 213throw new ArgumentException(string.Format( 236: throw new ArgumentException(string.Format(
RunSettings\RunConfiguration.cs (1)
903EqtTrace.Error(string.Format(CultureInfo.CurrentCulture, Resources.Resources.SolutionDirectoryNotExists, solutionDirectory));
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));
Utilities\XmlRunSettingsUtilities.cs (2)
343string.Format( 400throw new XmlException(string.Format(CultureInfo.CurrentCulture, ObjectModelResources.CouldNotFindXmlNode, "RunSettings"));
Microsoft.Web.XmlTransform (16)
NamedTypeFactory.cs (2)
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));
XmlFormatter.cs (1)
132Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Unexpected element type '{0}' while formatting document", node.NodeType.ToString()));
XmlLocator.cs (1)
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 (2)
178return string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_TransformNameFormatShort, TransformName); 319string message = string.Format(System.Globalization.CultureInfo.CurrentCulture,messageFormat, matchFailureContext.XPath);
XmlTransformation.cs (1)
310throw new XmlNodeException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_ImportUnknownAttribute, attribute.Name), attribute);
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));
Microsoft.Win32.Registry (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Win32.Registry.AccessControl (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
Microsoft.Win32.SystemEvents (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
MSBuild (2)
OutOfProcTaskHostNode.cs (1)
1289? File.CreateText(string.Format(CultureInfo.CurrentCulture, Path.Combine(FileUtilities.TempFileDirectory, @"MSBuild_NodeShutdown_{0}.txt"), EnvironmentUtilities.CurrentProcessId))
src\msbuild\src\Shared\ResourceUtilities.cs (1)
385return string.Format(CultureInfo.CurrentCulture, unformatted, arg1);
NuGet.Build.Tasks (2)
GetReferenceNearestTargetFrameworkTask.cs (2)
78var errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedTargetFramework, $"TargetFrameworkMoniker: {CurrentProjectTargetFramework}, TargetPlatformMoniker:{CurrentProjectTargetPlatform}"); 90errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedFallbackFramework, fallbackFramework);
NuGet.Build.Tasks.Console (3)
MSBuildStaticGraphRestore.cs (2)
299throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_NoVersion, id)); 1033MSBuildLogger.LogDebug(string.Format(CultureInfo.CurrentCulture, Strings.CreatedDependencyGraphSpec, sw.ElapsedMilliseconds));
Program.cs (1)
118Message = string.Format(CultureInfo.CurrentCulture, Strings.Error_StaticGraphUnhandledException, e.ToString()),
NuGet.Build.Tasks.Pack (16)
GetPackOutputItemsTask.cs (1)
49throw new ArgumentException(string.Format(
GetProjectReferencesFromAssetsFileTask.cs (2)
48throw new InvalidOperationException(string.Format( 60throw new InvalidOperationException(string.Format(
PackTaskLogic.cs (13)
58throw new PackagingException(NuGetLogCode.NU5022, string.Format( 116throw new PackagingException(NuGetLogCode.NU5023, string.Format( 145throw new PackagingException(NuGetLogCode.NU5024, string.Format( 200throw new PackagingException(NuGetLogCode.NU5022, string.Format( 216throw new PackagingException(NuGetLogCode.NU5025, string.Format( 267throw new PackagingException(NuGetLogCode.NU5033, string.Format( 331throw new PackagingException(NuGetLogCode.NU5034, string.Format( 353throw new InvalidOperationException(string.Format( 469string.Format( 535throw new PackagingException(NuGetLogCode.NU5026, string.Format(CultureInfo.CurrentCulture, Strings.Error_FileNotFound, finalOutputPath)); 556string.Format(CultureInfo.CurrentCulture, Strings.AmbigiousPackageAssemblies, targetPath))); 563throw new PackagingException(NuGetLogCode.NU5027, string.Format(CultureInfo.CurrentCulture, Strings.InvalidTargetFramework, finalOutputPath)); 893string.Format(CultureInfo.CurrentCulture, Strings.AmbigiousPackageDependencies, string.Join(", ", unsuppressedAliases))));
NuGet.CommandLine.XPlat (65)
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\Package\Update\PackageUpdateCommandRunner.cs (4)
64string.Format(CultureInfo.CurrentCulture, Strings.Error_PathIsMissingOrInvalid, args.Project), 728return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_UpdatingOutdatedPackages, projectPath); 733return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_UpdatingVulnerablePackages, projectPath); 748return string.Format(CultureInfo.CurrentCulture, Strings.PackageUpdate_AllVersionsHaveAdvisories, packageId);
Commands\PackageReferenceCommands\AddPackageReferenceCommand.cs (1)
148throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PrereleaseWhenVersionSpecified,
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (3)
164throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.PrereleaseVersionsAvailable, latestVersion)); 289logger.LogError(string.Format(CultureInfo.CurrentCulture, 299logger.LogError(string.Format(CultureInfo.CurrentCulture,
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (5)
58text: string.Format(CultureInfo.CurrentCulture, 104string.Format(CultureInfo.CurrentCulture, Strings.Error_NotPRProject, projectPath)); 244string.Format(CultureInfo.CurrentCulture, Strings.Error_AssetsFileNotFound, projectPath)); 258string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_ErrorReadingAssetsFile, assetsPath)); 283string.Format(CultureInfo.CurrentCulture, Strings.Warning_AuditSourceWithoutData, source.Name)
Commands\PackageSearch\PackageSearchResultTableRenderer.cs (1)
91downloads = string.Format(nfi, "{0:N}", result.DownloadCount);
Commands\Signing\SignCommand.cs (1)
283string message = string.Format(CultureInfo.CurrentCulture, Strings.SignCommandInvalidCertificateFingerprint, NuGetLogCode.NU3043);
Commands\Signing\TrustedSignersCommand.cs (2)
242var error_TrustedSignerAlreadyExistsMessage = string.Format(CultureInfo.CurrentCulture, Strings.Error_TrustedSignerAlreadyExists, name); 253var error_TrustedRepoAlreadyExists = string.Format(CultureInfo.CurrentCulture, Strings.Error_TrustedRepoAlreadyExists, sourceUrl);
Commands\Why\WhyCommandRunner.cs (13)
49string message = string.Format( 119string message = string.Format( 130string message = string.Format( 143string.Format( 163string message = string.Format( 179string message = string.Format( 182string.Format(CultureInfo.CurrentCulture, Strings.Error_PathIsMissingOrInvalid, path)); 197string message = string.Format( 200string.Format(CultureInfo.CurrentCulture, Strings.Error_PathIsMissingOrInvalid, path)); 210string message = string.Format( 254string message = string.Format( 262string message = string.Format( 282string message = string.Format(
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 (6)
15return string.Format(CultureInfo.CurrentCulture, Strings.Error_NoVersionsAvailable, packageId); 21return string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotFindPackageVersionForCpmPackage, packageId); 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);
Program.cs (1)
87log.LogDebug(string.Format(CultureInfo.CurrentCulture, Strings.Debug_CurrentUICulture, CultureInfo.DefaultThreadCurrentUICulture));
Utility\MSBuildAPIUtility.cs (12)
66throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_MsBuildUnableToOpenProject, projectCSProjPath)); 81throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_MsBuildUnableToOpenProject, projectCSProjPath)); 146string.Format( 215packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_VersionOverrideDisabled, string.Join(";", dependenciesWithVersionOverride.Select(d => d.Name)))); 224packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_VersionsNotAllowed, string.Join(";", dependenciesWithDefinedVersion.Select(d => d.Name)))); 230packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_AutoreferencedReferencesNotAllowed, string.Join(";", autoReferencedAndDefinedInCentralFile.Select(d => d.Name)))); 236packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_CentralPackageVersions_MissingPackageVersion, string.Join(";", packageReferencedDependenciesWithoutCentralVersionDefined.Select(d => d.Name)))); 254packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_AddPkg_CentralPackageVersions_PackageVersion_WrongLocation, packageReferenceArgs.PackageId)); 262packageReferenceArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_AddPkg_CentralPackageVersions_PackageReference_WrongLocation, packageReferenceArgs.PackageId)); 797throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_ErrorReadingAssetsFile, assetsFile.Path)); 830throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_ErrorReadingReferenceFromProject, project.FullPath)); 1084return string.Format(CultureInfo.CurrentCulture, "'$(TargetFramework)' == '{0}'", targetFramework);
Utility\XPlatUtility.cs (2)
102string.Format( 113string.Format(
NuGet.Commands (161)
ClientCertificatesCommand\AddClientCertRunner.cs (2)
26throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 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\RemoveClientCertRunner.cs (2)
25getLogger().LogInformation(string.Format(CultureInfo.CurrentCulture, 33getLogger().LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.ClientCertificateSuccessfullyRemoved, args.PackageSource));
ClientCertificatesCommand\UpdateClientCertRunner.cs (4)
27throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 37throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 47throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 77getLogger().LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.ClientCertificateSuccessfullyUpdated, args.PackageSource));
CommandArgs\PackArgs.cs (1)
94throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidSymbolPackageFormat, symbolPackageFormat));
CommandRunners\LocalsCommandRunner.cs (5)
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, 289localsArgs.LogError(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_FailedToDeletePath, failedDelete));
CommandRunners\PackCommandRunner.cs (9)
176string.Format(CultureInfo.CurrentCulture, Strings.Log_PackageCommandSuccess, outputPath), 209string.Format( 506string.Format(CultureInfo.CurrentCulture, Strings.Warning_DuplicatePropertyKey, property.Key), 528throw new PackagingException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackFailed, path)); 605string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidTargetFramework, reference.AssemblyName)); 672string.Format( 982string.Format(CultureInfo.CurrentCulture, message, arg?.ToString()), 1009string.Format( 1039string.Format(
ListCommand\ListCommandRunner.cs (2)
50listArgs.Logger.LogWarning(string.Format(CultureInfo.CurrentCulture, listArgs.ListCommandListNotSupported, packageSource.Source)); 176string.Format(
MSBuildProjectFactory.cs (1)
251throw new PackagingException(NuGetLogCode.NU5021, string.Format(CultureInfo.CurrentCulture, Strings.Error_EmptySourceFileProjectDirectory, sourcePath));
RestoreCommand\CompatibilityIssue.cs (2)
163var supports = string.Format(CultureInfo.CurrentCulture, 167var noSupports = string.Format(CultureInfo.CurrentCulture,
RestoreCommand\DependencyGraphResolver.cs (1)
274await _logger.LogAsync(RestoreLogMessage.CreateWarning(NuGetLogCode.NU1502, string.Format(CultureInfo.CurrentCulture, Strings.Log_UnknownCompatibilityProfile, profile.Key)));
RestoreCommand\DependencyGraphResolver.DependencyGraphItem.cs (1)
178logger.Log(RestoreLogMessage.CreateWarning(NuGetLogCode.NU1511, string.Format(CultureInfo.CurrentCulture, Strings.Error_RestorePruningProjectReference, dependency.Name), dependency.Name,
RestoreCommand\Diagnostics\UnexpectedDependencyMessages.cs (2)
189message: string.Format(CultureInfo.CurrentCulture, Strings.Warning_ProjectDependencyMissingVersion, 205message: string.Format(CultureInfo.CurrentCulture, Strings.Warning_ProjectDependencyMissingLowerBound,
RestoreCommand\Diagnostics\UnresolvedMessages.cs (5)
102message = string.Format(CultureInfo.CurrentCulture, Strings.Error_UnableToFindProjectInfo, unresolved.Name); 108message = string.Format(CultureInfo.CurrentCulture, Strings.Error_ProjectDoesNotExist, unresolved.Name); 131message += ". " + string.Format(CultureInfo.CurrentCulture, 165.Select(packageSource => string.Format(CultureInfo.CurrentCulture, 184message += " " + string.Format(CultureInfo.CurrentCulture,
RestoreCommand\Logging\WarningPropertiesCollection.cs (1)
173message.Message = string.Format(CultureInfo.CurrentCulture, Strings.WarningAsError, message.Message);
RestoreCommand\OriginalCaseGlobalPackageFolder.cs (1)
124_request.Log.LogInformation(string.Format(
RestoreCommand\ProjectRestoreCommand.cs (5)
67_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, pair.Key.DotNetFrameworkName)); 210string.Format(CultureInfo.CurrentCulture, 296await _logger.LogAsync(LogLevel.Verbose, string.Format(CultureInfo.CurrentCulture, Strings.Log_ResolvingConflicts, name)); 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 (1)
57completeMessage = string.Format(
RestoreCommand\RestoreCommand.cs (18)
482_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoreNoOpFinish, _request.Project.Name)); 512_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoreNoOpDGChanged, _request.Project.Name)); 704_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_SkippingPackagesLockFileGeneration, packagesLockFilePath)); 863string.Format(CultureInfo.CurrentCulture, Strings.Error_PlatformVersionNotPresent, string.Join(", ", badPlatforms)) 1014string.Format(CultureInfo.CurrentCulture, Strings.Error_RestorePruningDirectPackageReference, prunedPackage.Key), 1106var diagnostic = RestoreLogMessage.CreateError(NuGetLogCode.NU1015, string.Format(CultureInfo.InvariantCulture, Strings.Error_PackageReference_NoVersion, string.Join(", ", packagesList))); 1205string.Format( 1218string.Format( 1231string.Format( 1244string.Format( 1259string.Format( 1350errorMessageBuilder.AppendLine(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageValidationFailed, package.ToString())); 1390var message = string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidLockFileInput, packagesLockFilePath); 1793await logger.LogAsync(LogLevel.Verbose, string.Format(CultureInfo.CurrentCulture, Strings.Log_PackagesAndProjectsAreCompatible, graph.TargetGraphName)); 1842_logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, _request.Project.FilePath)); 1943var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_UnknownCompatibilityProfile, profile.Key); 2042_logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, _request.Project.FilePath)); 2107var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_UnknownCompatibilityProfile, profile.Key);
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 (5)
58log.LogVerbose(string.Format( 124log.LogVerbose(string.Format( 204var message = string.Format( 252log.LogVerbose(string.Format( 385throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, GetInvalidInputErrorMessage(input), input));
RestoreCommand\RestoreSummary.cs (1)
146string.Format(CultureInfo.CurrentCulture, Strings.Log_ErrorSummary, restoreSummary.InputPath),
RestoreCommand\Utility\AuditUtility.cs (1)
465string message = string.Format(CultureInfo.CurrentCulture, Strings.Warning_AuditSourceWithoutVulnerabilityData, _vulnerabilityInfoProviders[i].SourceName);
RestoreCommand\Utility\BuildAssetsUtils.cs (4)
73log.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Log_GeneratingMsBuildFile, file.Path)); 513var frameworkConditions = string.Format( 746yield return string.Format(CultureInfo.InvariantCulture, NegativeLanguageCondition, GetLanguage(lang)); 752yield return string.Format(CultureInfo.InvariantCulture, LanguageCondition, GetLanguage(language));
RestoreCommand\Utility\MSBuildRestoreUtility.cs (4)
484var text = string.Format(CultureInfo.CurrentCulture, Strings.CannotBeUsedWithOtherValues, Clear); 500var text = string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedProject, path); 510var text = string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedProject, path); 870throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_NoVersion, id));
RestoreCommand\Utility\NoOpRestoreUtilities.cs (2)
106request.Log.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_AssetsFileNotOnDisk, request.Project.Name)); 140request.Log.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_MissingPackagesOnDisk, request.Project.Name));
RestoreCommand\Utility\PackageSpecFactory.cs (1)
710throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_NoVersion, id));
RestoreCommand\Utility\SpecValidationUtility.cs (13)
62var message = string.Format( 107var message = string.Format(CultureInfo.CurrentCulture, Strings.MissingRequiredProperty, nameof(spec.RestoreMetadata)); 161var message = string.Format(CultureInfo.CurrentCulture, Strings.SpecValidationInvalidFramework, framework.TargetAlias); 244var message = string.Format( 263var message = string.Format( 277var message = string.Format( 291var message = string.Format( 305var message = string.Format( 316var message = string.Format( 327var message = string.Format( 338var message = string.Format( 366var message = string.Format( 377var message = string.Format(
SignCommand\CertificateProvider.cs (4)
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 (9)
95getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, 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, 301getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, 321getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, 380getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, 389getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture,
TrustedSignersCommand\TrustedSignerActionsProvider.cs (12)
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));
TrustedSignersCommand\TrustedSignersCommandRunner.cs (16)
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)); 229trustedSignerBuilder.AppendLine(defaultIndentation + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogServiceIndex, repoItem.ServiceIndex)); 233trustedSignerBuilder.AppendLine(defaultIndentation + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogOwners, string.Join("; ", repoItem.Owners))); 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)
277throw new ArgumentException(string.Format(
Utility\PackageSourceProviderExtensions.cs (1)
52throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.InvalidSource, source));
VerifyCommand\VerifyCommandRunner.cs (4)
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, 154logger.LogInformation(Environment.NewLine + string.Format(CultureInfo.CurrentCulture, Strings.VerifyCommand_Success, packageIdentity.ToString()));
NuGet.Common (11)
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 (4)
42return string.Format(format, Strings.TimeUnits_Millisecond, result); 47return string.Format(format, Strings.TimeUnits_Second, result); 52return string.Format(format, Strings.TimeUnits_Minute, result); 55return string.Format(format, Strings.TimeUnits_Hour, result);
PathUtil\PathUtility.cs (1)
362var message = string.Format(CultureInfo.CurrentCulture, Strings.Argument_Must_Be_GreaterThanOrEqualTo, 6);
NuGet.Configuration (18)
ClientCertificate\ClientCertificateProvider.cs (1)
71var message = string.Format(CultureInfo.CurrentCulture, Resources.ClientCertificateDuplicateConfiguration,
PackageSource\PackageSourceCredential.cs (2)
65string.Format(CultureInfo.CurrentCulture, Resources.UnsupportedDecryptPassword, Source), e); 169string.Format(CultureInfo.CurrentCulture, Resources.UnsupportedEncryptPassword, source), e);
Settings\Items\CertificateItem.cs (2)
23throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Fingerprint))); 85string.Format(CultureInfo.CurrentCulture, Resources.UnsupportedHashAlgorithm, Attributes[ConfigurationConstants.HashAlgorithm]),
Settings\Items\ClientCertItem.cs (1)
76throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(PackageSource)));
Settings\Items\CredentialsItem.cs (1)
33throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Username)));
Settings\Items\FileClientCertItem.cs (1)
114throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.FileCertItemPasswordCannotBeDecrypted, PackageSource), e);
Settings\Items\PackageSourceMappingSourceItem.cs (3)
40throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Key))); 62throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Error_ItemNeedsAtLeastOnePackagePattern, name)); 153throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_ItemNeedsAtLeastOnePackagePattern, packageSourceMappingSourceItem.Key));
Settings\Items\TrustedSignerItem.cs (1)
24throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Name)));
Settings\NuGetConfiguration.cs (1)
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\Settings.cs (3)
157throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.SectionDoesNotExist, sectionName)); 162throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.ItemDoesNotExist, sectionName)); 586var message = string.Format(CultureInfo.CurrentCulture,
NuGet.Credentials (2)
PluginException.cs (1)
58return new PluginException(string.Format(CultureInfo.CurrentCulture, Resources.PluginException_NotStarted_Format, path));
SecurePluginCredentialProviderBuilder.cs (1)
50_logger.LogDebug(string.Format(CultureInfo.CurrentCulture, Resources.SecurePluginNotice_UsingPluginAsProvider, pluginDiscoveryResult.PluginFile.Path));
NuGet.DependencyResolver.Core (1)
ResolverUtility.cs (1)
588context.Logger.LogDebug(string.Format(CultureInfo.CurrentCulture, Strings.Log_NoMatchingSourceFoundForPackage, packageName));
NuGet.Frameworks (12)
FrameworkNameHelpers.cs (1)
14return String.Format(CultureInfo.InvariantCulture, "Profile{0}", profileNumber);
FrameworkNameProvider.cs (2)
511throw new ArgumentException(string.Format( 1126string.Format(NumberFormatInfo.InvariantInfo, "Profile{0}", pair.Key));
NuGetFramework.cs (5)
144parts.Add(string.Format(CultureInfo.InvariantCulture, "Version=v{0}", GetDisplayVersion(framework.Version))); 148parts.Add(string.Format(CultureInfo.InvariantCulture, "Profile={0}", framework.Profile)); 155return string.Format(CultureInfo.InvariantCulture, "{0},Version=v0.0", framework.Framework); 217throw new FrameworkException(string.Format( 252throw new FrameworkException(string.Format(
NuGetFrameworkFactory.cs (4)
114throw new ArgumentException(string.Format( 193: throw new ArgumentException(string.Format( 210throw new ArgumentException(string.Format( 233: throw new ArgumentException(string.Format(
NuGet.LibraryModel (1)
PrunePackageReference.cs (1)
39throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PrunePackageReferenceMissingVersion, name));
NuGet.PackageManagement (32)
Audit\AuditChecker.cs (1)
189string message = string.Format(CultureInfo.CurrentCulture, Strings.Warning_AuditSourceWithoutData, vulnerabilitySources[i].PackageSource.Name);
InstallationCompatibility.cs (1)
157throw new PackagingException(string.Format(
NuGetPackageManager.cs (17)
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)), 1878throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.UnableToGatherDependencyInfo, packageIdentity)); 1996throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.PackageNotFound, packageIdentity)); 2015throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.PackageCouldNotBeInstalled, packageIdentity), ex); 2163message: string.Format(CultureInfo.CurrentCulture, Strings.PropertyCannotBeNull, nameof(project)), 2196message: string.Format(CultureInfo.CurrentCulture, Strings.PropertyCannotBeNull, nameof(project)), 2714var errorMessage = string.Format(CultureInfo.CurrentCulture, 3488var message = string.Format( 3625nuGetProjectContext.Log(MessageLevel.Info, string.Format(CultureInfo.CurrentCulture, Strings.RestoringPackage, packageIdentity));
PackageDownloader.cs (1)
296string.Format(
Projects\ProjectJsonNuGetProject.cs (2)
66string.Format(CultureInfo.CurrentCulture, Strings.InvalidProjectName, MSBuildProjectPath)); 181string.Format(CultureInfo.CurrentCulture, Strings.ProjectNotLoaded_RestoreFailed, ProjectName));
Resolution\GatherExceptionHelpers.cs (1)
89throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.NewerVersionAlreadyReferenced, target));
Resolution\ResolverGather.cs (2)
187_context.Log.LogDebug(string.Format(CultureInfo.CurrentCulture, "Total number of results gathered : {0}", _results.Count)); 237string.Format(CultureInfo.CurrentCulture, Strings.GatherTotalTime, DatetimeUtility.ToReadableTimeFormat(stopWatch.Elapsed)));
StringFormatter.cs (1)
24return string.Format(
Utility\JsonConfigUtility.cs (1)
63string.Format(CultureInfo.CurrentCulture, Strings.DependencyDoesNotHaveValidVersion, dependencyToken.ToString()));
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 (164)
ContentModel\Infrastructure\Parser.cs (1)
180throw new Exception(string.Format(CultureInfo.CurrentCulture, "Unable to find property definition for {{{0}}}", _token));
Core\NuspecCoreReaderBase.cs (1)
192throw new PackagingException(string.Format(
Core\NuspecUtility.cs (1)
90throw new PackagingException(string.Format(
FallbackPackagePathResolver.cs (2)
55var message = string.Format( 109string.Format(
Licenses\LicenseExpressionToken.cs (1)
26Value = value ?? throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.ArgumentCannotBeNullOrEmpty, nameof(value)));
Licenses\LicenseExpressionTokenizer.cs (1)
26throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.ArgumentCannotBeNullOrEmpty, nameof(value)));
Licenses\NuGetLicense.cs (6)
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))); 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 (5)
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)); 92throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_InvalidToken, token.Value)); 159throw new NuGetLicenseExpressionParsingException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_InvalidCharacters, expression));
NuspecReader.cs (2)
457string.Format( 494errors.Add(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_NonStandardIdentifier, string.Join(", ", invalidLicenseIdentifiers)));
PackageArchiveReader.cs (1)
144throw new InvalidDataException(string.Format(CultureInfo.CurrentCulture, Strings.InvalidPackageNupkg, filePath), ex);
PackageCreation\Authoring\LicenseMetadata.cs (1)
114return new Uri(string.Format(CultureInfo.InvariantCulture, LicenseServiceLinkTemplate, license)).AbsoluteUri;
PackageCreation\Authoring\Manifest.cs (2)
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 (8)
303yield return String.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_RequiredMetadataMissing, "Id"); 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 (6)
30string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_RequiredElementMissing, "metadata")); 63string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_RequiredElementMissing, requiredElement)); 189throw new InvalidDataException(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicense_InvalidLicenseType, type)); 206throw new PackagingException(NuGetLogCode.NU5034, string.Format( 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 (17)
92string.Format(CultureInfo.CurrentCulture, Strings.ErrorManifestFileNotFound, path ?? "null")); 181string.Format(CultureInfo.CurrentCulture, Strings.ErrorInvalidTimestamp, value)); 507throw new PackagingException(NuGetLogCode.NU1012, string.Format(CultureInfo.CurrentCulture, Strings.MissingTargetPlatformVersionsFromDependencyGroups, string.Join(", ", frameworksMissingPlatformVersion.OrderBy(str => str)))); 530throw new PackagingException(NuGetLogCode.NU1012, string.Format(CultureInfo.CurrentCulture, Strings.MissingTargetPlatformVersionsFromReferenceGroups, string.Join(", ", frameworksMissingPlatformVersion.OrderBy(str => str)))); 544throw new PackagingException(NuGetLogCode.NU5018, string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_InvalidReference, reference)); 559throw new PackagingException(NuGetLogCode.NU1012, string.Format(CultureInfo.CurrentCulture, Strings.MissingTargetPlatformVersionsFromFrameworkAssemblyReferences, string.Join(", ", frameworksMissingPlatformVersion.OrderBy(str => str)))); 569throw new PackagingException(NuGetLogCode.NU1012, string.Format(CultureInfo.CurrentCulture, Strings.MissingTargetPlatformVersionsFromFrameworkAssemblyGroups, string.Join(", ", frameworksMissingPlatformVersion.OrderBy(str => str)))); 619throw new PackagingException(NuGetLogCode.NU5050, string.Format(CultureInfo.CurrentCulture, NuGetResources.FoundDuplicateFile, string.Join(", ", duplicates))); 633throw new PackagingException(NuGetLogCode.NU5031, string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_LicenseFileExtensionIsInvalid, licenseMetadata.License)); 641errorMessage = string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_LicenseFileIsNotInNupkg, licenseMetadata.License); 672string.Format(CultureInfo.CurrentCulture, NuGetResources.IconInvalidExtension, iconPath)); 683errorMessage = string.Format(CultureInfo.CurrentCulture, NuGetResources.IconNoFileElement, iconPath); 775throw new PackagingException(NuGetLogCode.NU1012, string.Format(CultureInfo.CurrentCulture, Strings.MissingTargetPlatformVersionsFromIncludedFiles, string.Join(", ", itemsWithFrameworkMissingPlatformVersion.OrderBy(str => str)))); 797string.Format(CultureInfo.CurrentCulture, NuGetResources.ReadmeFileExtensionIsInvalid, readmePath)); 812string.Format(CultureInfo.CurrentCulture, NuGetResources.ReadmeNoFileElement, readmePath)); 829string.Format(CultureInfo.CurrentCulture, NuGetResources.ReadmeErrorEmpty, readmePath)); 1037string.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)
40throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, NuGetResources.InvalidPackageId, packageId));
PackageExtraction\PackagePathHelper.cs (1)
114string.Format(CultureInfo.CurrentCulture, Strings.PropertyCannotBeNull, nameof(packageIdentity.Version)),
PackagePathResolver.cs (1)
33string.Format(CultureInfo.CurrentCulture, Strings.StringCannotBeNullOrEmpty, nameof(rootDirectory)),
PackageReaderBase.cs (2)
498return StringComparer.OrdinalIgnoreCase.Equals(file, string.Format(CultureInfo.InvariantCulture, "{0}.targets", packageId)) 499|| StringComparer.OrdinalIgnoreCase.Equals(file, string.Format(CultureInfo.InvariantCulture, "{0}.props", packageId));
PackagesConfigReader.cs (2)
116throw new PackagesConfigReaderException(string.Format( 237throw new PackagesConfigReaderException(string.Format(
PackagesConfigWriter.cs (2)
195throw new PackagesConfigWriterException(string.Format(CultureInfo.CurrentCulture, 414throw new PackagesConfigWriterException(string.Format(CultureInfo.CurrentCulture,
Rules\AccidentallyCompatibleWithAllFrameworksRule.cs (1)
109: string.Format(CultureInfo.CurrentCulture, "-lib/{0}/_._", possibleFrameworks[0]);
Rules\BestPractice\MissingReadmeRule.cs (1)
31string.Format(CultureInfo.CurrentCulture, MessageFormat, packageIdentity),
Rules\InitScriptNotUnderToolsRule.cs (1)
36string.Format(CultureInfo.CurrentCulture, MessageFormat, file),
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 (5)
56throw new PackagingException(string.Format( 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\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 (1)
151message.AppendLine(string.Format(CultureInfo.CurrentCulture, _addToNuspecNoTfmFormat, item));
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)
34var issue = PackagingLogMessage.CreateWarning(string.Format(
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\SignedPackageArchiveIOUtility.cs (2)
482string.Format(CultureInfo.CurrentCulture, errorPrefix, failureCause)); 504string.Format(CultureInfo.CurrentCulture, errorMessagePrefix, failureCause));
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 (6)
150issues.Add(SignatureLog.Issue(!settings.AllowIllegal, NuGetLogCode.NU3010, string.Format(CultureInfo.CurrentCulture, Strings.Verify_ErrorNoCertificate, FriendlyName))); 170issues.Add(SignatureLog.Issue(!settings.AllowIllegal, NuGetLogCode.NU3012, string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_SignatureVerificationFailed, FriendlyName))); 251issues.Add(SignatureLog.Issue(!settings.AllowUntrusted, NuGetLogCode.NU3018, string.Format(CultureInfo.CurrentCulture, Strings.VerifyChainBuildingIssue_UntrustedRoot, FriendlyName))); 329string.Format(CultureInfo.CurrentCulture, Strings.VerifyError_SignatureNotTimeValid, FriendlyName))); 351string.Format( 361throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Verify_ErrorNoCertificate, FriendlyName));
Signing\Timestamp\Timestamp.cs (3)
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)); 200issues.Add(SignatureLog.Error(NuGetLogCode.NU3028, string.Format(CultureInfo.CurrentCulture, Strings.VerifyTimestampChainBuildingIssue_UntrustedRoot, signature.FriendlyName)));
Signing\TrustStore\X509TrustStore.cs (3)
113string.Format( 127string.Format( 148string.Format(
Signing\Utility\AttributeUtility.cs (4)
126string.Format( 135string.Format( 198string.Format( 339throw new CryptographicException(string.Format(CultureInfo.CurrentCulture, Strings.MultipleAttributesDisallowed, oid));
Signing\Utility\CertificateUtility.cs (12)
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)}")); 54issues.Add(SignatureLog.InformationLog($"{indentation}{string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateIssuer, cert.IssuerName.Name)}")); 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)); 77certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateIssuer, cert.IssuerName.Name)); 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), 439string.Format( 449string.Format( 463string.Format( 473string.Format( 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 (2)
23string.Format( 33string.Format(
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 (3)
93string.Format( 103string.Format( 113string.Format(
NuGet.ProjectModel (9)
DependencyGraphSpec.cs (1)
41return string.Format(CultureInfo.InvariantCulture, DGSpecFileNameExtension, projectName);
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
1293string message = string.Format(
ProjectLockFile\PackagesLockFileUtilities.cs (7)
91invalidReasons.Add(string.Format( 147invalidReasons.Add(string.Format( 283throw new Exception(string.Format( 512string.Format( 530string.Format( 572string.Format( 600string.Format(
NuGet.Protocol (122)
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)
34return string.Format(
HttpSource\HttpSource.cs (1)
111string message = string.Format(CultureInfo.CurrentCulture, Strings.Log_InvalidCacheEntry, request.Uri)
HttpSource\HttpSourceAuthenticationHandler.cs (2)
201message = string.Format( 209message = string.Format(
HttpSource\HttpStreamValidation.cs (4)
58string message = string.Format( 91string message = string.Format( 143string message = string.Format( 182var message = string.Format(
HttpSource\ProxyAuthenticationHandler.cs (1)
205var message = string.Format(
LegacyFeed\LegacyFeedCapabilityResourceV2Feed.cs (1)
35_metadataUri = string.Format(
LegacyFeed\ODataServiceDocumentUtils.cs (1)
45string message = String.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadServiceIndex, url);
LegacyFeed\V2FeedParser.cs (1)
484throw new FatalProtocolException(string.Format(
LegacyFeed\V2FeedQueryBuilder.cs (7)
78filter = string.Format( 102var uri = string.Format( 208return string.Format(CultureInfo.InvariantCulture, TopFormat, top); 218return string.Format(CultureInfo.InvariantCulture, SkipFormat, skip); 239return string.Format(CultureInfo.InvariantCulture, FilterFormat, filter); 261orderBy = string.Format(CultureInfo.InvariantCulture, OrderByFormat, orderBy); 314term = string.Format(CultureInfo.InvariantCulture, TagTermFormat, term);
LocalPackageArchiveDownloader.cs (3)
95string.Format(CultureInfo.CurrentCulture, Strings.StringCannotBeNullOrEmpty, nameof(packageFilePath)), 161string.Format( 232string.Format(CultureInfo.CurrentCulture, Strings.StringCannotBeNullOrEmpty, nameof(hashAlgorithm)),
LocalRepositories\LocalPackageSearchResource.cs (1)
46throw new InvalidOperationException(string.Format(
LocalRepositories\LocalV3FindPackageByIdResource.cs (2)
518logger.LogWarning(string.Format( 537var message = string.Format(
Model\LocalPackageSearchMetadata.cs (3)
173fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_FileNotFound, path); 179fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_UnknownProblemLoadingTheFile, path); 185fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_UnknownProblemLoadingTheFile, path);
Model\PackageSearchMetadata.cs (1)
249errors.Add(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_NonStandardIdentifier, string.Join(", ", invalidLicenseIdentifiers)));
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\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)
559string.Format( 584string.Format( 650string.Format(CultureInfo.CurrentCulture, Strings.Plugin_RequestHandlerDoesNotExist, method)); 663string.Format(CultureInfo.CurrentCulture, Strings.Plugin_RequestContextDoesNotExist, requestId));
Plugins\Messages\CopyFilesInPackageResponse.cs (1)
44string.Format(
Plugins\Messages\CopyNupkgFileResponse.cs (1)
33string.Format(
Plugins\Messages\GetAuthenticationCredentialsResponse.cs (1)
60string.Format(
Plugins\Messages\GetCredentialsRequest.cs (1)
44string.Format(
Plugins\Messages\GetCredentialsResponse.cs (1)
51string.Format(
Plugins\Messages\GetFilesInPackageResponse.cs (1)
44string.Format(
Plugins\Messages\GetOperationClaimsResponse.cs (1)
45string.Format(
Plugins\Messages\GetPackageHashResponse.cs (1)
41string.Format(
Plugins\Messages\GetPackageVersionsResponse.cs (1)
44string.Format(
Plugins\Messages\GetServiceIndexResponse.cs (1)
56string.Format(
Plugins\Messages\HandshakeResponse.cs (1)
49string.Format(
Plugins\Messages\InitializeResponse.cs (1)
33string.Format(
Plugins\Messages\LogRequest.cs (1)
43string.Format(
Plugins\Messages\LogResponse.cs (1)
33string.Format(
Plugins\Messages\Message.cs (2)
76string.Format( 86string.Format(
Plugins\Messages\MonitorNuGetProcessExitResponse.cs (1)
33string.Format(
Plugins\Messages\PrefetchPackageResponse.cs (1)
33string.Format(
Plugins\Messages\SetCredentialsResponse.cs (1)
33string.Format(
Plugins\Messages\SetLogLevelRequest.cs (1)
34string.Format(
Plugins\Messages\SetLogLevelResponse.cs (1)
33string.Format(
Plugins\NsjRawJsonStringConverter.cs (1)
27string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType));
Plugins\ObjectPayloadConverter.cs (1)
24string.Format(
Plugins\OutboundRequestContext`1.cs (1)
138string.Format(
Plugins\PluginDiscoveryResult.cs (3)
37_message = string.Format( 44_message = string.Format( 51_message = string.Format(
Plugins\RawJsonStringConverter.cs (1)
22throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedPayloadTokenType, reader.TokenType));
Plugins\RequestHandlers\GetCredentialsRequestHandler.cs (3)
229message = string.Format( 236message = string.Format( 261var message = string.Format(
Plugins\StjSemanticVersionConverter.cs (1)
23throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType));
Providers\PackageUpdateResourceV3Provider.cs (1)
48throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
Providers\RepositorySignatureResourceProvider.cs (3)
62throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.RepositorySignaturesResourceMustBeHttps, source.PackageSource.Source)); 111var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_RetryingRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri) 118var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri);
Providers\ServiceIndexResourceV3Provider.cs (6)
167var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_RetryingServiceIndex, url) 186var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadServiceIndex, url); 218throw new InvalidDataException(string.Format( 226throw new InvalidDataException(string.Format( 235throw new InvalidDataException(string.Format( 263string errorMessage = string.Format(
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (1)
531logger.LogWarning(string.Format(CultureInfo.CurrentCulture, Strings.Log_FileIsCorrupt, httpSourceResult.CacheFile));
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\RemoteV2FindPackageByIdResource.cs (1)
529throw new FatalProtocolException(string.Format(
Resources\PackageSearchResourceV3.cs (2)
159throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 163throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex);
Resources\PackageUpdateResource.cs (4)
178log.LogWarning(string.Format(CultureInfo.CurrentCulture, 224throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 281throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 290log.LogWarning(string.Format(CultureInfo.CurrentCulture,
Resources\RawSearchResourceV3.cs (2)
103throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 107throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex);
Utility\FindPackagesByIdNupkgDownloader.cs (1)
288var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_CanceledNupkgDownload, url);
Utility\LocalFolderUtility.cs (4)
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, 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 (5)
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, 232var message = string.Format(
Utility\PackageIdValidator.cs (1)
35throw new InvalidPackageIdException(string.Format(CultureInfo.CurrentCulture, Strings.Error_Invalid_package_id, packageId));
NuGet.Resolver (6)
PackageResolver.cs (4)
43throw new NuGetResolverInputException(String.Format(CultureInfo.CurrentCulture, Strings.MissingDependencyInfo, requiredId)); 91string.Format( 198String.Format(CultureInfo.CurrentCulture, Strings.CircularDependencyDetected, 205string.Format(CultureInfo.CurrentCulture, Strings.ResolverTotalTime, DatetimeUtility.ToReadableTimeFormat(stopWatch.Elapsed)));
ResolverPackage.cs (1)
97return String.Format(CultureInfo.InvariantCulture, "Absent {0}", Id);
ResolverUtility.cs (1)
136.Select(source => string.Format(CultureInfo.InvariantCulture, "'{0}'", source.Name)));
NuGet.Versioning (6)
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 (1)
18message: string.Format(CultureInfo.CurrentCulture, Resources.TypeNotSupported, type.FullName),
SemanticVersionFactory.cs (1)
22throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Invalidvalue, value), nameof(value));
VersionRangeFactory.cs (1)
81string.Format(CultureInfo.CurrentCulture,
PresentationBuildTasks (1)
Microsoft\Build\Tasks\Windows\UidManager.cs (1)
1132string.Format(
PresentationCore (22)
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "BooleanKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "ByteKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "CharKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "ColorKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "DecimalKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "DoubleKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Int16KeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Int32KeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Int64KeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "MatrixKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "ObjectKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Point3DKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "PointKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "QuaternionKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "RectKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Rotation3DKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "SingleKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "SizeKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "StringKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Vector3DKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "VectorKeyFrameCollection[{0}]", index));
System\Windows\Media\ColorContext.cs (1)
135Invariant.Assert(false, String.Format(CultureInfo.InvariantCulture, "IWICColorContext::GetExifColorSpace returned {0}.", colorSpace));
PresentationFramework (14)
MS\Internal\Data\DefaultValueConverter.cs (2)
585return String.Format(culture, "{0}", o); 624return String.Format(culture, "{0}", o);
MS\Internal\Documents\DocumentViewerHelper.cs (1)
280messageString = String.Format(System.Globalization.CultureInfo.CurrentCulture, messageString, findToolBar.SearchText);
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
235return string.Format(DateTimeHelper.GetCurrentDateFormat(), SR.CalendarAutomationPeer_BlackoutDayHelpText, dateString);
System\Windows\Controls\ContentPresenter.cs (2)
1109textBlock.Text = String.Format(culture, stringFormat, content); 1128textBlock.Text = String.Format(culture, "{0}", content);
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\DocumentViewer.cs (1)
2150messageString = String.Format(
System\Windows\Controls\InkCanvas.cs (1)
576string.Format(System.Globalization.CultureInfo.InvariantCulture, "Unknown dependency property detected - {0}.", e.Property));
System\Windows\Data\BindingExpression.cs (1)
1630convertedValue = String.Format(culture, stringFormat, value);
System\Windows\Data\MultiBindingExpression.cs (1)
1231value = String.Format(culture, EffectiveStringFormat, preFormattedValue);
System\Windows\Documents\FixedDocument.cs (1)
667ApplicationException ae = new ApplicationException(string.Format(System.Globalization.CultureInfo.CurrentCulture, SR.ExceptionInGetPage, index), e);
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "ThicknessKeyFrameCollection[{0}]", index));
PresentationUI (16)
MS\Internal\Documents\Application\Document.cs (1)
310string.Format(
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (2)
159String.Format( 221string format = String.Format(
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
465zoomString = String.Format(CultureInfo.CurrentCulture,
MS\Internal\Documents\DocumentSignatureManager.cs (1)
604String.Format(
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
213String.Format(CultureInfo.CurrentCulture,
MS\Internal\Documents\RightsManagementResourceHelper.cs (3)
75accountName = String.Format( 81accountName = String.Format( 87accountName = String.Format(
MS\Internal\Documents\RMPublishingDialog.cs (1)
465string.Format(
MS\Internal\Documents\SignatureResourceHelper.cs (2)
208string sigSummary = string.Format(CultureInfo.CurrentCulture, 216certSummary = string.Format(CultureInfo.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 (15)
Packaging\XpsFixedDocumentReaderWriter.cs (1)
866xmlWriter.WriteRaw (String.Format(
PrintConfig\PrintCapabilitesWriter.cs (2)
305optionLocalName = string.Format(CultureInfo.InvariantCulture, "User{0:0000000000}", bins[i]); 413optionLocalName = string.Format(CultureInfo.InvariantCulture, "User{0:0000000000}", mediaTypes[i]);
PrintConfig\PrtCap_Reader.cs (2)
70throw NewPrintCapFormatException(String.Format(CultureInfo.CurrentCulture, 93throw NewPrintCapFormatException(String.Format(CultureInfo.CurrentCulture,
PrintConfig\PrtTicket_Editor.cs (3)
58throw NewPTFormatException(String.Format(CultureInfo.CurrentCulture, 81throw NewPTFormatException(String.Format(CultureInfo.CurrentCulture, 105throw 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") +
PrintSystemExceptions\PrintSystemException.cs (2)
244exceptionMessage = String.Format(System.Threading.Thread.CurrentThread.CurrentUICulture, 250exceptionMessage = String.Format(System.Threading.Thread.CurrentThread.CurrentUICulture,
RepoTasks (2)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
162string.Format(CultureInfo.InvariantCulture, MacOSVerifyCertificateCommandLineArgumentsFormat, tmpFile)) 210string.Format(
rzc (6)
CommandLine\CommandLineApplication.cs (6)
114var message = string.Format( 418Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.LongName)); 438headerBuilder.Insert(6, string.Format(CultureInfo.InvariantCulture, " {0}", cmd.Name)); 475var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxArgLen + 2); 491var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxOptLen + 2); 507var outputFormat = string.Format(CultureInfo.InvariantCulture, " {{0, -{0}}}{{1}}", maxCmdLen + 2);
System.CodeDom (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Collections (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Collections.Concurrent (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Collections.Immutable (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Collections.NonGeneric (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Collections.Specialized (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.ComponentModel.Annotations (3)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
200return string.Format(CultureInfo.CurrentCulture, _lastMessage, name);
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (1)
352string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name);
System.ComponentModel.Composition (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.ComponentModel.Composition.Registration (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.ComponentModel.EventBasedAsync (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.ComponentModel.Primitives (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.ComponentModel.TypeConverter (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Composition.Convention (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Composition.Hosting (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Composition.Runtime (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Composition.TypedParts (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Configuration.ConfigurationManager (5)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System\Configuration\MgmtConfigurationRecord.cs (4)
1933utilWriter.Write(string.Format(CultureInfo.InvariantCulture, 1940utilWriter.Write(string.Format(CultureInfo.InvariantCulture, 2221configurationStartElement = string.Format( 3140utilWriter.Write(string.Format(CultureInfo.InvariantCulture, FormatConfigSourceFile,
System.Console (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Data.Common (59)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System\Data\Common\DBCommandBuilder.cs (2)
1170return string.Format(CultureInfo.InvariantCulture, _parameterMarkerFormat, parameterName); 1219return string.Format(CultureInfo.InvariantCulture, _parameterMarkerFormat, parameterName);
System\Data\DataSet.cs (2)
365info.AddValue(string.Format(CultureInfo.InvariantCulture, "DataSet.Tables_{0}", i), memStream.GetBuffer()); 439byte[] buffer = (byte[])info.GetValue(string.Format(CultureInfo.InvariantCulture, "DataSet.Tables_{0}", i), typeof(byte[]))!;
System\Data\DataTable.cs (54)
385info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnName", i), Columns[i].ColumnName); 386info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.Namespace", i), Columns[i]._columnUri); 387info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.Prefix", i), Columns[i].Prefix); 388info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnMapping", i), Columns[i].ColumnMapping); 389info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.AllowDBNull", i), Columns[i].AllowDBNull); 390info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrement", i), Columns[i].AutoIncrement); 391info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementStep", i), Columns[i].AutoIncrementStep); 392info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementSeed", i), Columns[i].AutoIncrementSeed); 393info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.Caption", i), Columns[i].Caption); 394info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.DefaultValue", i), Columns[i].DefaultValue); 395info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.ReadOnly", i), Columns[i].ReadOnly); 396info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.MaxLength", i), Columns[i].MaxLength); 397info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.DataType_AssemblyQualifiedName", i), Columns[i].DataType.AssemblyQualifiedName); 398info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.XmlDataType", i), Columns[i].XmlDataType); 399info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.SimpleType", i), Columns[i].SimpleType); 401info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.DateTimeMode", i), Columns[i].DateTimeMode); 404info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementCurrent", i), Columns[i].AutoIncrementCurrent); 409info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.Expression", i), Columns[i].Expression); 413info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.ExtendedProperties", i), Columns[i]._extendedProperties); 463dc.ColumnName = info.GetString(string.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnName", i)); 464dc._columnUri = info.GetString(string.Format(formatProvider, "DataTable.DataColumn_{0}.Namespace", i)); 465dc.Prefix = info.GetString(string.Format(formatProvider, "DataTable.DataColumn_{0}.Prefix", i)); 467string typeName = (string)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.DataType_AssemblyQualifiedName", i), typeof(string))!; 469dc.XmlDataType = (string?)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.XmlDataType", i), typeof(string)); 470dc.SimpleType = (SimpleType?)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.SimpleType", i), typeof(SimpleType)); 472dc.ColumnMapping = (MappingType)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnMapping", i), typeof(MappingType))!; 473dc.DateTimeMode = (DataSetDateTime)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.DateTimeMode", i), typeof(DataSetDateTime))!; 475dc.AllowDBNull = info.GetBoolean(string.Format(formatProvider, "DataTable.DataColumn_{0}.AllowDBNull", i)); 476dc.AutoIncrement = info.GetBoolean(string.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrement", i)); 477dc.AutoIncrementStep = info.GetInt64(string.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementStep", i)); 478dc.AutoIncrementSeed = info.GetInt64(string.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementSeed", i)); 479dc.Caption = info.GetString(string.Format(formatProvider, "DataTable.DataColumn_{0}.Caption", i)); 480dc.DefaultValue = info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.DefaultValue", i), typeof(object)); 481dc.ReadOnly = info.GetBoolean(string.Format(formatProvider, "DataTable.DataColumn_{0}.ReadOnly", i)); 482dc.MaxLength = info.GetInt32(string.Format(formatProvider, "DataTable.DataColumn_{0}.MaxLength", i)); 485dc.AutoIncrementCurrent = info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementCurrent", i), typeof(object))!; 490expressions[i] = info.GetString(string.Format(formatProvider, "DataTable.DataColumn_{0}.Expression", i)); 494dc._extendedProperties = (PropertyCollection?)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.ExtendedProperties", i), typeof(PropertyCollection)); 585info.AddValue(string.Format(CultureInfo.InvariantCulture, "DataTable_{0}.Constraints", serIndex), constraintList); 594ArrayList constraintList = (ArrayList)info.GetValue(string.Format(CultureInfo.InvariantCulture, "DataTable_{0}.Constraints", serIndex), typeof(ArrayList))!; 764info.AddValue(string.Format(formatProvider, "DataTable_{0}.Rows.Count", serIndex), rowCount); 765info.AddValue(string.Format(formatProvider, "DataTable_{0}.Records.Count", serIndex), recordCount); 766info.AddValue(string.Format(formatProvider, "DataTable_{0}.RowStates", serIndex), rowStates); 767info.AddValue(string.Format(formatProvider, "DataTable_{0}.Records", serIndex), storeList); 768info.AddValue(string.Format(formatProvider, "DataTable_{0}.NullBits", serIndex), nullbitList); 769info.AddValue(string.Format(formatProvider, "DataTable_{0}.RowErrors", serIndex), rowErrors); 770info.AddValue(string.Format(formatProvider, "DataTable_{0}.ColumnErrors", serIndex), colErrors); 785int rowCount = info.GetInt32(string.Format(formatProvider, "DataTable_{0}.Rows.Count", serIndex)); 786int recordCount = info.GetInt32(string.Format(formatProvider, "DataTable_{0}.Records.Count", serIndex)); 787BitArray rowStates = (BitArray)info.GetValue(string.Format(formatProvider, "DataTable_{0}.RowStates", serIndex), typeof(BitArray))!; 788ArrayList storeList = (ArrayList)info.GetValue(string.Format(formatProvider, "DataTable_{0}.Records", serIndex), typeof(ArrayList))!; 789ArrayList nullbitList = (ArrayList)info.GetValue(string.Format(formatProvider, "DataTable_{0}.NullBits", serIndex), typeof(ArrayList))!; 790Hashtable rowErrors = (Hashtable)info.GetValue(string.Format(formatProvider, "DataTable_{0}.RowErrors", serIndex), typeof(Hashtable))!; 792Hashtable colErrors = (Hashtable)info.GetValue(string.Format(formatProvider, "DataTable_{0}.ColumnErrors", serIndex), typeof(Hashtable))!;
System.Data.Odbc (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Data.OleDb (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Diagnostics.DiagnosticSource (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Diagnostics.EventLog (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Diagnostics.FileVersionInfo (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Diagnostics.PerformanceCounter (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Diagnostics.Process (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Diagnostics.TextWriterTraceListener (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Diagnostics.TraceSource (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.DirectoryServices (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.DirectoryServices.AccountManagement (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.DirectoryServices.Protocols (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Drawing.Common (1)
Special\SR.cs (1)
71: string.Format(provider, resourceFormat, p1);
System.Drawing.Primitives (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Formats.Asn1 (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Formats.Cbor (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Formats.Nrbf (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Formats.Tar (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.Compression (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.Compression.Brotli (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.Compression.ZipFile (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.FileSystem.DriveInfo (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.FileSystem.Watcher (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.Hashing (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.IsolatedStorage (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.MemoryMappedFiles (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.Packaging (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.Pipelines (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.Pipes (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.IO.Ports (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Linq (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Linq.AsyncEnumerable (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Linq.Expressions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Linq.Parallel (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Linq.Queryable (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Management (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Memory (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Memory.Data (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.Http (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.Http.Json (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.HttpListener (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.Mail (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.NameResolution (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.NetworkInformation (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.Ping (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.Primitives (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.Quic (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.Requests (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.Security (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.ServerSentEvents (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.Sockets (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.WebClient (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.WebHeaderCollection (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.WebSockets (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Net.WebSockets.Client (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Numerics.Tensors (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.ObjectModel (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Private.CoreLib (5)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (1)
87string.Format(CultureInfo.InvariantCulture, "{0} (0x{0:x4})", (int)InvalidCultureId) :
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (2)
323Write(string.Format(FormatProvider, format, arg0)); 550WriteLine(string.Format(FormatProvider, format, arg0));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (1)
239string moreInfoUrl = string.Format(CultureInfo.InvariantCulture, Obsoletions.SharedUrlFormat, Obsoletions.SystemTextEncodingUTF7DiagId);
System.Private.DataContractSerialization (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Private.Reflection.Execution (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Private.TypeLoader (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Private.Uri (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Private.Windows.Core (1)
_generated\120\Windows.Win32.HRESULT.g.cs (1)
50 public override string ToString() => string.Format(global::System.Globalization.CultureInfo.InvariantCulture, "0x{0:X8}", this.Value);
System.Private.Xml (2)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System\Xml\Xsl\XsltOld\OutputScopeManager.cs (1)
183prefix = string.Format(CultureInfo.InvariantCulture, format, _prefixIndex++);
System.Private.Xml.Linq (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Reflection.Context (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Reflection.DispatchProxy (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Reflection.Emit (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Reflection.Metadata (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Reflection.MetadataLoadContext (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Reflection.TypeExtensions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Resources.Extensions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Resources.Writer (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Runtime.Caching (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Runtime.InteropServices (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Runtime.InteropServices.JavaScript (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Runtime.Numerics (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Runtime.Serialization.Formatters (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Runtime.Serialization.Primitives (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Runtime.Serialization.Schema (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Security.AccessControl (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Security.Claims (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Security.Cryptography (2)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System\Security\Cryptography\CryptographicUnexpectedOperationException.cs (1)
30: base(string.Format(CultureInfo.CurrentCulture, format, insert))
System.Security.Cryptography.Cose (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Security.Cryptography.Pkcs (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Security.Cryptography.ProtectedData (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Security.Cryptography.Xml (2)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (1)
745string logMessage = string.Format(CultureInfo.InvariantCulture,
System.Security.Permissions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Security.Principal.Windows (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.ServiceModel.Federation (1)
System\IdentityModel\Tokens\SamlAssertionKeyIdentifierClause.cs (1)
55return string.Format(CultureInfo.InvariantCulture, "SamlAssertionKeyIdentifierClause(AssertionId = '{0}')", Id);
System.ServiceModel.Http (5)
System\ServiceModel\BasicHttpsSecurityMode.cs (1)
40Fx.Assert(mode == BasicHttpSecurityMode.Transport || mode == BasicHttpSecurityMode.TransportWithMessageCredential, string.Format(CultureInfo.InvariantCulture, "Invalid BasicHttpSecurityMode value: {0}.", mode.ToString()));
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1161action = string.Format(CultureInfo.InvariantCulture, "\"{0}\"", UrlUtility.UrlPathEncode(action));
System\ServiceModel\Channels\MessageContent.cs (2)
49action = string.Format(CultureInfo.InvariantCulture, "\"{0}\"", UrlUtility.UrlPathEncode(action)); 108string value = string.Format(CultureInfo.InvariantCulture, "\"{0}\"", actionParams[0].Value);
System\ServiceModel\Channels\WebSocketHelper.cs (1)
89invalidChar = string.Format(CultureInfo.InvariantCulture, "[{0}]", (int)ch);
System.ServiceModel.Primitives (42)
Internals\System\Xml\XmlMtomReader.cs (3)
111throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(string.Format(CultureInfo.InvariantCulture, "encodings[{0}]", i)); 325return string.Format(CultureInfo.InvariantCulture, "<{0}>", startUri); 410contentID = string.Format(CultureInfo.InvariantCulture, "<{0}>", Uri.UnescapeDataString(uri.Substring(MimeGlobals.ContentIDScheme.Length)));
Internals\System\Xml\XmlMtomWriter.cs (2)
578_mimeWriter.WriteHeader(MimeGlobals.ContentIDHeader, string.Format(CultureInfo.InvariantCulture, "<{0}>", contentID)); 589_mimeWriter.WriteHeader(MimeGlobals.ContentIDHeader, string.Format(CultureInfo.InvariantCulture, "<{0}>", contentID));
System\IdentityModel\Tokens\X509RawDataKeyIdentifierClause.cs (1)
79return string.Format(CultureInfo.InvariantCulture, "X509RawDataKeyIdentifierClause(RawData = {0})", ToBase64String());
System\IdentityModel\Tokens\X509SubjectKeyIdentifierClause.cs (1)
82return string.Format(CultureInfo.InvariantCulture, "X509SubjectKeyIdentifierClause(SKI = 0x{0})", ToHexString());
System\IdentityModel\Tokens\X509ThumbprintKeyIdentifierClause.cs (1)
55return string.Format(CultureInfo.InvariantCulture, "X509ThumbprintKeyIdentifierClause(Hash = 0x{0})", ToHexString());
System\ServiceModel\Channels\SecurityBindingElement.cs (9)
606sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}:", GetType().ToString())); 607sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "DefaultAlgorithmSuite: {0}", _defaultAlgorithmSuite.ToString())); 608sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IncludeTimestamp: {0}", IncludeTimestamp.ToString())); 609sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", _keyEntropyMode.ToString())); 610sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "MessageSecurityVersion: {0}", MessageSecurityVersion.ToString())); 611sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", _securityHeaderLayout.ToString())); 612sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ProtectTokens: {0}", _protectTokens.ToString())); 626sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters[\"{0}\"]:", requestAction)); 639sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters[\"{0}\"]:", requestAction));
System\ServiceModel\Description\ServiceReflector.cs (1)
151throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "Cannot generate unique name for name {0}", baseName)));
System\ServiceModel\Security\IdentityVerifier.cs (1)
237expectedSpn = string.Format(CultureInfo.InvariantCulture, "host/{0}", (string)identity.IdentityClaim.Resource);
System\ServiceModel\Security\RequestSecurityToken.cs (1)
243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "value[{0}]", index)));
System\ServiceModel\Security\RequestSecurityTokenResponseCollection.cs (1)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(String.Format(CultureInfo.InvariantCulture, "rstrCollection[{0}]", index));
System\ServiceModel\Security\SecurityUtils.cs (2)
225spn = string.Format(CultureInfo.InvariantCulture, "host/{0}", (string)identity.IdentityClaim.Resource); 245return string.Format(CultureInfo.InvariantCulture, "host/{0}", target.Uri.DnsSafeHost);
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (8)
153sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "TokenType: {0}", TokenType == null ? "null" : TokenType)); 154sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeyType: {0}", _keyType.ToString())); 155sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeySize: {0}", _keySize.ToString(CultureInfo.InvariantCulture))); 156sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerAddress: {0}", IssuerAddress == null ? "null" : IssuerAddress.ToString())); 157sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerMetadataAddress: {0}", IssuerMetadataAddress == null ? "null" : IssuerMetadataAddress.ToString())); 158sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "DefaultMessgeSecurityVersion: {0}", DefaultMessageSecurityVersion == null ? "null" : DefaultMessageSecurityVersion.ToString())); 159sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "UseStrTransform: {0}", UseStrTransform.ToString())); 171sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " BindingElement[{0}]:", i.ToString(CultureInfo.InvariantCulture)));
System\ServiceModel\Security\Tokens\SecureConversationSecurityTokenParameters.cs (1)
161sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "RequireCancellation: {0}", RequireCancellation.ToString()));
System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (2)
192sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", GetType().ToString())); 193sb.Append(String.Format(CultureInfo.InvariantCulture, "RequireDerivedKeys: {0}", RequireDerivedKeys.ToString()));
System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (3)
230sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", GetType().ToString())); 234sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "PropertyName: {0}", propertyName)); 235sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "PropertyValue: {0}", propertyValue));
System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (4)
123sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Endorsing[{0}]", k.ToString(CultureInfo.InvariantCulture))); 136sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Signed[{0}]", k.ToString(CultureInfo.InvariantCulture))); 149sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEncrypted[{0}]", k.ToString(CultureInfo.InvariantCulture))); 162sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEndorsing[{0}]", k.ToString(CultureInfo.InvariantCulture)));
System\ServiceModel\Security\Tokens\X509SecurityTokenParameters.cs (1)
134sb.Append(String.Format(CultureInfo.InvariantCulture, "X509ReferenceStyle: {0}", _x509ReferenceStyle.ToString()));
System.ServiceModel.Syndication (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.ServiceProcess.ServiceController (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Speech (8)
Internal\ObjectToken\ObjectToken.cs (1)
201string sCultureId = string.Format(CultureInfo.InvariantCulture, "{0:x}", CultureInfo.CurrentUICulture.LCID);
Internal\ObjectToken\SAPICategories.cs (1)
102string[] sCultureId = new string[] { string.Format(CultureInfo.InvariantCulture, "{0:x}", CultureInfo.CurrentUICulture.LCID) };
Internal\SrgsCompiler\BackEnd.cs (1)
1193throw new FormatException(string.Format(CultureInfo.InvariantCulture, "Rule=\"{0}\" - ", rule) + sError);
Internal\Synthesis\TextFragmentEngine.cs (1)
210AddParseUnknownFragment(voice, ref fragmentState, string.Format(CultureInfo.InvariantCulture, "</{0}>", element));
Recognition\SrgsGrammar\SrgsItem.cs (3)
193writer.WriteAttributeString("repeat", string.Format(CultureInfo.InvariantCulture, "{0}", _minRepeat)); 199writer.WriteAttributeString("repeat", string.Format(CultureInfo.InvariantCulture, "{0}-", _minRepeat)); 249sb.Append(string.Format(CultureInfo.InvariantCulture, "{0},-", _minRepeat));
Result\RecognizedPhrase.cs (1)
648key = propertyName + string.Format(CultureInfo.InvariantCulture, "_{0}", count++);
System.Text.Encoding.CodePages (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Text.Encodings.Web (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Text.Json (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Parser.cs (1)
1110failureReason = string.Format(
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Text.RegularExpressions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Text.RegularExpressions.Generator (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Threading (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Threading.AccessControl (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Threading.Channels (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Threading.RateLimiting (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Threading.Tasks.Dataflow (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Threading.Tasks.Parallel (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Transactions.Local (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Windows.Extensions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
117return string.Format(provider, resourceFormat, p1);
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
568_countItem?.Text = DesignMode ? CountItemFormat : string.Format(CultureInfo.CurrentCulture, CountItemFormat, count);
System.Windows.Forms.Design (3)
System\ComponentModel\Design\MenuCommandService.cs (1)
84throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.MenuCommandService_DuplicateCommand, commandId.ToString()));
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1603_helpTextCtrl.Text = string.Format(CultureInfo.CurrentCulture, (SR.DesignBindingPickerHelpGenCurrentBinding), _selectedNode.Text); 2484public InstancesNode(string? rootComponentName) : base(null, string.Format(CultureInfo.CurrentCulture, (SR.DesignBindingPickerNodeInstances), rootComponentName), BindingImage.Instances)
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\Exceptions.cs (1)
203string message = string.Format(
System.Xaml (1)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
1175string errMsg = string.Format(TypeConverterHelper.InvariantEnglishUS, SR.InvalidExpression, factoryMethodName);
UIAutomationClientSideProviders (4)
MS\Internal\AutomationProxies\Accessible.cs (3)
1158Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Unexpected exception thrown for AccessibleChildren: {0}", e)); 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\MSAAEventDispatcher.cs (1)
157Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "ERROR: AdviseEventRemoved called for {0} without matching AdviseEventAdded.", hwnd), "NativeMsaaProxy");
vstest.console (44)
CommandLine\CommandLineOptions.cs (1)
288string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidArgument, source), ex);
CommandLine\Executor.cs (4)
244Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoArgumentProcessorFound, arg)); 352Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.DuplicateArgumentError, processor.Metadata.Value.CommandName)); 451string commandLineBanner = string.Format(CultureInfo.CurrentCulture, CommandLineResources.MicrosoftCommandLineTitle, assemblyVersionAndArchitecture); 547Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.OpenResponseFileError, fileName));
InProcessVsTestConsoleWrapper.cs (3)
283string.Format( 350string.Format( 1295string.Format(
Internal\ConsoleLogger.cs (6)
418Output.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestSourcesDiscovered, CommandLineOptions.Instance.Sources.Count()), OutputLevel.Information); 695var attachmentOutput = string.Format(CultureInfo.CurrentCulture, CommandLineResources.AttachmentOutputFormat, uriDataAttachment.Uri.LocalPath); 865Output.Information(false, string.Format(CultureInfo.CurrentCulture, totalTestsformat, totalTests)); 869Output.Information(false, ConsoleColor.Green, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryPassedTests, passedTests)); 873Output.Information(false, ConsoleColor.Red, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryFailedTests, failedTests)); 877Output.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 (1)
113SendMessage("run-abort", string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunAbortedWithError, e.Error));
Internal\ProgressIndicator.cs (1)
42_testRunProgressString = string.Format(CultureInfo.CurrentCulture, "{0}...", Resources.Resources.ProgressIndicatorString);
Processors\AeDebuggerArgumentProcessor.cs (4)
92string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidAeDebuggerArgument, _argument ?? ""); 150_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpFileNameNotFound, procDumpPath)); 157_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpFileNameNotFound, procDumpPath)); 226_output.Error(false, string.Format(CultureInfo.CurrentCulture, invalidDirectoryErrorMessage, directoryInfo.FullName));
Processors\CLIRunSettingsArgumentProcessor.cs (1)
216var exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidTestRunParameterArgument, node);
Processors\CollectArgumentProcessor.cs (2)
91string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.DataCollectorFriendlyNameInvalid, argument); 110throw new SettingsException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.CollectWithTestSettingErrorMessage, argument));
Processors\EnableBlameArgumentProcessor.cs (2)
132var exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidBlameArgument, argument); 158Output.Warning(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.BlameIncorrectOption, argument));
Processors\EnableCodeCoverageArgumentProcessor.cs (2)
266xmlText = string.Format(CultureInfo.InvariantCulture, xmlText, string.Format(CultureInfo.InvariantCulture, format, nodeName, "{0}")); 269xmlText = string.Format(CultureInfo.InvariantCulture, xmlText, string.Empty);
Processors\EnableDiagArgumentProcessor.cs (1)
119string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidDiagArgument, argument);
Processors\EnableLoggerArgumentProcessor.cs (1)
111string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.LoggerUriInvalid, argument);
Processors\FrameworkArgumentProcessor.cs (1)
108string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidFrameworkVersion, argument));
Processors\InIsolationArgumentProcessor.cs (1)
92string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidInIsolationCommand, argument));
Processors\ListExtensionsArgumentProcessor.cs (1)
91ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.UriOfDefaultExecutor, extension.Metadata.DefaultExecutorUri), OutputLevel.Information);
Processors\ListTestsArgumentProcessor.cs (1)
224string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableTestsFormat, test.DisplayName),
Processors\ParallelArgumentProcessor.cs (1)
99string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidParallelCommand, argument));
Processors\PortArgumentProcessor.cs (1)
167throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.DesignModeClientTimeoutError, _port), ex);
Processors\RunSettingsArgumentProcessor.cs (1)
92string.Format(
Processors\RunSpecificTestsArgumentProcessor.cs (1)
258warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoTestsAvailableInSources, string.Join(", ", _commandLineOptions.Sources));
Processors\TestAdapterLoadingStrategyArgumentProcessor.cs (3)
125throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalidRecursive, $"{nameof(TestAdapterLoadingStrategy.Explicit)}, {nameof(TestAdapterLoadingStrategy.NextToSource)}")); 160throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalid, value)); 177throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterPathValueRequiredWhenStrategyXIsUsed, nameof(TestAdapterLoadingStrategy.Explicit)));
Processors\UseVsixExtensionsArgumentProcessor.cs (1)
94string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidUseVsixExtensionsCommand, argument));
TestPlatformHelpers\TestRequestManager.cs (2)
336string.Format( 503string.Format(
vstest.console.arm64 (44)
src\vstest\src\vstest.console\CommandLine\CommandLineOptions.cs (1)
288string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidArgument, source), ex);
src\vstest\src\vstest.console\CommandLine\Executor.cs (4)
244Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoArgumentProcessorFound, arg)); 352Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.DuplicateArgumentError, processor.Metadata.Value.CommandName)); 451string commandLineBanner = string.Format(CultureInfo.CurrentCulture, CommandLineResources.MicrosoftCommandLineTitle, assemblyVersionAndArchitecture); 547Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.OpenResponseFileError, fileName));
src\vstest\src\vstest.console\InProcessVsTestConsoleWrapper.cs (3)
283string.Format( 350string.Format( 1295string.Format(
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (6)
418Output.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestSourcesDiscovered, CommandLineOptions.Instance.Sources.Count()), OutputLevel.Information); 695var attachmentOutput = string.Format(CultureInfo.CurrentCulture, CommandLineResources.AttachmentOutputFormat, uriDataAttachment.Uri.LocalPath); 865Output.Information(false, string.Format(CultureInfo.CurrentCulture, totalTestsformat, totalTests)); 869Output.Information(false, ConsoleColor.Green, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryPassedTests, passedTests)); 873Output.Information(false, ConsoleColor.Red, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryFailedTests, failedTests)); 877Output.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 (1)
113SendMessage("run-abort", string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunAbortedWithError, e.Error));
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 (4)
92string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidAeDebuggerArgument, _argument ?? ""); 150_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpFileNameNotFound, procDumpPath)); 157_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpFileNameNotFound, procDumpPath)); 226_output.Error(false, string.Format(CultureInfo.CurrentCulture, invalidDirectoryErrorMessage, directoryInfo.FullName));
src\vstest\src\vstest.console\Processors\CLIRunSettingsArgumentProcessor.cs (1)
216var exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidTestRunParameterArgument, node);
src\vstest\src\vstest.console\Processors\CollectArgumentProcessor.cs (2)
91string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.DataCollectorFriendlyNameInvalid, argument); 110throw new SettingsException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.CollectWithTestSettingErrorMessage, argument));
src\vstest\src\vstest.console\Processors\EnableBlameArgumentProcessor.cs (2)
132var exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidBlameArgument, argument); 158Output.Warning(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.BlameIncorrectOption, argument));
src\vstest\src\vstest.console\Processors\EnableCodeCoverageArgumentProcessor.cs (2)
266xmlText = string.Format(CultureInfo.InvariantCulture, xmlText, string.Format(CultureInfo.InvariantCulture, format, nodeName, "{0}")); 269xmlText = string.Format(CultureInfo.InvariantCulture, xmlText, string.Empty);
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)
111string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.LoggerUriInvalid, argument);
src\vstest\src\vstest.console\Processors\FrameworkArgumentProcessor.cs (1)
108string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidFrameworkVersion, argument));
src\vstest\src\vstest.console\Processors\InIsolationArgumentProcessor.cs (1)
92string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidInIsolationCommand, argument));
src\vstest\src\vstest.console\Processors\ListExtensionsArgumentProcessor.cs (1)
91ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.UriOfDefaultExecutor, extension.Metadata.DefaultExecutorUri), OutputLevel.Information);
src\vstest\src\vstest.console\Processors\ListTestsArgumentProcessor.cs (1)
224string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableTestsFormat, test.DisplayName),
src\vstest\src\vstest.console\Processors\ParallelArgumentProcessor.cs (1)
99string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidParallelCommand, argument));
src\vstest\src\vstest.console\Processors\PortArgumentProcessor.cs (1)
167throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.DesignModeClientTimeoutError, _port), ex);
src\vstest\src\vstest.console\Processors\RunSettingsArgumentProcessor.cs (1)
92string.Format(
src\vstest\src\vstest.console\Processors\RunSpecificTestsArgumentProcessor.cs (1)
258warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoTestsAvailableInSources, string.Join(", ", _commandLineOptions.Sources));
src\vstest\src\vstest.console\Processors\TestAdapterLoadingStrategyArgumentProcessor.cs (3)
125throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalidRecursive, $"{nameof(TestAdapterLoadingStrategy.Explicit)}, {nameof(TestAdapterLoadingStrategy.NextToSource)}")); 160throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalid, value)); 177throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterPathValueRequiredWhenStrategyXIsUsed, nameof(TestAdapterLoadingStrategy.Explicit)));
src\vstest\src\vstest.console\Processors\UseVsixExtensionsArgumentProcessor.cs (1)
94string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidUseVsixExtensionsCommand, argument));
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (2)
336string.Format( 503string.Format(
WindowsFormsIntegration (7)
System\Windows\Integration\IntegrationExceptionEventArgs.cs (1)
20throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "exception"));
System\Windows\Integration\PropertyMap.cs (4)
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)); 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"));