Lost IntelliSence in Visual Studio on Mac

Running Visual Studio Community 2019 on Mac. The C# scripts has lost connection with Unity somehow: Inside VS I have no IntelliSense, autocomplete and debugger attachment. If I open another Unity project everything works as expected.

Things I’ve tried:

  • Reinstalling the mono framework.
  • Deleting .sln files.
  • Assets > Open C# project.
  • Restarting Unity, VS and my machine.

Any other ideas? Totally lost.

I somehow fixed this. I think the way I did it was to:

  1. Delete the .sln and .csproj files.
  2. In Unity Assets > Open C# Project.
  3. In Visual Studio switch to Designer view and open the Solution view window.
  4. Right click on the newly created .sln and .csproj files > Refresh.

I spent hours playing around. Hope this helps someone.