使用VS2019在WSL中开发调试.NET Core
安装WSL 1、打开WINDOWS功能,勾选子系统选项 2、打开商店搜索WSL,安装ubuntu 我这里的系统版本是:18.04 如何查看ubuntu系统版本 sudo lsb_release -a 或 cat /etc/issue 3、打开ubuntu,设置账号密码 安装.net core SDK 参考以下链接即可安装: 在Linux Ubuntu 18.04 - x64上安装.NET Core SDK 你可能会遇见的问题 报错: 'universe' distribution component is already enabled for all sources. 解决方案: sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe" 报错参考连接 等待安装完成后,输入 dotnet --info 即可查看安装的SDK情况 配置SSH sudo vim /etc/ssh/sshd_config 找到以下配置: # Authentication: LoginGraceTime 2m PermitRootLogin prohibit-password StrictModes yes PasswordAuthentication no