Skip to content

Fix the Docker build: copy the ACE.Adapter.Tests project before restore - #4559

Merged
Mag-nus merged 1 commit into
ACEmulator:masterfrom
Mag-nus:fix-docker-adapter-tests
Nov 25, 2026
Merged

Mag-nus merged 1 commit into
ACEmulator:masterfrom
Mag-nus:fix-docker-adapter-tests

Conversation

@Mag-nus

@Mag-nus Mag-nus commented Nov 25, 2026

Copy link
Copy Markdown
Member

Summary

The docker build workflow has failed on every push to master since #4551.

#4551 added ACE.Adapter.Tests to ACE.sln. The Dockerfile restores in a separate layer: it copies the solution file and each project's .csproj one by one, then runs dotnet restore against the solution. The new test project's .csproj was not added to that list. The restore therefore fails because the solution refers to a project file that isn't there:

error MSB3202: The project file ".../ACE.Adapter.Tests/ACE.Adapter.Tests.csproj" was not found.

In the workflow log this shows up as process "/bin/sh -c dotnet restore -a $TARGETARCH" did not complete successfully: exit code: 1.

This PR adds the missing line, in alphabetical order with the others:

COPY ./Source/ACE.Adapter.Tests/*.csproj ./ACE.Adapter.Tests/

Testing

I reproduced the restore step outside Docker by copying exactly the files the Dockerfile copies (ACE.sln and the nine listed .csproj files) into an empty folder and running dotnet restore:

  • Without the new line, the restore fails with the MSB3202 error above.
  • With ACE.Adapter.Tests.csproj added, the restore succeeds.

I have not run a full docker build.

Note for future test projects

Any new project added to ACE.sln also needs a COPY line in the Dockerfile's restore layer.

🤖 Generated with Claude Code

@Mag-nus
Mag-nus merged commit c1aedff into ACEmulator:master Nov 25, 2026
2 checks passed
@Mag-nus
Mag-nus deleted the fix-docker-adapter-tests branch November 25, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant