Add MSBuildSDKsPath=/path/to/dotnet/sdk
to your user environment, like this GitHub issue says.
A bit obnoxious when things don’t work right out of the box, but after adding this, the steps in https://code.visualstudio.com/docs/languages/dotnet work again.