I'm using:
- Windows 10 Professional
- VS Code WSL:Ubuntu v1.39.2
- Omnisharp C# Extension v1.21.5
Problem
When I look at the Omnisharp logs after installing I get the following error:
Starting OmniSharp server at 11/4/2019, 8:14:40 PM
Target: /c/Users/path/to/my/solution.sln
[ERROR] Error: spawn /home/wsl-user/.vscode-server/extensions/ms-vscode.csharp-1.21.5/.omnisharp/1.34.5/run ENOENT
I've googled around and can see that this error is usually caused by not having C:\Windows\System32\
on your system path. However, I've made sure that is present and have restarted VS Code along with uninstalling and installing the extension numerous times, to no avail.
Some of the issues I've seen and tried:
https://github.com/OmniSharp/omnisharp-vscode/issues/2525
https://github.com/OmniSharp/omnisharp-vscode/issues/32
Any suggestions would be welcome