Remote deploy/debug Visual Studio 2017 .NET Core(远程部署/调试 Visual Studio 2017 .NET Core)
问题描述
如何在 VS2017 中使用针对 net framework 的 net core 应用程序设置远程部署 + 调试?
How can I set up remote deploy + debugging in VS2017 using a net core app which targets net framework?
我已在我的目标设备上安装并运行远程工具.我可以连接到它并调试远程应用程序.
I have the remote tools installed and working on my target device. I can connect to it and debug remote applications.
我有一个构建配置集,用于将我的应用程序构建到目标机器上的远程共享.
I have a build configuration set to build my application to a remote share on my target machine.
如何让 VS 在远程机器上启动它然后附加调试器?
How can I get VS to launch this on the remote machine then attach debugger?
推荐答案
- 在您的远程计算机上,转到 https://visualstudio.microsoft.com/en/downloads/#remote-tools-for-visual-studio-2017 下载并安装远程调试工具.
- 运行刚刚安装的Visual Studio 2017 Remote Debugger"应用程序
- 应用程序将在主窗口中显示服务器名称和端口;类似'COMPUTERNAME:4022'
- 在开发机器上的 Visual Studio 中,选择远程机器"作为运行目标.这应该会弹出一个对话框来输入远程机器信息.
- 如果您在自动检测"下看到您的机器,请选择它.如果没有,请使用您在手册部分第 3 步中找到的服务器名称和端口.
- 您应该能够在选择远程机器"的情况下点击播放",它会将应用程序部署到远程机器并允许您进行调试(它可能会要求远程机器的用户名和密码).李>
- On your remote machine, go to https://visualstudio.microsoft.com/en/downloads/#remote-tools-for-visual-studio-2017 to download and install the remote debugging tools.
- Run the "Visual Studio 2017 Remote Debugger" application you just installed
- The app will show you the servername and port in the main window; something like 'COMPUTERNAME:4022'
- In Visual Studio on your development machine, choose "Remote Machine" as the run target. This should bring up a dialog box to enter in the remote machine information.
- If you see your machine listed under "Auto Detected", select it. If not, use the servername and port you found in step 3 in the manual section.
- You should be able to "hit play" with "Remote Machine" selected and it will deploy the app to the remote machine and allow you to debug (it may ask for a username and password to the remote machine).
这篇关于远程部署/调试 Visual Studio 2017 .NET Core的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:远程部署/调试 Visual Studio 2017 .NET Core


基础教程推荐
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01