My solution was that I had opened one folder too high. Once I opened the correct folder where the solution file and the project were supposed to be opened, I was able to run in VS Code.
Simple to check before trying other solutions.