-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build ASP.NET Core 7 app for Raspberry Pi 4 #46306
Comments
cc @richlander @MichaelSimons Can you please help route this issue? |
I took a look at the images and your CI log. Is there a reason why your CI needs to run in QEMU. .NET doesn't work well in QEMU. That may be why you have all those errors. Stating the obvious: uploading your image to a registry w/all those errors isn't useful. Can you build the image cleanly on raw metal, for both x64 and Arm64? Also, in most cases, you can build .NET images for other architectures w/o using QEMU. |
Thank you for taking a look into my issue, @richlander ! So I've disabled the QEMU step in my GitHub Actions, but the build still fails with exactly the same MSBuild errors |
Can you validate that it all |
|
Does your code build correctly on your local machine (at the same commit)? BTW: No need to use RC2. |
Yes, on my local Win11 machine everything is working smoothly |
The build is still failing on GitHub Actions with:
|
I made another PR for you. A colleague pointed out that my first one wasn't correct. |
Thank you @richlander for spending your precious time with my little project! I really appreciate it. You'll notice that I've closed your PR and here's why: two days ago, I made a little fix in one of my other apps which has exactly the same setting like this one. And know what? I was able build and push it via GitHub Actions and pull and run it on my Raspi - without any issues at all. So I don't know what happened to So once again a big thank you for your help! |
No worries. All good. I really appreciate you reporting the issue. I think our guidance is actually a bit wrong so I'm going to work on that now, so thanks for the insight on that. |
Is there an existing issue for this?
Describe the bug
Hey 👋🏻
I’ve been using the Docker image
mu88/shopandeat:latest
(an ASP.NET Core app) for years on my Raspberry Pi 4. One month ago, I switched to ASP NET Core 7.0 and everything worked smoothly.Last week I made a little fix in the app and created a new version of
mu88/shopandeat:latest
. When trying to pull this image on my Raspi via docker pull mu88/shopandeat:latest, this fails with:Which is strange because when logging into Docker Hub it seems to be okay:

I'm building my app via GitHub Actions:
CI.yml
Release.yml
Dockerfile
So I've opened this issue in the Docker community forum. After some back and forth we discovered that when setting the
platform
parameter fordocker build
tolinux/arm64
orlinux/arm64/v8
,dotnet build
fails with cryptic errors in the .NET compilation part of myDockerfile
:I've attached the GitHub Actions build log.
Expected Behavior
I can build my ASP.NET Core app on GitHub Actions, set the
latest
tag on Docker Hub, pull it onto my Raspberry Pi 4 and successfully start the app.Steps To Reproduce
CI.yml
Exceptions (if any)
The following error occurs when build the Docker image via GitHub Actions with
--platform linux/arm64
:.NET Version
7.0.102
Anything else?
The text was updated successfully, but these errors were encountered: