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
Log.LogError(null,"CONTAINER005","Container.AmbiguousTags",null,0,0,0,0,$"Both {nameof(ContainerImageTag)} and {nameof(ContainerImageTags)} were provided, but only one or the other is allowed.");
Log.LogError(null,"CONTAINER003","Container.InvalidTag",null,0,0,0,0,$"Invalid {nameof(ContainerImageTag)} provided: {{0}}. Image tags must be alphanumeric, underscore, hyphen, or period.",ContainerImageTag);
{Length:1}=>($"Invalid {nameof(ContainerImageTag)} provided: {{0}}. {nameof(ContainerImageTag)} must be a semicolon-delimited list of valid image tags. Image tags must be alphanumeric, underscore, hyphen, or period.",invalids[0]),
88
-
_ =>($"Invalid {nameof(ContainerImageTag)}s provided: {{0}}. {nameof(ContainerImageTag)} must be a semicolon-delimited list of valid image tags. Image tags must be alphanumeric, underscore, hyphen, or period.",String.Join(", ",invalids))
112
+
if(invalids.Any())
113
+
{
114
+
(stringmessage,stringargs)=invalidsswitch
115
+
{
116
+
{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]),
117
+
_ =>($"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))
Copy file name to clipboardExpand all lines: docs/ContainerCustomization.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,16 +51,21 @@ By default, the value used will be the `AssemblyName` of the project.
51
51
> **Note**
52
52
> Image names can only contain lowercase alphanumeric characters, periods, underscores, and dashes, and must start with a letter or number - any other characters will result in an error being thrown.
53
53
54
-
## ContainerImageTag
54
+
## ContainerImageTag(s)
55
55
56
-
This property controls the tag that is generated for the image. Tags are often used to refer to different versions of an application, but they can also refer to different operating system distributions, or even just different baked-in configuration.
56
+
This property controls the tag that is generated for the image. Tags are often used to refer to different versions of an application, but they can also refer to different operating system distributions, or even just different baked-in configuration. This property also can be used to push multiple tags - simply use a semicolon-delimited set of tags in the `ContainerImageTags` property, similar to setting multiple `TargetFrameworks`.
57
57
58
58
By default, the value used will be the `Version` of the project.
> Tags can only contain up to 127 alphanumeric characters, periods, underscores, and dashes. They must start with an alphanumeric character or an underscore. Any other form will result in an error being thrown.
0 commit comments