sample app is .net 7 using provided command
Is this a docs issue?
- [X] My issue is about the documentation content or website
Type of issue
Information is incorrect
Description
the docs have us create a sample app using: dotnet new webapp -n myWebApp -o src --no-https
for me, this created a .net7 web app. This caused issues when attempting to build the image. the command: docker build --tag dotnet-docker .
was failing. Changing the app to use .net6 resolved the issue.
Location
https://docs.docker.com/language/dotnet/build-images/
Suggestion
I would suggest appending "-f net6.0" so that the command to create the sample app uses a supported framework. e.g.: dotnet new webapp -n myWebApp -o src --no-https -f net6.0
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
/lifecycle locked