Skip to content
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

Documentation is asking to pull a .NET 8.0 Image for a .NET 9.0 target sample app. #5919

Closed
RickyNotaro opened this issue Sep 26, 2024 · 1 comment · Fixed by #5923
Closed

Comments

@RickyNotaro
Copy link

RickyNotaro commented Sep 26, 2024

Documentation outdated since #5882

Describe the Bug

Since #5882, the dotnet sample app is targeting dotnet 9. The documention in https://github.com/dotnet/dotnet-docker/blob/main/samples/build-in-sdk-container.md is guiding the user to use the dotnet/sdk:8.0 image.

Following the documentation gives an error : /usr/share/dotnet/sdk/8.0.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(166,5): 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. Download the .NET SDK from https://aka.ms/dotnet/download [/app/dotnetapp.csproj]

Steps to Reproduce

cd samples/dotnetapp/
docker pull mcr.microsoft.com/dotnet/sdk:8.0
docker run --rm -v ${pwd}:/app -w /app mcr.microsoft.com/dotnet/sdk:8.0 dotnet publish -c Release -o out -r win-x64 --self-contained false
[ERROR NETSDK1045]

Other Information

Issue is not happening when using sdk:9.0

@github-project-automation github-project-automation bot moved this to Backlog in .NET Docker Sep 26, 2024
@RickyNotaro RickyNotaro changed the title Documentation outdated since #5882 Documentation is asking to pull a .NET 8.0 Image for a .NET 9.0 target sample app. Sep 26, 2024
@lbussell
Copy link
Contributor

Thanks, this slipped by me in #5858! I'll get it fixed ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
2 participants