You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run docker build -t myapp . I get the error:
error NETSDK1045: The current .NET SDK does not support targeting .NET 9.0. Either target .NET 8.0 or lower, or use a version of the .NET SDK that supports .NET 9.0.
If I list the installed sdk's with dotnet --list-sdks I get:
9.0.100 [/usr/lib/dotnet/sdk]
What am I missing?
Andy
The text was updated successfully, but these errors were encountered:
Side note: recent version of the SDK have build-pack-like capabilities (if not using that tool itself), so you probably don't need to write/maintain the dockerfile yourself. Unless you're doing something unusual, you probably want to do that instead.
I have created a WebAPI on a Linux machine using:
I wish to host this API in a docker container so I have followed the instructions here: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/docker/building-net-docker-images?view=aspnetcore-9.0
When I run
docker build -t myapp .
I get the error:If I list the installed sdk's with dotnet --list-sdks I get:
What am I missing?
Andy
The text was updated successfully, but these errors were encountered: