[英]Visual Studio Doesn't List WSL as Platform Toolset
I'm following this tutorial .我正在关注本教程。 Everything seems to be fine (linux subsystem is setup fine, I think), but WSL is not showing up as a platform toolset for compilation for C/C++ projects.
一切似乎都很好(我认为 linux 子系统的设置很好),但是 WSL 并没有作为用于编译 C/C++ 项目的平台工具集出现。
Using visual studio 16.9.5使用视觉工作室 16.9.5
You can check these steps, which can make me find windows subsystem for linux in visual studio:您可以检查这些步骤,这可以让我在 Visual Studio 中找到 linux 的 windows 子系统:
Enable subsystem:启用子系统:
Enable windows subsystem for windows为 windows 启用 windows 子系统
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Restart machine重启机器
download and install linux app下载并安装 linux 应用程序
Configure linux environment:配置linux环境:
sudo apt-get update
sudo apt install g++ gdb make rsync zip
sudo apt-get install openssh-client
sudo apt-get install nano
sudo service ssh restart
Configure visual studio:配置视觉工作室:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.