Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote deploy/debug Visual Studio 2017 .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.

How can I get VS to launch this on the remote machine then attach debugger?

like image 581
Mardoxx Avatar asked Mar 23 '17 12:03

Mardoxx


1 Answers

  1. 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.
  2. Run the "Visual Studio 2017 Remote Debugger" application you just installed
  3. The app will show you the servername and port in the main window; something like 'COMPUTERNAME:4022'
  4. 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.
  5. 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.
  6. 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).
like image 122
Jim Avatar answered Sep 23 '22 09:09

Jim