diff --git a/src/cartservice/src/Directory.Build.props b/src/cartservice/src/Directory.Build.props
index b08c3e02c0..f28c085e01 100644
--- a/src/cartservice/src/Directory.Build.props
+++ b/src/cartservice/src/Directory.Build.props
@@ -1,5 +1,5 @@
-
+
diff --git a/src/cartservice/src/Dockerfile b/src/cartservice/src/Dockerfile
index e2a12e7e78..50f1998f3c 100644
--- a/src/cartservice/src/Dockerfile
+++ b/src/cartservice/src/Dockerfile
@@ -15,7 +15,7 @@
# limitations under the License.
# https://mcr.microsoft.com/v2/dotnet/sdk/tags/list
-FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0.302 AS builder
+FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0.401 AS builder
ARG TARGETARCH
WORKDIR /usr/src/app/
@@ -30,7 +30,7 @@ RUN dotnet publish ./src/cartservice.csproj -v d -r linux-musl-$TARGETARCH --no-
# -----------------------------------------------------------------------------
# https://mcr.microsoft.com/v2/dotnet/runtime-deps/tags/list
-FROM mcr.microsoft.com/dotnet/runtime-deps:8.0.6-alpine3.20
+FROM mcr.microsoft.com/dotnet/runtime-deps:8.0.8-alpine3.20
WORKDIR /usr/src/app/
COPY --from=builder /cartservice/ ./
diff --git a/src/cartservice/src/cartservice.csproj b/src/cartservice/src/cartservice.csproj
index ea7705e133..c297580fb4 100644
--- a/src/cartservice/src/cartservice.csproj
+++ b/src/cartservice/src/cartservice.csproj
@@ -15,8 +15,8 @@
-
-
+
+
@@ -25,12 +25,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/cartservice/tests/cartservice.tests.csproj b/src/cartservice/tests/cartservice.tests.csproj
index 4c7a083d85..0e05a5dded 100644
--- a/src/cartservice/tests/cartservice.tests.csproj
+++ b/src/cartservice/tests/cartservice.tests.csproj
@@ -5,11 +5,11 @@
-
-
-
-
-
+
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive