VS2019发布到Docker,错误提示:
Severity Code Description Project File Line Suppression State
Error CTC1023 The debugger path 'C:\Users\{username}\vsdbg\vs2017u5' for Dockerfile 'E:\projects\VueJS\Api\Dockerfile' is invalid. API C:\Users\{username}\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.10.9\build\Container.targets 198
输出窗口提示:
Info: Using vsdbg version '16.9.20122.2'
Info: Using Runtime ID 'linux-x64'
Info: C:\Users\{username}\vsdbg\vs2017u5 exists, deleting.
New-Object : Exception calling ".ctor" with "1" argument(s): "The operation has timed out."
At C:\Users\{username}\AppData\Local\Temp\GetVsDbg.ps1:76 char:19
+ ... ipArchive = New-Object System.IO.Compression.ZipArchive -ArgumentList ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
原因是由于下载vsdbg调试文件超时,已将文件整理打包到:
https://download.csdn.net/download/ksy/16741342
下载该文件解压到C:\Users\{username}\vsdbg\vs2017u5即可。