We are using the Microsoft.NET.Build.Containers package to containerize and push our applications. The image tag is the version from csproj-File. As we need to provide images for multiple architectures we need to deploy multiple tags and build corresponding manifests.
e.g. Version 1.0.1 results in tags 1.0.1-x64 and 1.0.1-arm64 with a docker manifest for 1.0.1 combining those tags.
We aligned with Microsoft Versioning documentation to build the application and provide the Application Version in <VersionPrefix> in csproj and the Suffix in Command-Line resulting in the expected Version.
dotnet publish --os linux --arch x64 -p:PublishProfile=DefaultContainer -p:ContainerRegistry=${{ secrets.ACR_ENDPOINT }} -p:VersionSuffix=x64
See more details on versioning in Blogpost from Andrew Lock.
Unfortunately the dotnet-version-cli does not support Tags <VersionPrefix> and <VersionSuffix>. This would be super helpful to be in line with official csproj-features.
First look at Skarp.Version.Cli.CsProj.ProjectFileProperty points out the missing entries.
Many Thanks for this great project!!!
We are using the
Microsoft.NET.Build.Containerspackage to containerize and push our applications. The image tag is the version from csproj-File. As we need to provide images for multiple architectures we need to deploy multiple tags and build corresponding manifests.e.g. Version 1.0.1 results in tags 1.0.1-x64 and 1.0.1-arm64 with a docker manifest for 1.0.1 combining those tags.
We aligned with Microsoft Versioning documentation to build the application and provide the Application Version in
<VersionPrefix>in csproj and the Suffix in Command-Line resulting in the expected Version.dotnet publish --os linux --arch x64 -p:PublishProfile=DefaultContainer -p:ContainerRegistry=${{ secrets.ACR_ENDPOINT }} -p:VersionSuffix=x64See more details on versioning in Blogpost from Andrew Lock.
Unfortunately the dotnet-version-cli does not support Tags
<VersionPrefix>and<VersionSuffix>. This would be super helpful to be in line with official csproj-features.First look at
Skarp.Version.Cli.CsProj.ProjectFilePropertypoints out the missing entries.Many Thanks for this great project!!!