使用?Visual?Studio?2022?開發(fā)?Linux?C++?應(yīng)用程序的過程詳解
使用 Visual Studio 2022 開發(fā) Linux C++ 應(yīng)用程序 使用 Visual Studio 2022 with WSL2 !
Visual Studio 2022 引入了用于 Linux C++ 開發(fā)的本機(jī) WSL2 工具集,可以構(gòu)建和調(diào)試 Linux C++ 代碼,并提供了非常好的 Linux 文件系統(tǒng)性能、GUI 支持和完整的系統(tǒng)調(diào)用兼容性。
CMake 是對使用 Visual Studio 2022 的 C++ 跨平臺應(yīng)用開發(fā)的推薦,因?yàn)樗试S在 Windows、WSL 和遠(yuǎn)程系統(tǒng)上構(gòu)建和調(diào)試相同的項(xiàng)目。
Visual Studio 2022 的 MSBuild Linux C++ 應(yīng)用項(xiàng)目,應(yīng)該在 Property Pages > General > Platform Toolset 中選擇 WSL2 Toolset :




詳見:
- Build and Debug C++ with WSL 2 Distributions and Visual Studio 2022 - C++ Team Blog (microsoft.com)
- Building cross platform apps with C++ in Visual Studio 2022 | Visual Studio 2022 Launch Event | Channel 9 (msdn.com)
- CMake projects in Visual Studio | Microsoft Docs
- Walkthrough: Build and Debug C++ with Microsoft Windows Subsystem for Linux 2 (WSL 2) and Visual Studio 2022 | Microsoft Docs
- Linux development with C++ | Microsoft Docs
- Create a CMake Linux project in Visual Studio | Microsoft Docs
- Create a Linux MSBuild C++ project in Visual Studio | Microsoft Docs
知識點(diǎn)補(bǔ)充:
Visual Studio 2022(VS2022)激活密鑰 激活碼 vs2022下載地址
下載
腳本之家下載:http://chabaoo.cn/softs/779461.html
激活
Visual Studio 2022(VS2022)激活密鑰
Visual Studio 2022(VS2022) 激活碼:
Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Enterprise:
VHF9H-NXBBB-638P6-6JHCY-88JWH
漢化注釋
到此這篇關(guān)于使用?Visual?Studio?2022?開發(fā)?Linux?C++?應(yīng)用程序的文章就介紹到這了,更多相關(guān)Visual?Studio?2022開發(fā)C++?程序內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Windows網(wǎng)絡(luò)編程之winsock實(shí)現(xiàn)文件傳輸示例
這篇文章主要介紹了Windows網(wǎng)絡(luò)編程之winsock實(shí)現(xiàn)文件傳輸示例,對于學(xué)習(xí)Windows網(wǎng)絡(luò)程序設(shè)計(jì)來說具有很好的學(xué)習(xí)借鑒價(jià)值,需要的朋友可以參考下2014-08-08
Recommended C Style and Coding Standards中文翻譯版
本文翻譯自Recommended C Style and Coding Standards(C語言編碼風(fēng)格和標(biāo)準(zhǔn)),需要的朋友可以參考下2014-04-04
C++ 中重載和運(yùn)算符重載加號實(shí)現(xiàn)矩陣相加實(shí)例代碼
這篇文章主要介紹了C++ 中重載和運(yùn)算符重載加號實(shí)現(xiàn)矩陣相加實(shí)例代碼的相關(guān)資料,需要的朋友可以參考下2017-03-03

