ERROR: failed to calculate checksum of ref

hra620HOBBY

10 months ago

Hey guys.

I'm facing this error when I try to deply my ASP.NET Core Web API project. My project is in Github.

#11 ERROR: failed to calculate checksum of ref d3b51ea2-3453-4a70-b6b4-bf08cfc4f7d9::etjgqr3a8ow7y78z52tyd46xk: "/src/SiengeAutomation.Infrastructure.Database/SiengeAutomation.Infrastructure.Database.csproj": not found

17 Replies

hra620HOBBY

10 months ago

Dockerfile

Attachments


hra620HOBBY

10 months ago

Settings tab:


hra620HOBBY

10 months ago

railway file

Attachments


hra620HOBBY

10 months ago

Deployment log:


hra620HOBBY

10 months ago

Project structure:


10 months ago

Does the Dockerfile work locally?


hra620HOBBY

10 months ago

Yes!


10 months ago

Perhaps you have something in the .gitignore that shouldn't be?


hra620HOBBY

10 months ago

My .gitignore and .dockerignore files


hra620HOBBY

10 months ago

I created a project to test the deployment and made some updates to the Dockerfile. I successfully completed the copy steps, but I am now encountering a problem with the build command RUN dotnet build. The error is:
CSC : error CS1555: Could not find 'Program' specified for Main method


hra620HOBBY

10 months ago

Dockfile

Attachments


hra620HOBBY

10 months ago

Project structure:


hra620HOBBY

10 months ago

Program.cs file:


hra620HOBBY

10 months ago

Deployment log:



10 months ago

Looks like your structure is a bit unconventional.


hra620HOBBY

10 months ago

What's the correct scructure?

I tried "[solution name]/src/[list of projects]" (recommended for .net projects) and "[solution name]/[list of projects]". None of them worked.


10 months ago

Try setting a root directory in the service settings.