Visual Studio 2019 error while adding Docker file support

Vinay Pandey 16 Reputation points
2021-03-16T06:12:25.797+00:00

I am getting the following error while adding Windows-based Docker support to my WPF application > An error occurred while adding Docker File support to this project > Value cannot be null > Parameter name: netCoreVersion I have ensured that Docker-Desktop is switched to Windows containers and I am able to successfully run a dotnet image. I am wondering what could be the problem, any help will be greatly appreciated. Here is attached screenshot ![78035-image.png][1] [1]: /api/attachments/78035-image.png?platform=QnA

Developer technologies .NET Other
{count} votes

1 answer

Sort by: Most helpful
  1. Yogi 351 Reputation points
    2021-05-09T06:46:37.943+00:00

    Try checking if you can run the docker command docker version on the command prompt which should show you the docker version. Also check if WSL 2 is correctly installed. Check - Create first ASP.NET Core App in a Docker Container

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.