Skip to content

Commit

Permalink
Update ContainerCustomization.md
Browse files Browse the repository at this point in the history
Fixes #462
  • Loading branch information
baronfel authored Jul 26, 2023
1 parent 5c1113c commit 60d133e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/ContainerCustomization.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,22 @@ By default, the value used will be the `AssemblyName` of the project. In previou

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

By default, the value used will be the `Version` of the project.
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`,


```xml
<!-- set an explicit version -->
<PropertyGroup>
<ContainerImageTag>1.2.3-alpha2</ContainerImageTag>
</PropertyGroup>
```

```xml
<!-- set the version based on Version -->
<PropertyGroup>
<ContainerImageTag>$(Version)</ContainerImageTag>
</PropertyGroup>

```xml
<PropertyGroup>
<ContainerImageTags>1.2.3-alpha2;latest</ContainerImageTags>
Expand Down

0 comments on commit 60d133e

Please sign in to comment.