27 references to FormatString
Microsoft.NET.Build.Containers (25)
ContainerBuilder.cs (8)
83
logger.LogError(Resource.
FormatString
(nameof(Strings.RepositoryNotFound), baseImageName, baseImageTag, baseImageDigest, registry.RegistryName));
88
logger.LogError(Resource.
FormatString
(nameof(Strings.UnableToAccessRepository), baseImageName, registry.RegistryName));
138
logger.LogError(Resource.
FormatString
(nameof(s), a));
228
logger.LogError(Resource.
FormatString
(nameof(Strings.LocalRegistryNotAvailable)));
239
logger.LogError(Resource.
FormatString
(nameof(Strings.UnableToDownloadFromRepository)), sourceImageReference);
244
logger.LogError(Resource.
FormatString
(nameof(Strings.RegistryOutputPushFailed), ex.Message));
266
logger.LogError(Resource.
FormatString
(nameof(Strings.UnableToDownloadFromRepository)), sourceImageReference);
271
logger.LogError(Resource.
FormatString
(nameof(Strings.RegistryOutputPushFailed), e.Message));
ContentStore.cs (1)
53
_ => throw new ArgumentException(Resource.
FormatString
(nameof(Strings.UnrecognizedMediaType), descriptor.MediaType))
Credentials\CredentialRetrievalException.cs (1)
12
Resource.
FormatString
(nameof(Strings.FailedRetrievingCredentials), registry, innerException.Message),
ImageBuilder.cs (1)
244
Resource.
FormatString
(
Layer.cs (1)
207
_ => throw new ArgumentException(Resource.
FormatString
(nameof(Strings.UnrecognizedMediaType), manifestMediaType))
LocalDaemons\DockerCli.cs (7)
79
throw new NotImplementedException(Resource.
FormatString
(Strings.ContainerRuntimeProcessCreationFailed, Commands));
113
throw new NotImplementedException(Resource.
FormatString
(Strings.ContainerRuntimeProcessCreationFailed, commandPath));
129
throw new DockerLoadException(Resource.
FormatString
(nameof(Strings.ImageLoadFailed), await loadProcess.StandardError.ReadToEndAsync(cancellationToken).ConfigureAwait(false)));
217
throw new DockerLoadException(Resource.
FormatString
(
228
throw new DockerLoadException(Resource.
FormatString
(nameof(Strings.DockerInfoFailed_Ex), e.Message));
300
throw new ArgumentException(Resource.
FormatString
(nameof(Strings.UnsupportedMediaTypeForTarball), image.ManifestMediaType));
353
throw new NotImplementedException(Resource.
FormatString
(
LocalDaemons\KnownLocalRegistryTypes.cs (1)
28
Resource.
FormatString
(
Registry\DefaultBlobUploadOperations.cs (3)
39
string errorMessage = Resource.
FormatString
(nameof(Strings.BlobUploadFailed), $"PUT {putUri}", finalizeResponse.StatusCode);
59
string errorMessage = Resource.
FormatString
(nameof(Strings.BlobUploadFailed), $"POST {startUploadUri}", pushResponse.StatusCode);
119
string errorMessage = Resource.
FormatString
(nameof(Strings.BlobUploadFailed), $"PATCH {uploadUri}", patchResponse.StatusCode);
Registry\DefaultManifestOperations.cs (1)
51
throw new ContainerHttpException(Resource.
FormatString
(nameof(Strings.RegistryPushFailed), putResponse.StatusCode), putResponse.RequestMessage?.RequestUri?.ToString(), putResponse.StatusCode);
Registry\Registry.cs (1)
217
var unknownMediaType => throw new NotImplementedException(Resource.
FormatString
(
Microsoft.NET.Build.Containers.UnitTests (2)
RegistryTests.cs (1)
376
Exception preparedException = new ApplicationException(Resource.
FormatString
(nameof(Strings.BlobUploadFailed), $"PATCH <uri>", HttpStatusCode.InternalServerError));
Resources\ResourceTests.cs (1)
22
Assert.Equal("CONTAINER0000: Value for unit test 1", Resource.
FormatString
(nameof(Strings._Test), 1));