4

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?

1 Answer 1

7

I had a reference to this Nuget package:

Microsoft.VisualStudio.Azure.Containers.Tools.Targets

Once removed, publishing works fine.

Sign up to request clarification or add additional context in comments.

1 Comment

But what if you don't want to remove docker support?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.