Visual Studio 2022 - how to do Window cross-compiling

Ed Llewellyn 40 Reputation points

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,096 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 20,411 Reputation points Microsoft Vendor

    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



    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