Learn MS NET | Can’t run dotnet in Windows Subsystem for Linux (WSL)

Our journey learning how to write .NET

Learn MS NET

  • Join Us on Facebook!
  • Follow Us on Twitter!
  • LinkedIn
  • Subcribe to Our RSS Feed

Can’t run dotnet in Windows Subsystem for Linux (WSL)


Having installed Bash on Ubuntu on your Windows 10 computer, your now looking to create a new application using .NET Core.

You start up a windows command prompt and run the bash command or directly run the Ubuntu command from your Windows menu. Once it is up and running you type in dotnet to create a new project and you receive this.

Annotation 2019-08-12 133450

As you can see from the image it says that command not found, this will not work but the problem isn’t that the command doesn’t exists unless the .NET Core SDK is not installed, but that in linux you need to add the .exe extension to your command. If we type in dotnet.exe we will receive the following instead:

Annotation 2019-08-12 134205

Now that we have figured out how to launch dotnet in WSL we can continue to develop our application using this framework.

Add comment

Loading