Joe*_*lty 4 c# deployment .net-core
我正在 Windows 上的 .NET Core 2.1 中编写 ASP.NET Core APP,并在使用后将其部署到服务器上
dotnet publish --configuration Debug -r linux-x64 我无法通过远程调试器连接 SSH
因为:
WARNING: Could not load symbols for 'Common.dll'. '/home/dev/Common.pdb' is a Windows PDB. These are not supported by the cross-platform .NET Core debugger.
为什么会发生?以及我必须如何发布才能远程调试它?
.NET Core 中的所有平台仅支持可移植 PDB。你必须在你的csproj文件中启用它们
<DebugType>portable</DebugType>
Run Code Online (Sandbox Code Playgroud)
您还可以查看文档并关注一些文章,比如这个或这个解释如何使用 SSH 设置这种调试vsdbg
| 归档时间: |
|
| 查看次数: |
1032 次 |
| 最近记录: |