Just had the same issue. Visual Studio 2022 Pro version 17.12.3 Visual Studio Start Debugging complained about dotnet runtime missing. The files are on C:\ not on OneDrive. I opened another solution/repo and this one did start. After changing back to the original solution, the application started.