None of the solutions above worked for me with a Unity 2021.3 LTS version and VSCode 1.69.2. It was necessary to install the 4.7.1 dev pack for .NET, as mentioned here: [VS Code] Error: The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not foun