114 references to Strings
Microsoft.NET.Build.Containers (114)
AmazonECRMessageHandler.cs (1)
28string message = Resource.GetString(nameof(Strings.AmazonRegistryFailed));
AuthHandshakeMessageHandler.cs (9)
153public string ResolvedToken => token ?? access_token ?? throw new ArgumentException(Resource.GetString(nameof(Strings.InvalidTokenResponse))); 239Resource.FormatString(nameof(Strings.InvalidAuthResponse_RelativeOrUnparseableRealm), realm)); 254Resource.FormatString(nameof(Strings.InvalidAuthResponse_DisallowedScheme), realm, realmUri.Scheme)); 272Resource.FormatString(nameof(Strings.InvalidAuthResponse_PrivateIpLiteralRealm), realm, realmHost)); 284Resource.FormatString(nameof(Strings.InvalidAuthResponse_PrivateIpLiteralRealm), realm, realmHost)); 503_logger.LogTrace(Resource.GetString(nameof(Strings.CouldntDeserializeJsonToken))); 542throw new ArgumentException(Resource.GetString(nameof(Strings.CouldntDeserializeJsonToken))); 576throw new ArgumentException(Resource.GetString(nameof(Strings.NoRequestUriSpecified)), nameof(request)); 631throw new ApplicationException(Resource.GetString(nameof(Strings.TooManyRetries)), new AggregateException(requestExceptions!));
ContainerHelpers.cs (3)
305var error = (nameof(Strings.InvalidImageName_NonAlphanumericStartCharacter), new[] { containerRepository }); 340var error = (nameof(Strings.InvalidImageName_EntireNameIsInvalidCharacters), new string[] { containerRepository }); 347var warning = (nameof(Strings.NormalizedContainerName), new string[] { containerRepository, normalizedImageName });
ContentStore.cs (1)
37_ => throw new ArgumentException(Resource.FormatString(nameof(Strings.UnrecognizedMediaType), descriptor.MediaType))
Credentials\CredentialRetrievalException.cs (1)
12Resource.FormatString(nameof(Strings.FailedRetrievingCredentials), registry, innerException.Message),
Exceptions\InvalidAuthResponseException.cs (1)
15: base(Resource.FormatString(nameof(Strings.InvalidRegistryAuthResponse), registry, reason), innerException)
FallbackToHttpMessageHandler.cs (1)
34throw new ArgumentException(Resource.GetString(nameof(Strings.NoRequestUriSpecified)), nameof(request));
ImageBuilder.cs (7)
188logWarning(nameof(Strings.EntrypointArgsSetPreferAppCommandArgs)); 205logWarning(nameof(Strings.BaseEntrypointOverwritten)); 213logError(nameof(Strings.EntrypointArgsSetNoEntrypoint), null); 219logError(nameof(Strings.AppCommandArgsSetNoAppCommand), null); 228logError(nameof(Strings.AppCommandSetNotUsed), appCommandInstruction); 238logError(nameof(Strings.EntrypointConflictAppCommand), appCommandInstruction); 247nameof(Strings.UnknownAppCommandInstruction),
ImageIndexGenerator.cs (4)
24throw new ArgumentException(Strings.ImagesEmpty); 31throw new ArgumentException(Strings.MixedMediaTypes); 44throw new NotSupportedException(string.Format(Strings.UnsupportedMediaType, manifestMediaType)); 61throw new ArgumentException(Strings.ImagesEmpty);
ImagePublisher.cs (7)
41Strings.ContainerBuilder_ImageUploadedToRegistry).ConfigureAwait(false); 80Strings.ImageIndexUploadedToRegistry).ConfigureAwait(false); 102Log.LogErrorWithCodeFromResources(nameof(Strings.LocalRegistryNotAvailable)); 108Log.LogMessage(MessageImportance.High, Strings.ContainerBuilder_ImageUploadedToLocalDaemon, destinationImageReference, localRegistry); 112Log.LogErrorWithCodeFromResources(nameof(Strings.UnableToDownloadFromRepository), sourceImageReference); 154Log.LogErrorWithCodeFromResources(nameof(Strings.UnableToAccessRepository), destinationImageReference.Repository, destinationImageReference.RemoteRegistry!.RegistryName); 162Log.LogErrorWithCodeFromResources(nameof(Strings.RegistryOutputPushFailed), e.Message);
Layer.cs (1)
207_ => throw new ArgumentException(Resource.FormatString(nameof(Strings.UnrecognizedMediaType), manifestMediaType))
LocalDaemons\ArchiveFileRegistry.cs (1)
76return string.Format(Strings.ArchiveRegistry_PushInfo, ArchiveOutputPath);
LocalDaemons\ContainerArchive.cs (2)
49throw new NotSupportedException(Resource.FormatString(nameof(Strings.UnsupportedMediaTypeForTarball), image.ManifestMediaType)); 124nameof(Strings.MissingLinkToRegistry),
LocalDaemons\ContainerRuntime.cs (3)
120_logger.LogInformation(Strings.LocalDocker_FailedToGetConfig, ex.Message); 138=> string.Format(Strings.DockerCli_PushInfo, _runtime?.GetTelemetryValue().ToString()); 213=> new(Resource.FormatString(Strings.ContainerRuntimeProcessCreationFailed, GetCommandsForCurrentPlatform()));
LocalDaemons\ContainerRuntimeOperations.cs (2)
81throw new DockerLoadException(Resource.FormatString(nameof(Strings.ImageLoadFailed), output.StandardError)); 118throw new DockerLoadException(Resource.FormatString(nameof(Strings.ImageLoadFailed), stderr));
LocalDaemons\ContainerRuntimes.cs (5)
105throw new DockerLoadException(Strings.ImageLoadFailed_ContainerdStoreDisabled); 155nameof(Strings.DockerInfoFailed), 165throw new DockerLoadException(Resource.FormatString(nameof(Strings.DockerInfoFailed_Ex), e.Message)); 316throw new DockerLoadException(Resource.FormatString(nameof(Strings.ImageLoadFailed), stderr)); 365throw new DockerLoadException(Strings.ImageLoadFailed_WslcMultiArchUnsupported);
LocalDaemons\DockerCli.cs (10)
79throw new NotImplementedException(Resource.FormatString(Strings.ContainerRuntimeProcessCreationFailed, Commands)); 99throw new DockerLoadException(Strings.ImageLoadFailed_ContainerdStoreDisabled); 113throw new NotImplementedException(Resource.FormatString(Strings.ContainerRuntimeProcessCreationFailed, commandPath)); 129throw new DockerLoadException(Resource.FormatString(nameof(Strings.ImageLoadFailed), await loadProcess.StandardError.ReadToEndAsync(cancellationToken).ConfigureAwait(false))); 182_logger.LogInformation(Strings.LocalDocker_FailedToGetConfig, ex.Message); 218nameof(Strings.DockerInfoFailed), 228throw new DockerLoadException(Resource.FormatString(nameof(Strings.DockerInfoFailed_Ex), e.Message)); 300throw new ArgumentException(Resource.FormatString(nameof(Strings.UnsupportedMediaTypeForTarball), image.ManifestMediaType)); 354nameof(Strings.MissingLinkToRegistry), 684return string.Format(Strings.DockerCli_PushInfo, _command);
LocalDaemons\KnownLocalRegistryTypes.cs (1)
46nameof(Strings.UnknownLocalRegistryType),
Registry\DefaultBlobOperations.cs (1)
78throw new ContainerHttpException(Resource.GetString(nameof(Strings.RegistryPullFailed)), response.RequestMessage?.RequestUri?.ToString(), response.StatusCode);
Registry\DefaultBlobUploadOperations.cs (3)
38string errorMessage = Resource.FormatString(nameof(Strings.BlobUploadFailed), $"PUT {putUri}", finalizeResponse.StatusCode); 58string errorMessage = Resource.FormatString(nameof(Strings.BlobUploadFailed), $"POST {startUploadUri}", pushResponse.StatusCode); 118string errorMessage = Resource.FormatString(nameof(Strings.BlobUploadFailed), $"PATCH {uploadUri}", patchResponse.StatusCode);
Registry\DefaultManifestOperations.cs (2)
51throw new ContainerHttpException(Resource.FormatString(nameof(Strings.RegistryPushFailed), putResponse.StatusCode), putResponse.RequestMessage?.RequestUri?.ToString(), putResponse.StatusCode); 58throw new ContainerHttpException(Resource.GetString(nameof(Strings.RegistryPullFailed)), response.RequestMessage?.RequestUri?.ToString(), response.StatusCode);
Registry\Registry.cs (14)
219nameof(Strings.UnknownMediaType), 562_logger.LogInformation(Strings.Registry_LayerExists, digest); 591_logger.LogInformation(Strings.Registry_TagUploadStarted, tag, RegistryName); 593_logger.LogInformation(Strings.Registry_TagUploaded, tag, RegistryName); 610_logger.LogInformation(Strings.Registry_LayerUploadStarted, digest, destinationRegistry.RegistryName); 613_logger.LogInformation(Strings.Registry_LayerExists, digest); 628_logger.LogInformation(Strings.Registry_LayerUploaded, digest, destinationRegistry.RegistryName); 632throw new NotImplementedException(Resource.GetString(nameof(Strings.MissingLinkToRegistry))); 653_logger.LogInformation(Strings.Registry_ConfigUploadStarted, configDigest); 655_logger.LogInformation(Strings.Registry_ConfigUploaded); 666_logger.LogInformation(Strings.Registry_TagUploadStarted, tag, RegistryName); 668_logger.LogInformation(Strings.Registry_TagUploaded, tag, RegistryName); 673_logger.LogInformation(Strings.Registry_ManifestUploadStarted, RegistryName, builtImage.ManifestDigest); 675_logger.LogInformation(Strings.Registry_ManifestUploaded, RegistryName);
Resources\Resource.cs (1)
24internal static readonly ResourceManager Manager = new(typeof(Strings).FullName!, typeof(Resource).GetTypeInfo().Assembly);
Resources\Strings.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.NET.Build.Containers.Resources.Strings", typeof(Strings).Assembly);
Tasks\ComputeDotnetBaseImageAndTag.cs (4)
134Log.LogError(Resources.Strings.InvalidTargetRuntimeIdentifiers); 264Log.LogError(Resources.Strings.InvalidSdkVersion, SdkVersion); 304Log.LogError(Resources.Strings.InvalidSdkPrereleaseVersion, channel); 309Log.LogError(Resources.Strings.InvalidSdkPrereleaseVersion, channel);
Tasks\CreateImageIndex.cs (6)
76logger.LogInformation(Strings.BuildingImageIndex, destinationImageReference, string.Join(", ", images.Select(i => i.ManifestDigest))); 101Log.LogError(Strings.InvalidImageMetadata); 117Log.LogError(Strings.InvalidImageManifest); 148Log.LogError(Strings.InvalidImageConfig); 154Log.LogError(Strings.ImageConfigMissingArchitecture); 160Log.LogError(Strings.ImageConfigMissingOs);
Tasks\CreateNewImage.cs (14)
47Log.LogErrorWithCodeFromResources(nameof(Strings.PublishDirectoryDoesntExist), nameof(PublishDirectory), PublishDirectory); 63Log.LogMessage(MessageImportance.Low, Resource.GetString(nameof(Strings.HostObjectNotDetected))); 113Log.LogErrorWithCodeFromResources(nameof(Strings.RepositoryNotFound), BaseImageName, BaseImageTag, BaseImageDigest, registry.RegistryName); 119Log.LogErrorWithCodeFromResources(nameof(Strings.UnableToAccessRepository), BaseImageName, registry.RegistryName); 136throw new NotSupportedException(Resource.GetString(nameof(Strings.ImagePullNotSupported))); 141Log.LogErrorWithCodeFromResources(nameof(Strings.BaseImageNotFound), sourceImageReference, ContainerRuntimeIdentifier); 146(Strings.ContainerBuilder_StartBuildingImageForRid, new object[] { Repository, ContainerRuntimeIdentifier, sourceImageReference }) : 147(Strings.ContainerBuilder_StartBuildingImage, new object[] { Repository, String.Join(",", ImageTags), sourceImageReference }); 159Log.LogErrorWithCodeFromResources(nameof(Strings.InvalidContainerImageFormat), ImageFormat, string.Join(",", Enum.GetValues<KnownImageFormats>())); 192Log.LogMessageFromResources(nameof(Strings.GenerateDigestLabelWithoutGenerateLabels)); 253Log.LogErrorWithCodeFromResources(nameof(Strings.MissingPortNumber), port.ItemSpec); 259Log.LogErrorWithCodeFromResources(nameof(Strings.InvalidPort_NumberAndType), portNo, portType); 263Log.LogErrorWithCodeFromResources(nameof(Strings.InvalidPort_Number), portNo); 267Log.LogErrorWithCodeFromResources(nameof(Strings.InvalidPort_Type), portType);
Tasks\ParseContainerProperties.cs (8)
91Log.LogErrorWithCodeFromResources(nameof(Strings.AmbiguousTags), nameof(ContainerImageTag), nameof(ContainerImageTags)); 104Log.LogErrorWithCodeFromResources(nameof(Strings.InvalidTag), nameof(ContainerImageTag), ContainerImageTag); 112Log.LogErrorWithCodeFromResources(nameof(Strings.InvalidTags), nameof(ContainerImageTags), String.Join(",", invalidTags)); 123Log.LogErrorWithCodeFromResources(nameof(Strings.CouldntRecognizeRegistry), ContainerRegistry); 131Log.LogWarningWithCodeFromResources(nameof(Strings.BaseImageNameWithSpaces), nameof(FullyQualifiedBaseImageName)); 142Log.LogErrorWithCodeFromResources(nameof(Strings.BaseImageNameParsingFailed), nameof(FullyQualifiedBaseImageName), FullyQualifiedBaseImageName); 148Log.LogWarningWithCodeFromResources(nameof(Strings.BaseImageNameRegistryFallback), nameof(FullyQualifiedBaseImageName), ContainerHelpers.DockerRegistryAlias); 197Log.LogWarningWithCodeFromResources(nameof(Strings.InvalidEnvVar), nameof(ContainerEnvironmentVariables), badEnvVar.ItemSpec);