Simple BLAZOR app causing error with DOCKER

0

I have a created a very, very simple BLAZOR app for testing purposes. Its Visual Studio 2022 with .Net9.0. With ADD> “Docker support” I let Visual Studio 2022 create the DOCKER file. When I try to run it, I get: “The project doesn’t know how to run the profile with name 'Container [Dockerfile] and command ‘Docker’”. My first guess was that DOCKER extension is not added. Hence I went to EXTENSIONS > BROWSE and searched DOCKER. This resulted in some “random” results like “Captain Docker”, which I installed. The result is the same though. I had DOCKER Desktop running while I was doing all these. In Windows 10, I have WSL2. Please help.

Helping would require someone using Visual Studio. While I always hope someone here will eventually help with any Docker related question, you could have a better chance asking the Microsoft Community or Visual Studuo Community directly.

Searching for the error message I can share two results: