fix: switch to NuGet package reference for CMS Protobuf (Docker build fix)
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled

- Changed from ProjectReference to PackageReference (v0.0.178)
- Removed COPY libs/ from Dockerfile (no longer needed)
- Docker build context (src/) cannot resolve ../../../CMS path
- NuGet package restored from Nexus registry
This commit is contained in:
masoodafar-web
2026-02-16 01:42:25 +03:30
parent 49017027d0
commit 4fd039b250
2 changed files with 2 additions and 5 deletions
+2 -2
View File
@@ -136,9 +136,9 @@
<!-- This enables direct communication with CMS (no BFF needed) -->
<!-- ============================================================ -->
<!-- Direct reference to CMS Protobuf project -->
<!-- CMS Protobuf NuGet package (used for both local dev and Docker builds) -->
<ItemGroup>
<ProjectReference Include="../../../CMS/src/CMSMicroservice.Protobuf/CMSMicroservice.Protobuf.csproj" />
<PackageReference Include="Foursat.CMSMicroservice.Protobuf" Version="0.0.178" />
</ItemGroup>
<!-- ============================================================ -->
-3
View File
@@ -5,9 +5,6 @@ WORKDIR /src
COPY ["BackOffice/NuGet.config", "NuGet.config"]
COPY ["BackOffice/BackOffice.csproj", "BackOffice/"]
# Copy libs folder with pre-built DLLs (built by build-deps.sh)
COPY ["libs/", "libs/"]
# Restore dependencies
RUN dotnet restore "BackOffice/BackOffice.csproj" --configfile NuGet.config