❔ omnicharp not working

I'm using vscode to edit my scripts in unity, however vscode's auto compeletion doesn't work. from the google searches I did, omnisharp is causing the problem. as It appears, the newer versions of omnisharp don't really work well with unity. so how can I replace my omnisharp with an older version?
14 Replies
Bin
Bin2y ago
I assume when you say omnisharp, you mean c# addon for Visual Studio Code (powered by OmniSharp) by Microsoft. To install another version of an extension, click on the arrow next to the uninstall button, then install another version. then u will see version list for that extension. I honestly never used vscode (nor updated it) to code c# code since few months back because it was buggy so i moved on to visual studio 2022 and things work flawless
the.mr.skeleton
the.mr.skeletonOP2y ago
thanks :)
Bin
Bin2y ago
u welcome
Angius
Angius2y ago
$vscode
MODiX
MODiX2y ago
1) Install the C# extension 2) 2.a) DO NOT USE OPEN FILE 2.b) Always use Open Folder (from the File menu), and open the folder containing your sln file (or the folder containing the csproj if you have only one csproj) 3) To make the extension start and detect C#, either: 3.a) wait for the prompt that will appear on the bottom right of your screen that ask you if you want it to create some files, and say Yes 3.b) Command Palette (F1 or Ctrl+Shift+P) and type > .Net : Generate Assets for build and run 4) you should see a flame on the Status bar with the Omnisharp logo (see second attached screenshot) 5) it should load to finally say OmniSharp server is running (if not ask for help) https://media.discordapp.net/attachments/569261465463160900/1006652191689429022/unknown.png https://cdn.discordapp.com/attachments/569261465463160900/951015732769079336/unknown.png
Angius
Angius2y ago
I think there was also some tag for setting up VSC with Unity...
Anton
Anton2y ago
it works fine, you just need to install the framework sdk globally (or point it to the unity's one, but I just installed framework). .NET framework 4.7.2 I think and then create the project files
333fred
333fred2y ago
When using unity, you need to turn off modern dotnet
the.mr.skeleton
the.mr.skeletonOP2y ago
how? how?
Anton
Anton2y ago
just install it globally
the.mr.skeleton
the.mr.skeletonOP2y ago
but I aleardy have
333fred
333fred2y ago
The useModernNet setting
333fred
333fred2y ago
https://code.visualstudio.com/docs/other/unity Make sure you follow these instructions
Visual Studio Code and Unity
Visual Studio Code can replace MonoDevelop as the editor for Unity
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server