Essay record
Windows Subsystem for Linux: Run Windows DotNet Core install from WSL
- Record
- Essay / / 1 min read / 90 words
On this page2 sections / +
DISCLOSURE: Some links may be affiliate links. Details
Problem
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?
Solution
To run Windows tools from WSL, use [binaryName].exe syntax (see: https://docs.microsoft.com/en-us/windows/wsl/interop).
So for the command dotnet via Windows command line, you can run it in WSL with dotnet.exe