VisualUEFI doesn't work for me, I got the same error about "Cannot open....". So, I used the 'long way' (EDK2 route). Just it's needed to follow several instructions and install some additional tools (Python, ASL, and nasm) besides Visual Studio Build Tools. Have a look please:
Tianocore website. Contribute to tianocore/tianocore.github.io development by creating an account on GitHub.
github.com
Tianocore website. Contribute to tianocore/tianocore.github.io development by creating an account on GitHub.
github.com
Also, some changes in EDK configs are required depending on your environment, OS, etc.
When all be done, run edksetup.bat Rebuild -> edksetup -> build in the ed2 directory.
Regarding freezes.
Keep in mind please the difference in CPUs. You need to check all settings in the PowerMonkey config. For example,
pk->ForcedRatioForAllCoreCounts = 51; For me, it works with 51, but it looks potentially strong (as many other options). So, I used pk->ForcedRatioForAllCoreCounts = 0.
xps 9500 gives the great ability to set up own UEFI loader entry in the BIOS. I just placed PowerMonkey.efi next to bootx64.efi