Running WSL Programs in Windows
Following my previous article on WSL,
https://medium.com/@mykeels/on-figuring-out-wsl-105e2de56192
I have just installed dotnet in WSL, and need it to be used on Windows via Command Prompt and PowerShell, without installing a fresh copy. Here’s a guide …
Create a folder such as
C:\tools, to keep your shell scripts.Add that folder to your PATH environment variable
- Create a
dotnet.batscript inC:\toolswith this content:
@echo off
bash -c 'dotnet %*'
- Now, open Command Prompt, and enter
dotnet
- Enjoy!