I'm trying to get VSCode working with my Unity projects, and every time I select the Project icon (the little fire at the bottom) I get the following error:
Error: Failed to connect to OmniSharp
Is anyone else getting this?
Click f1 key or ctrl+shift+p to open the textbox to enter your command. Then type omnisharp server, and select the option 'Restart omnisharp server'. You can look at its status in the bottom left corner of the window, and if you click on it, the process's status will on be displayed on the terminal.
OmniSharp is a set of tooling, editor integrations and libraries that together create an ecosystem that allows you to have a great programming experience no matter what your editor and operating system of choice may be.
" In the extensions panel; select the C# extension, click on the cog icon, and then select 'Extension Settings'. This will open up an new window and you want to scroll down the list until you find “Omnisharp: Use Global Mono”. Then, change the dropdown to “always” and click on Restart Omnisharp from the popup window."
You need to download the most recent version of "mono". Open up terminal and pass in brew install mono
. Then "Pick a project" and select the ..-csharp.sln file and you should be up and running.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With