© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3w ago•
41 replies
gax

Dockerfile build complains about missing resx files, even without any mention of resx files

ridermsbuildadvanced
Building the solution normally even after
dotnet clean
dotnet clean
works perfectly fine, however, when running
docker compose build
docker compose build
I face the following:

11.10 /usr/share/dotnet/sdk/10.0.102/Microsoft.Common.CurrentVersion.targets(3442,5): error MSB3552: Resource file "**/*.resx" cannot be found. [/src/src/Services/People/People.Api/People.Api.csproj]
11.10     29 Warning(s)
11.10     1 Error(s)
11.10 
11.10 Time Elapsed 00:00:10.51
------
[+] build 0/4
Dockerfile:19

--------------------

  17 |     COPY . .

  18 |     WORKDIR "/src/src/Services/People/People.Api"

  19 | >>> RUN dotnet build "./People.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build

  20 |     

  21 |     FROM build AS publish

--------------------

target people: failed to solve: process "/bin/sh -c dotnet build \"./People.Api.csproj\" -c $BUILD_CONFIGURATION -o /app/build" did not complete successfully: exit code: 1
11.10 /usr/share/dotnet/sdk/10.0.102/Microsoft.Common.CurrentVersion.targets(3442,5): error MSB3552: Resource file "**/*.resx" cannot be found. [/src/src/Services/People/People.Api/People.Api.csproj]
11.10     29 Warning(s)
11.10     1 Error(s)
11.10 
11.10 Time Elapsed 00:00:10.51
------
[+] build 0/4
Dockerfile:19

--------------------

  17 |     COPY . .

  18 |     WORKDIR "/src/src/Services/People/People.Api"

  19 | >>> RUN dotnet build "./People.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build

  20 |     

  21 |     FROM build AS publish

--------------------

target people: failed to solve: process "/bin/sh -c dotnet build \"./People.Api.csproj\" -c $BUILD_CONFIGURATION -o /app/build" did not complete successfully: exit code: 1
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Wpf Resx files
C#CC# / help
4y ago
(SOLVED) dotnet publish complains about missing Emscripten
C#CC# / help
16mo ago
❔ About .NET Forms in Resources.resx files, what is the cost of removing PublicKeyToken?
C#CC# / help
3y ago