You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Microsoft.NET.Build.Containers/ParseContainerProperties.cs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ public override bool Execute()
115
115
else
116
116
{
117
117
validTags=Array.Empty<string>();
118
-
Log.LogError(null,"CONTAINER004","Container.InvalidTag",null,0,0,0,0,$"Invalid {nameof(ContainerImageTag)} provided: {{0}}. Image tags must be alphanumeric, underscore, hyphen, or period.",ContainerImageTag);
118
+
Log.LogError(null,KnownStrings.ErrorCodes.CONTAINER004,"Container.InvalidTag",null,0,0,0,0,$"Invalid {nameof(ContainerImageTag)} provided: {{0}}. Image tags must be alphanumeric, underscore, hyphen, or period.",ContainerImageTag);
@@ -128,7 +128,7 @@ public override bool Execute()
128
128
{Length:1}=>($"Invalid {nameof(ContainerImageTags)} provided: {{0}}. {nameof(ContainerImageTags)} must be a semicolon-delimited list of valid image tags. Image tags must be alphanumeric, underscore, hyphen, or period.",invalids[0]),
129
129
_ =>($"Invalid {nameof(ContainerImageTags)} provided: {{0}}. {nameof(ContainerImageTags)} must be a semicolon-delimited list of valid image tags. Image tags must be alphanumeric, underscore, hyphen, or period.",String.Join(", ",invalids))
Log.LogMessage(MessageImportance.High,$"'{ContainerImageName}' was not a valid container image name, it was normalized to {normalizedImageName}");
169
-
NewContainerImageName=normalizedImageName??"";
168
+
Log.LogMessage(null,KnownStrings.ErrorCodes.CONTAINER001,"Container.InvalidImageName",null,0,0,0,0,MessageImportance.High,"'{0}' was not a valid container image name, it was normalized to '{1}'",nameof(ContainerImageName),normalizedImageName);
0 commit comments