admin管理员组文章数量:1131224
I’m trying to run my Visual Studio project in a container (dockerfile), but I'm getting the following error:
2>C\Users\user\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.21.0\build\Container.targets(217,5): error MSB4018: The "ContainerBuildAndLaunch" task failed unexpectedly.
2>C\Users\user\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.21.0\build\Container.targets(217,5): error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Win32.Registry, Version=5.0.0.0, Culture=neutral, PublicKeyToken={token}' or one of its dependencies. The system cannot find the file specified.
2>C\Users\user\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.21.0\build\Container.targets(217,5): error MSB4018: File name: 'Microsoft.Win32.Registry, Version=5.0.0.0, Culture=neutral, PublicKeyToken={token}'
2>C\Users\user\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.21.0\build\Container.targets(217,5): error MSB4018: at Microsoft.VisualStudio.Containers.Tools.Common.Client.DockerPathHelper.FindDockerCliPath()
2>C\Users\user\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.21.0\build\Container.targets(217,5): error MSB4018: at Microsoft.VisualStudio.Containers.Tools.Common.Prerequisites.DockerForWindowsDriveSharingPrerequisite.<EvaluateAsync>d__0.MoveNext()
I have tried:
- Updating Visual Studio
- Clearing then restoring all nuget packages
- Reinstalling Docker Desktop
本文标签: dockerfileMissing MicrosoftWin32RegistryStack Overflow
版权声明:本文标题:dockerfile - Missing Microsoft.Win32.Registry - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736717618a1949286.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论