Skip to content

Commit 114c5b7

Browse files
authored
Merge pull request #481 from dotnet/doc-latest-tag-change
2 parents 5c1113c + 60d133e commit 114c5b7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/ContainerCustomization.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,22 @@ By default, the value used will be the `AssemblyName` of the project. In previou
8181

8282
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`.
8383

84-
By default, the value used will be the `Version` of the project.
84+
By default in .NET 8, the value used will be `latest` - keeping in line with experiences offered by other container tooling. In previous versions, the default value was the `Version` of the project. To continue using the `Version`,
85+
8586

8687
```xml
88+
<!-- set an explicit version -->
8789
<PropertyGroup>
8890
<ContainerImageTag>1.2.3-alpha2</ContainerImageTag>
8991
</PropertyGroup>
9092
```
9193

94+
```xml
95+
<!-- set the version based on Version -->
96+
<PropertyGroup>
97+
<ContainerImageTag>$(Version)</ContainerImageTag>
98+
</PropertyGroup>
99+
92100
```xml
93101
<PropertyGroup>
94102
<ContainerImageTags>1.2.3-alpha2;latest</ContainerImageTags>

0 commit comments

Comments
 (0)