Reputation: 1614
After adding docker support I have expected visual studio to download the latest versions of said azure container tools and automatically implement them so I could start docker simply by selecting "Docker" from the launch drop-down menu.
Visual studio didn't download the latest version of said NuGet package.
Upvotes: 2
Views: 4253
Reputation: 53
Visual Studio tries to restore packages in the project from the sources that are specifiedin Tools > Nuget Package Manager > Package Manager Settings. In this case the package Microsoft.VisualStudio.Azure.Containers.Tools.Targets specified as a dependency wasn't available in any of the sources configured (possibly none). To resolve this, add nuget.org as a source with URL https://api.nuget.org/v3/index.json (see instructions in Microsoft's documentation for configuring package sources). Then VS will be able to find and restore it.
Upvotes: 3
Reputation: 5294
Try installing Microsoft.VisualStudio.Azure.Containers.Tools.Targets" version v1.4.4 which is the latest target file to enable the visual studio tools for containers.
You can download it from here
https://www.nuget.org/packages/Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.4.4
It worked for me with 1.4.4.
See if it helps.
Upvotes: 3