Windows Subsystem for Linux: Run Windows DotNet Core install from WSL

Date: 2019-03-26 | wsl | windows | linux | cli | dotnet


I installed .NET Core for Windows but am primarily using Windows Subsystem for Linux for development. It's annoying to have to have two different command lines open (one for Linux commands via WSL and one for Windows commands) just so I can run everything on my machine. How can I run the .NET Core Windows install from WSL?


To run Windows tools from WSL, use [binaryName].exe syntax (see:

So for the command dotnet via Windows command line, you can run it in WSL with dotnet.exe