docs icon indicating copy to clipboard operation
docs copied to clipboard

sample app is .net 7 using provided command

Open aintJoshinya opened this issue 3 years ago • 1 comments

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

aintJoshinya avatar Aug 16 '23 19:08 aintJoshinya

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

docker-robot avatar Nov 08 '23 03:11 docker-robot