Remote deploy/debug Visual Studio 2017 .NET Core

前端 未结 3 1308
悲&欢浪女
悲&欢浪女 2020-12-25 11:22

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 dev

相关标签:
3条回答
  • 2020-12-25 12:11
    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).
    0 讨论(0)
  • 2020-12-25 12:15

    Head to this page: https://www.visualstudio.com/downloads/

    Find the Tools for Visual Studio 2017 section downloads and download the Remote Tools for Visual Studio 2017 version for your server

    After installation completes, launch Visual Studio 2017 Remote Debugger and configure port for it, you also need to configure your endpoints to your server.

    Next step, go to your computer(Visual Studio 2017), On Debug Menu, click to attach the debugger to process. Enter your server and port (server.com:port) and refresh the list of process, it will require user and password, mark Show process from all users. Find w3wp.exe and attach to it.

    More Complete information: https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging

    0 讨论(0)
  • 2020-12-25 12:22

    New download-links (VS 2017 download no longer available on visualstudio.com):

    Overview of all VS downloads: https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging?view=vs-2019

    Direct download of VS 2017 Remote Tool (require MS login): https://my.visualstudio.com/Downloads?q=remote%20tools%20visual%20studio%202017

    0 讨论(0)
提交回复
热议问题