'Docker errors when trying to publish ASP.NET project

I have an ASP.NET project (NET6) and I removed Docker support by:

  1. Deleting the 'targets' file
  2. Deleting the 'docker' file
  3. Removing 'Docker' settings from the 'launchsettings.json' file

When I try to publish the project I get the following errors:

Visual Studio container tools require Docker Desktop. To get it, see https://go.microsoft.com/fwlink/?linkid=847268

The "KillAppInsideContainer" task failed unexpectedly.

I've installed Docker Desktop for Windows and I still get these errors when publishing:

The "KillAppInsideContainer" task failed unexpectedly.

Method not found: 'Void Microsoft.VisualStudio.Containers.Tools.Shared.Functions.AzureFunctionsFeedDataProvider..ctor(Microsoft.VisualStudio.Containers.Tools.Common.Services.Logging.ILoggingService)'.

Am I missing other settings / places where Docker is still referenced?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source