13 references to Resource
Microsoft.NET.Build.Containers (9)
Resources\Resource.cs (1)
24
internal static readonly ResourceManager Manager = new(typeof(Strings).FullName!, typeof(
Resource
).GetTypeInfo().Assembly);
Tasks\CreateNewImage.Interface.cs (1)
238
TaskResources =
Resource
.Manager;
Tasks\CreateNewImageToolTask.cs (6)
73
Log.LogMessage(MessageImportance.Low,
Resource
.GetString(nameof(Strings.HostObjectNotDetected)));
96
throw new InvalidOperationException(
Resource
.FormatString(nameof(Strings.RequiredPropertyNotSetOrEmpty), nameof(PublishDirectory)));
100
throw new InvalidOperationException(
Resource
.FormatString(nameof(Strings.RequiredPropertyNotSetOrEmpty), nameof(BaseRegistry)));
104
throw new InvalidOperationException(
Resource
.FormatString(nameof(Strings.RequiredPropertyNotSetOrEmpty), nameof(BaseImageName)));
108
throw new InvalidOperationException(
Resource
.FormatString(nameof(Strings.RequiredPropertyNotSetOrEmpty), nameof(Repository)));
112
throw new InvalidOperationException(
Resource
.FormatString(nameof(Strings.RequiredPropertyNotSetOrEmpty), nameof(WorkingDirectory)));
Tasks\ParseContainerProperties.cs (1)
83
TaskResources =
Resource
.Manager;
Microsoft.NET.Build.Containers.UnitTests (4)
RegistryTests.cs (1)
376
Exception preparedException = new ApplicationException(
Resource
.FormatString(nameof(Strings.BlobUploadFailed), $"PATCH <uri>", HttpStatusCode.InternalServerError));
Resources\ResourceTests.cs (3)
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));
28
ResourceSet? resourceSet =
Resource
.Manager.GetResourceSet(CultureInfo.InvariantCulture, true, true);