Visual Studio 2022 - how to do Window cross-compiling

Ed Llewellyn 40 Reputation points
2023-03-10T21:28:58.1466667+00:00

Visual Studio Code is able to use my cross-compiler to compile my Linux code on Windows, but Visual Studio 2022 doesn't have this option. I have to connect to a Virtual Machine to compile.

Is is possible to use my cross-compiler I already have installed on my Windows machine?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,643 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 25,891 Reputation points Microsoft Vendor
    2023-03-14T03:33:07.9866667+00:00

    Hi @Ed Llewellyn

    Welcome to Microsoft Q&A!

    You can use the Windows Subsystem for Linux (WSL). It lets you run a Linux environment directly on Windows without adding a remote connection. 

    For more details, please refer to: Walkthrough: Build and debug C++ with WSL 2 and Visual Studio 2022

    Sincerely,

    Anna


    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful