Even the VSCode terminal is connected to the WSL: #INSTALL VISUAL STUDIO CODE IN UBUNTU 18.04 INSTALL#This also means you might need to install VSCode Extensions again in the WSL, even if you already installed it on your machine. IntelliSense, code analysis, and all the good stuff act inside the WSL. Your local VSCode instance is a terminal session into the WSL. You really work, code, and debug inside the WSL. When you connect the first time, it installs the VSCode Server inside the WSL, which is the actual VSCode instance that does the actual work. If you now open a folder, you can directly select the project folder from inside the WSL:Ĭlick OK or press Enter, if you selected the right folder. This opens a new instance of VSCode that doesn't have a folder open. Right-click the Ubuntu-18.08 item and connect, or click the small connect icon on the right of the WSL item to connect to the WSL. It directly shows you the existing WSL Target on your computer: This extension will be visible in the Remote Explorer in VS Code. To remotely develop in the WSL using VSCode, you need to have the Remote - WSL extension installed Let's see how you can use your local VSCode to develop inside the WSL Developing inside WSL using Visual Studio Code That's it about creating and running an application inside the WSL. The request gets directly forwarded into the WSL: The cool thing now is that you can call the running web with your local browser. You can now see the familiar output in your terminal: This doesn't really differ from creating a project on Windows, except it is on the Linux file system.Ĭreate a Razor Pages project using the dotnet CLI dotnet new webapp -o wsldemo -n wsldemoĪfter changing into the project directory you can start it using the following command dotnet run Now let's create a project Creating a ASP.NET Core project inside the WSL If this is done, you can prove the installation by typing dotnet -info into the terminal: Sudo apt-get install -y apt-transport-https
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |