Sponsor: Centralize and search structured application logs to confidently diagnose problems - even faster and easier with Seq 2020. ![]() This helps me save money as I've moved my Podcast site to Linux in Azure and it makes my local development better match my cloud reality. ![]() NET Core apps on Windows and Linux using both VS Code and Visual Studio 2019! I'm using Visual Studio 2019's free Community Edition and it works great. Lrwxrwxrwx 1 71 Jun 23 17:02 broke that line up with the symbolic link -> along 3 lines so it wouldn't wrap on this blog. You can see that there's a symbolic link between my WSL ~/.aspnet folder and my local profile in Windows so that this app shares SSL certs and that the same cert is served with Kestrel on Windows and Kestrel on Linux. How does the SSL cert work if WSL 2's Linux Kestrel web server is serving it? From the vscode side (assuming its installed on windows), simply download the WSL extension and configure it (basically just open up a folder on your WSL 2. You can develop in a Linux-based environment, use Linux-specific toolchains and utilities, and run and debug your Linux-based applications all from the comfort of Windows. You'll also notice that we are running on and that localhost and ports from the Windows point of view maps to localhost and points (via a local tunnel that's transparent) to WSL 2. The Visual Studio Code WSL extension lets you use the Windows Subsystem for Linux (WSL) as your full-time development environment right from VS Code. NET Core, from the Linux/WSL 2 perspective, is loaded out of /usr/share/dotnet/shared but my source remains on my /mnt/d drive (my Windows D:) and debugging Just Works. It "just works" and it makes it super easy to switch between running on Windows (under IIS or the Kestrel web server or under Kestrel under your default Linux distribution.Ĭheck this out, you can see that. Here's the experience in Visual Studio 2019 when the extension is installed. WSL2 terminal does not recognize Visual Studio Code visual-studio-code windows-subsystem-for-linux vscode-remote 16,551 Solution 1 As Biswapriyo mentioned, this is an open bug where WSL cannot access Windows C drive. NET Core console and web apps in WSL2 and debug them directly from Visual Studio 2019! It's the second one that I'm talking about today. NET Core Linux app in WSL2 from Visual Studio on Windows. ![]() I've blogged before about Developing on Docker with the new and improved Visual Studio Container Tools (and WSL2) and also Remote Debugging a.
0 Comments
Leave a Reply. |