Skip to content

Commit

Permalink
Fix container build with .net 9.0.102
Browse files Browse the repository at this point in the history
  • Loading branch information
marcschier committed Jan 16, 2025
1 parent a6e3bec commit 53895c3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<TieredPGO>true</TieredPGO>
</PropertyGroup>
<PropertyGroup>
<PublishProfile>DefaultContainer</PublishProfile>
<ContainerRepository>iotedge/opc-publisher</ContainerRepository>
<ContainerUser>root</ContainerUser>
<ContainerBaseImage>mcr.microsoft.com/dotnet/aspnet:9.0-azurelinux3.0-distroless</ContainerBaseImage>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<EnableSdkContainerSupport>true</EnableSdkContainerSupport>
</PropertyGroup>
<PropertyGroup>
<PublishProfile>DefaultContainer</PublishProfile>
<ContainerRepository>iot/industrial-cli</ContainerRepository>
<ContainerRuntimeIdentifier>linux-x64</ContainerRuntimeIdentifier>
<ContainerBaseImage>mcr.microsoft.com/dotnet/runtime:9.0-azurelinux3.0-distroless</ContainerBaseImage>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup>
<PublishProfile>DefaultContainer</PublishProfile>
<ContainerRepository>iot/industrial-iot-services-all</ContainerRepository>
<ContainerBaseImage>mcr.microsoft.com/dotnet/aspnet:9.0-cbl-mariner2.0-distroless</ContainerBaseImage>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions tools/scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ Get-ChildItem $Path -Filter *.csproj -Recurse | ForEach-Object {

dotnet publish $projFile.FullName -c $configuration --self-contained false --no-build `
-r $runtimeId /p:TargetLatestRuntimePatch=true `
/p:RuntimeIdentifiers= `
/p:ContainerBaseImage=$baseImage `
/p:ContainerRepository=$($fullName) `
/p:ContainerImageTag=$($fullTag) `
Expand Down

0 comments on commit 53895c3

Please sign in to comment.