c# remote development from windows visual studio like c++ linux console?

mwx 41 Reputation points
2020-11-26T19:39:57.99+00:00

Is there a way in existing VS2019 to have a dotnet c# project be compiled and debugged on a linux host from a project template in Windows like the template for " c++ linux console"? Project on windows, sources and build copied to linux directory and built there with local dotnet core?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,235 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
938 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,266 Reputation points Microsoft Vendor
    2020-11-30T06:36:02.89+00:00

    Hello @mwx ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    For your requirement, I’m afraid, there isn’t a project template which meets your requirement in Visual Studio.

    But, perhaps, you can do it manually(build and deploy the application). Please refer to this document: Debug .NET Core on Linux using SSH by attaching to a process -- Build and deploy the application, and then try to attach the debugger to remote debugging this deployed application in remote machine(a Linux host).

    Besides, I also suggest you directly suggest this feature to Visual Studio Product Team in our Developer Community, and if you do suggest this feature, please share the link here, other forum members, include me, who are interested or needed this feature will go to vote for this thread.

    I hope this could help you a little.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments