I get the message below with a assembly CSHarp (incompatible) in the solution explorer.
If i try to use it anyway, not of the auto stuff “auto fill” (auto fill something like Start function) works.
I get the message below with a assembly CSHarp (incompatible) in the solution explorer.
If i try to use it anyway, not of the auto stuff “auto fill” (auto fill something like Start function) works.
I switch back to an old version of Unity and functions like “OnTriggerEnter2D” does turn blue and it doesnt even try to guess what I am about to type anymore…
Same here, using Unity 2020.1.2f1 & VS 2019 (16.7.2)
Edit: I also double checked I have the Visual Studio Tools for Unity installed via the VS installer application.
Not entirely sure what it was, but closing the project and deleting the Library & .vs folders + the .csproj and .sln files fixed the problem for me.
reviving an old thread - i had same issue. modifying heatblayze approach, i closed the project and VS program, deleted .vs folder only and then reloaded and it worked. I think the problem is when a script is created before VS is installed, it probably creates inconsistencies with the program.
Also, make sure you actually have Unity tools installed for Visual Studio and the above solutions will work.
Tools => Get Tools and Features => Game development with Unity
For issues with Visual Studio, “Regenerate project files” button has always worked for me (so far):
Also, try this: in Visual studio right-click on the solution in Solution Explorer and select “resolve errors”.
Absolutely worked for me thanks man
Thank you so much!!!
Thank you
You’re a LIFESAVER mate
Thank you man!
This is the first time an “error resolver” works for me, thanks!
Thank. You. Hero.
Thanks! that worked
Thanks you !
I LOVE YOU OMG
worked for me thanks man