My experience has been the same. Instead of getting run, I see attach in VS. I created a project, but it says Microsoft SDK not found, and the projects were showing 0. I tried changing the environment variables but nothing worked, tried installing Microsoft sdk, didn't work. However, I found that one solution worked for me.
Navigate to the file explorer > this PC > windows (C:) > Program files > dotnet, and try to locate the SDk folder here
Now go back, select program files (x86) > dotnet (check if you have a sdk folder here). If you don't find SDK folder here, Copy the complete SDK folder from Program file's dotnet and paste it in Program files (x86)'s dotnet folder.Then launch VS and create a new project. It worked for me. Hope this helps.