118 references to Strings
Microsoft.NET.Build.Containers (111)
AmazonECRMessageHandler.cs (1)
28
string message = Resource.GetString(nameof(
Strings
.AmazonRegistryFailed));
AuthHandshakeMessageHandler.cs (5)
137
public string ResolvedToken => token ?? access_token ?? throw new ArgumentException(Resource.GetString(nameof(
Strings
.InvalidTokenResponse)));
307
_logger.LogTrace(Resource.GetString(nameof(
Strings
.CouldntDeserializeJsonToken)));
346
throw new ArgumentException(Resource.GetString(nameof(
Strings
.CouldntDeserializeJsonToken)));
380
throw new ArgumentException(Resource.GetString(nameof(
Strings
.NoRequestUriSpecified)), nameof(request));
435
throw new ApplicationException(Resource.GetString(nameof(
Strings
.TooManyRetries)), new AggregateException(requestExceptions!));
ContainerBuilder.cs (13)
50
throw new ArgumentException(string.Format(Resource.GetString(nameof(
Strings
.PublishDirectoryDoesntExist)), nameof(publishDirectory), publishDirectory.FullName));
83
logger.LogError(Resource.FormatString(nameof(
Strings
.RepositoryNotFound), baseImageName, baseImageTag, baseImageDigest, registry.RegistryName));
88
logger.LogError(Resource.FormatString(nameof(
Strings
.UnableToAccessRepository), baseImageName, registry.RegistryName));
99
throw new NotSupportedException(Resource.GetString(nameof(
Strings
.ImagePullNotSupported)));
103
Console.WriteLine(Resource.GetString(nameof(
Strings
.BaseImageNotFound)), sourceImageReference, containerRuntimeIdentifier);
106
logger.LogInformation(
Strings
.ContainerBuilder_StartBuildingImage, imageName, string.Join(",", imageName), sourceImageReference);
228
logger.LogError(Resource.FormatString(nameof(
Strings
.LocalRegistryNotAvailable)));
235
logger.LogInformation(
Strings
.ContainerBuilder_ImageUploadedToLocalDaemon, destinationImageReference, containerRegistry);
239
logger.LogError(Resource.FormatString(nameof(
Strings
.UnableToDownloadFromRepository)), sourceImageReference);
244
logger.LogError(Resource.FormatString(nameof(
Strings
.RegistryOutputPushFailed), ex.Message));
262
logger.LogInformation(
Strings
.ContainerBuilder_ImageUploadedToRegistry, destinationImageReference, destinationImageReference.RemoteRegistry.RegistryName);
266
logger.LogError(Resource.FormatString(nameof(
Strings
.UnableToDownloadFromRepository)), sourceImageReference);
271
logger.LogError(Resource.FormatString(nameof(
Strings
.RegistryOutputPushFailed), e.Message));
ContainerHelpers.cs (3)
274
var error = (nameof(
Strings
.InvalidImageName_NonAlphanumericStartCharacter), new[] { containerRepository });
309
var error = (nameof(
Strings
.InvalidImageName_EntireNameIsInvalidCharacters), new string[] { containerRepository });
316
var warning = (nameof(
Strings
.NormalizedContainerName), new string[] { containerRepository, normalizedImageName });
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),
FallbackToHttpMessageHandler.cs (1)
34
throw new ArgumentException(Resource.GetString(nameof(
Strings
.NoRequestUriSpecified)), nameof(request));
ImageBuilder.cs (7)
186
logWarning(nameof(
Strings
.EntrypointArgsSetPreferAppCommandArgs));
203
logWarning(nameof(
Strings
.BaseEntrypointOverwritten));
211
logError(nameof(
Strings
.EntrypointArgsSetNoEntrypoint), null);
217
logError(nameof(
Strings
.AppCommandArgsSetNoAppCommand), null);
226
logError(nameof(
Strings
.AppCommandSetNotUsed), appCommandInstruction);
236
logError(nameof(
Strings
.EntrypointConflictAppCommand), appCommandInstruction);
245
nameof(
Strings
.UnknownAppCommandInstruction),
ImageIndexGenerator.cs (4)
24
throw new ArgumentException(
Strings
.ImagesEmpty);
31
throw new ArgumentException(
Strings
.MixedMediaTypes);
44
throw new NotSupportedException(string.Format(
Strings
.UnsupportedMediaType, manifestMediaType));
61
throw new ArgumentException(
Strings
.ImagesEmpty);
ImagePublisher.cs (7)
41
Strings
.ContainerBuilder_ImageUploadedToRegistry).ConfigureAwait(false);
80
Strings
.ImageIndexUploadedToRegistry).ConfigureAwait(false);
102
Log.LogErrorWithCodeFromResources(nameof(
Strings
.LocalRegistryNotAvailable));
108
Log.LogMessage(MessageImportance.High,
Strings
.ContainerBuilder_ImageUploadedToLocalDaemon, destinationImageReference, localRegistry);
112
Log.LogErrorWithCodeFromResources(nameof(
Strings
.UnableToDownloadFromRepository), sourceImageReference);
154
Log.LogErrorWithCodeFromResources(nameof(
Strings
.UnableToAccessRepository), destinationImageReference.Repository, destinationImageReference.RemoteRegistry!.RegistryName);
162
Log.LogErrorWithCodeFromResources(nameof(
Strings
.RegistryOutputPushFailed), e.Message);
Layer.cs (1)
207
_ => throw new ArgumentException(Resource.FormatString(nameof(
Strings
.UnrecognizedMediaType), manifestMediaType))
LocalDaemons\ArchiveFileRegistry.cs (1)
69
return string.Format(
Strings
.ArchiveRegistry_PushInfo, ArchiveOutputPath);
LocalDaemons\DockerCli.cs (10)
79
throw new NotImplementedException(Resource.FormatString(
Strings
.ContainerRuntimeProcessCreationFailed, Commands));
99
throw new DockerLoadException(
Strings
.ImageLoadFailed_ContainerdStoreDisabled);
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)));
182
_logger.LogInformation(
Strings
.LocalDocker_FailedToGetConfig, ex.Message);
218
nameof(
Strings
.DockerInfoFailed),
228
throw new DockerLoadException(Resource.FormatString(nameof(
Strings
.DockerInfoFailed_Ex), e.Message));
300
throw new ArgumentException(Resource.FormatString(nameof(
Strings
.UnsupportedMediaTypeForTarball), image.ManifestMediaType));
354
nameof(
Strings
.MissingLinkToRegistry),
684
return string.Format(
Strings
.DockerCli_PushInfo, _command);
LocalDaemons\KnownLocalRegistryTypes.cs (1)
29
nameof(
Strings
.UnknownLocalRegistryType),
Registry\DefaultBlobOperations.cs (1)
79
throw new ContainerHttpException(Resource.GetString(nameof(
Strings
.RegistryPullFailed)), response.RequestMessage?.RequestUri?.ToString(), response.StatusCode);
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 (2)
51
throw new ContainerHttpException(Resource.FormatString(nameof(
Strings
.RegistryPushFailed), putResponse.StatusCode), putResponse.RequestMessage?.RequestUri?.ToString(), putResponse.StatusCode);
58
throw new ContainerHttpException(Resource.GetString(nameof(
Strings
.RegistryPullFailed)), response.RequestMessage?.RequestUri?.ToString(), response.StatusCode);
Registry\Registry.cs (14)
218
nameof(
Strings
.UnknownMediaType),
537
_logger.LogInformation(
Strings
.Registry_LayerExists, digest);
566
_logger.LogInformation(
Strings
.Registry_TagUploadStarted, tag, RegistryName);
568
_logger.LogInformation(
Strings
.Registry_TagUploaded, tag, RegistryName);
585
_logger.LogInformation(
Strings
.Registry_LayerUploadStarted, digest, destinationRegistry.RegistryName);
588
_logger.LogInformation(
Strings
.Registry_LayerExists, digest);
603
_logger.LogInformation(
Strings
.Registry_LayerUploaded, digest, destinationRegistry.RegistryName);
607
throw new NotImplementedException(Resource.GetString(nameof(
Strings
.MissingLinkToRegistry)));
628
_logger.LogInformation(
Strings
.Registry_ConfigUploadStarted, configDigest);
630
_logger.LogInformation(
Strings
.Registry_ConfigUploaded);
641
_logger.LogInformation(
Strings
.Registry_TagUploadStarted, tag, RegistryName);
643
_logger.LogInformation(
Strings
.Registry_TagUploaded, tag, RegistryName);
648
_logger.LogInformation(
Strings
.Registry_ManifestUploadStarted, RegistryName, builtImage.ManifestDigest);
650
_logger.LogInformation(
Strings
.Registry_ManifestUploaded, RegistryName);
Resources\Resource.cs (1)
24
internal static readonly ResourceManager Manager = new(typeof(
Strings
).FullName!, typeof(Resource).GetTypeInfo().Assembly);
Resources\Strings.Designer.cs (1)
42
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.NET.Build.Containers.Resources.Strings", typeof(
Strings
).Assembly);
Tasks\ComputeDotnetBaseImageAndTag.cs (4)
137
Log.LogError(Resources.
Strings
.InvalidTargetRuntimeIdentifiers);
267
Log.LogError(Resources.
Strings
.InvalidSdkVersion, SdkVersion);
307
Log.LogError(Resources.
Strings
.InvalidSdkPrereleaseVersion, channel);
312
Log.LogError(Resources.
Strings
.InvalidSdkPrereleaseVersion, channel);
Tasks\CreateImageIndex.cs (7)
51
Log.LogError(
Strings
.ImageIndex_PodmanNotSupported);
82
logger.LogInformation(
Strings
.BuildingImageIndex, destinationImageReference, string.Join(", ", images.Select(i => i.ManifestDigest)));
107
Log.LogError(
Strings
.InvalidImageMetadata);
123
Log.LogError(
Strings
.InvalidImageManifest);
154
Log.LogError(
Strings
.InvalidImageConfig);
160
Log.LogError(
Strings
.ImageConfigMissingArchitecture);
166
Log.LogError(
Strings
.ImageConfigMissingOs);
Tasks\CreateNewImage.cs (14)
57
Log.LogErrorWithCodeFromResources(nameof(
Strings
.PublishDirectoryDoesntExist), nameof(PublishDirectory), PublishDirectory);
91
Log.LogErrorWithCodeFromResources(nameof(
Strings
.RepositoryNotFound), BaseImageName, BaseImageTag, BaseImageDigest, registry.RegistryName);
97
Log.LogErrorWithCodeFromResources(nameof(
Strings
.UnableToAccessRepository), BaseImageName, registry.RegistryName);
114
throw new NotSupportedException(Resource.GetString(nameof(
Strings
.ImagePullNotSupported)));
119
Log.LogErrorWithCodeFromResources(nameof(
Strings
.BaseImageNotFound), sourceImageReference, ContainerRuntimeIdentifier);
124
(
Strings
.ContainerBuilder_StartBuildingImageForRid, new object[] { Repository, ContainerRuntimeIdentifier, sourceImageReference }) :
125
(
Strings
.ContainerBuilder_StartBuildingImage, new object[] { Repository, String.Join(",", ImageTags), sourceImageReference });
142
Log.LogErrorWithCodeFromResources(nameof(
Strings
.InvalidContainerImageFormat), ImageFormat, string.Join(",", Enum.GetValues<KnownImageFormats>()));
160
Log.LogErrorWithCodeFromResources(nameof(
Strings
.InvalidContainerImageFormat), ImageFormat, string.Join(",", Enum.GetValues<KnownImageFormats>()));
189
Log.LogMessageFromResources(nameof(
Strings
.GenerateDigestLabelWithoutGenerateLabels));
250
Log.LogErrorWithCodeFromResources(nameof(
Strings
.MissingPortNumber), port.ItemSpec);
256
Log.LogErrorWithCodeFromResources(nameof(
Strings
.InvalidPort_NumberAndType), portNo, portType);
260
Log.LogErrorWithCodeFromResources(nameof(
Strings
.InvalidPort_Number), portNo);
264
Log.LogErrorWithCodeFromResources(nameof(
Strings
.InvalidPort_Type), portType);
Tasks\ParseContainerProperties.cs (8)
91
Log.LogErrorWithCodeFromResources(nameof(
Strings
.AmbiguousTags), nameof(ContainerImageTag), nameof(ContainerImageTags));
104
Log.LogErrorWithCodeFromResources(nameof(
Strings
.InvalidTag), nameof(ContainerImageTag), ContainerImageTag);
112
Log.LogErrorWithCodeFromResources(nameof(
Strings
.InvalidTags), nameof(ContainerImageTags), String.Join(",", invalidTags));
123
Log.LogErrorWithCodeFromResources(nameof(
Strings
.CouldntRecognizeRegistry), ContainerRegistry);
131
Log.LogWarningWithCodeFromResources(nameof(
Strings
.BaseImageNameWithSpaces), nameof(FullyQualifiedBaseImageName));
142
Log.LogErrorWithCodeFromResources(nameof(
Strings
.BaseImageNameParsingFailed), nameof(FullyQualifiedBaseImageName), FullyQualifiedBaseImageName);
148
Log.LogWarningWithCodeFromResources(nameof(
Strings
.BaseImageNameRegistryFallback), nameof(FullyQualifiedBaseImageName), ContainerHelpers.DockerRegistryAlias);
197
Log.LogWarningWithCodeFromResources(nameof(
Strings
.InvalidEnvVar), nameof(ContainerEnvironmentVariables), badEnvVar.ItemSpec);
Microsoft.NET.Build.Containers.UnitTests (7)
ImageIndexGeneratorTests.cs (4)
15
Assert.Equal(
Strings
.ImagesEmpty, ex.Message);
23
Assert.Equal(
Strings
.ImagesEmpty, ex.Message);
41
Assert.Equal(string.Format(
Strings
.UnsupportedMediaType, "unsupported"), ex.Message);
68
Assert.Equal(
Strings
.MixedMediaTypes, ex.Message);
RegistryTests.cs (1)
376
Exception preparedException = new ApplicationException(Resource.FormatString(nameof(
Strings
.BlobUploadFailed), $"PATCH <uri>", HttpStatusCode.InternalServerError));
Resources\ResourceTests.cs (2)
16
Assert.Equal("CONTAINER0000: Value for unit test {0}", Resource.GetString(nameof(
Strings
._Test)));
22
Assert.Equal("CONTAINER0000: Value for unit test 1", Resource.FormatString(nameof(
Strings
._Test), 1));