Docker Community Forums

Share and learn in the Docker community.

Cannot publish a project with assembly reference

Hi there.
I publish a Visual Studio 2019 solution to Docker Hub. While it has no reference to an external .Net assembly, it works Ok. When I add a reference to one residing in different folder, the Build process throws the exception:

warning MSB3245: Could not resolve this reference. Could not locate the assembly “My.Printer”. Check to make sure the assembly exists on disk.

The building command is

RUN dotnet build “MyDockerApp.csproj” -c Release -o /app/build

Should I add this .dll to somewhere? How to solve the problem?
Thanks