Giter Site home page Giter Site logo

damiansuess / learn.wsl2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 983 KB

Sample education apps using WSL2 technology

Home Page: https://suesslabs.com

C# 95.30% Dockerfile 3.96% JavaScript 0.73%
csharp wsl wsl2 xeno-innovations suesslabs uno-platform net5

learn.wsl2's Introduction

WSL2 Debugging with Visual Studio

Is now included in Visual Studio 2019

Previously, you had to download the extension which was in "preview" only. The link is provided as a reference to the documentation.

Prerequisites

First things first, you must be running at least VS 2019 (latest update) and enable WSL 2 on your Windows 10 box.

Install Linux Distro

Next, be sure to install a Linux distro from the Microsoft store.

  1. WSL 2 distribution
    • Download your favorite distro.
    • I've only tested with Ubuntu 20.04 LTS (~450 MB).
  2. After downloading, launch the distro
  3. Configure your Username and Password.

Prerequisites for Distros

  1. Install .NET on your WSL distro via,.NET Core runtime
  2. Curl

Configure WSL 2

Sample Profile

"WSL 2": {
  "commandName": "WSL2",
  "launchBrowser": true,
  "launchUrl": "https://localhost:5001",
  "environmentVariables": {
    "ASPNETCORE_URLS": "https://localhost:5001;http://localhost:5000",
    "ASPNETCORE_ENVIRONMENT": "Development"
  },
  "distributionName": ""
}

Supported Launch Profiles

Setting Use Default
commandName Must be WSL2 WSL2
distributionName Name of the distribution to run in, or "" to use the default distribution. ""
executablePath Path to run dotnet
commandLineArgs Arguments to pass to executablePath The projects output assembly.
workingDirectory The directory in which to start executablePath For ASP.NET Core web apps, the project folder; for .NET Core console Apps, the output folder.
environmentVariables List of environment variables to set for executablePath. null
launchBrowser Whether or not to launch a browser. false
launchUrl Url to use for launching a browser. null

learn.wsl2's People

Contributors

damiansuess avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.