Errors running hello app from getting-started

I actually found a solution after reading this thread:

It was a problem with having both VS 2022 and 2019 installed. Removing 2022 and reinstalling everything solved it.