-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
.NET 7.0: Arm64 Docker build fails with NullReferenceException for TargetOutputs on restore step #29892
Comments
I'm having the same issue. |
seems like a duplicate of #28971 / NuGet/Home#12227? |
@alexrosenfeld10 The root cause could very well be the same, but note the error messages in those 2 issues are much different than what I'm seeing. Same step in the process, but a very different error. |
Also, here's an update. I just pulled the latest versions of
|
And just to clarify, this issue doesn't repro at all when I use the .NET 6 SDK & images. |
yep I downgraded to |
Adding @richlander who's been doing a lot of docker scenarios similar to this one to take a look. |
Also seeing this intermittently when running .NET 7 builds in QEMU. Logs here: https://gist.github.com/austinlparker/b512198a748f67cf6574b684f2648c52 |
I have also encountered similar problems. I have succeeded several times, but 99% have failed |
@Jesn thanks! |
Hmm I tried adding the |
This article, and .NET 8.0 in general, has helped me greatly!! https://devblogs.microsoft.com/dotnet/improving-multiplatform-container-support/ |
Marking as closed due to improvements in .NET 8.0 container support. |
# [1.4.0](v1.3.0...v1.4.0) (2024-07-10) ### Bug Fixes * add --platform as in dotnet/sdk#29892 ([3c8a582](3c8a582)) * Dockerimage build with .Net 8 (non slim) ([0221910](0221910)) * use .Net 8 for Docker ([5fde58c](5fde58c)) ### Features * Compatible with Unity 2022.3 ([d7c9dc9](d7c9dc9))
I have a project that I'm trying to upgrade from .NET 6.0 -> .NET 7.0. I run this project as a container on a Raspberry Pi, so I run my
docker build
s with--platform arm64
. I don't build on the Pi, but on my Windows 11 machine.Here is a direct link to a branch in my project where I'm attempting to upgrade to .NET 7.0: https://github.com/DrEsteban/SolarGateway_PrometheusProxy/tree/net7.0
Repro steps
The following works:
docker build .
The following does not work:
docker build --platform arm64 .
restore
step with:The text was updated successfully, but these errors were encountered: