Can't open UE5 demo - "The required library hostfxr.dll could not be found"

I’m not sure if this helps but there is some C# code in the Visual studio code (projectname).Target.cs, (projectname)Editor.Target.cs, ETC. So this is most likely the requirement for the .net framework.