Issue related to Debian/Linux OS

Peter_1985 2,666 Reputation points
2024-10-03T07:54:28.1866667+00:00

Hi,

Is it right that we can run/execute VS C++/C# project within Debian/Linux OS?

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,906 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jiachen Li-MSFT 31,166 Reputation points Microsoft Vendor
    2024-10-03T08:08:52.8866667+00:00

    Hi @Peter_1985 ,

    C# .NET Core/5/6+ and cross-platform C++ projects can run natively on Debian/Linux, while older .NET Framework and Windows-specific C++ projects require porting or a compatibility layer like Wine.

    Best Regards.

    Jiachen Li


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 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.


  2. Bruce (SqlWork.com) 64,901 Reputation points
    2024-10-04T16:15:46.4766667+00:00

    Visual studio supports cross platform C/C++ projects. Its uses a Linux compatible cmake file so you can build on Linux with the Linux C/C++ compiler.

    https://video2.skills-academy.com/en-us/cpp/build/get-started-linux-cmake?view=msvc-170

    If you install the Linux tools (WSL) you can build the Linux executable (which will not have a file extension) on your windows box.

    https://video2.skills-academy.com/en-us/windows/wsl/install

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.