The project location for WSL will show the absolute path starting with \\wsl$ to the WSL file system. In the Select Base Directory dialog, you can click the New Folder button ( ) to create a folder for a project. On the welcome screen, click New Project.Ĭlick the Browse button and navigate to the directory in WSL where you want to create a new project. You cannot use the Windows Go SDK for your WSL projects, ensure to select Go SDK that is installed in WSL. Install the needed Go version to the WSL environment. Create a new project in the WSL file system You can create a project and store it in the WSL environment, open one from the WSL file system, and develop your projects further in WSL. Open Windows PowerShell as Administrator and run In this case, you need to do the following: Upon the first launch, the system may prompt you to enable the Windows optional feature. In this case, you need to update your WSL distribution. Note that GoLand does not support legacy WSL, which you may have installed before upgrading your system to the build 16299.15 or later of Windows 10. Follow these instructions to switch the distributive. To work with WSL 2, your Windows version should be 10 build 18917 or later. See the official guide Install the Windows Subsystem for Linux for instructions. Configure WSLĭownload and install a WSL distribution (for instance, Ubuntu) from Microsoft Store.įor this step, be sure to use at least Windows 10 or later with the latest “Fall Creators Update” (minimum version 1709, build 16299.15). Currently, it supports several Linux distributions, such as Ubuntu, OpenSUSE, and SLES. WSL ( WSL 2) - Windows Subsystem for Linux - is a compatibility layer for running Linux binary executables natively on Windows 10.
0 Comments
Leave a Reply. |