r/unity • u/Question_Business • Sep 19 '25
Coding Help Help!!!! needed, stuck with this OmniSharp error im facing

hey guys, i was doing my project as daily and in the morning it was working fine but when i opened evening i faced with this error, im still searching for a solution and i just stuck at sqaure 1. There are the solutions I tried but not working
1.) deleted obj, temp, lib, log files: these worked at start but when i try to edit the code, the same error started displaying again.
2.) downloaded SDK packs: since my unity is 2021 version, i tried downloading .NET 4.7.1, 4.7.2 and 4.8 SDK developer packs and tried restarting unity, but not working.
3.) Used Visual Studio: i tried changing the external script editor to visual studio and tried to regenerate all the missing .cs files but that was also not working.
Guys, i stuck at this problem for more than 3 hours please help me to retrive my game, im losing hope.
Any suggestion is appreciated and thanks in advance. Please reply ASAP
2
u/King_Kuba Sep 23 '25
I have EXACTLY the same issue, obj debug net10.0 generating these files with errors. No idea how to solve it other than removing obj for the time being. Please answer this comment again once you solved this how to solve this
1
u/Straight_Rub_7681 Sep 21 '25
Yo bro I think in some of your scripts you wrote a variable or a method outside a class Make sure everything that doesn't have "using ****" such as using UnityEngine is inside a class