Hi @Hmm,
Welcome to Microsoft Q&A!
Does it occur in specific project or all C# Console App?
Please make sure that you open a project, not just a .cs file.
If you have multiple projects in the solution, please go to Solution Explorer > right-click on project node > Set as Startup Project.
Meanwhile, please check your System Environment variables and ensure that the Path to dotnet: C:\Program Files\dotnet, not C:\Porgram Files (x86)\dotnet.
If it persists, please share us some screenshots in order to investigate it further.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.