I am not sure what happened, but the problem seems to have resolved itself. I can debug the app.
Hanging on installing a missing framework
This morning I started a new UWP project to test something. This is a very simple project. I have a textbox, button and textblock. That's it. I've added MVVMLight to it. I built it next. That worked fine. Then I've tried to debug it. That's where it hangs, for 15 minutes and more with this message in VS 2019's Output window:
"Creating a new clean layout...
Copying files: Total 7 mb to layout...
Checking whether required frameworks are installed...
Framework: Microsoft.NET.CoreFramework.Debug.2.2/X86, app package version 2.2.28529.0 is not currently installed.
Installing missing frameworks..."
Clearly installing Microsoft.NET.CoreFramework.Debug.2.2/X86 is hanging. What's the issue? Why is it doing this?