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

This also worked for me- was having issues zipping a project from UE5. This worked for me.

Thanks! That fixed it!

Dude, you’re amazing. This worked <3

Yes, this worked for me. Thank you sir.

Basically installed UE5, started a new blank project in c++, got that error. I just can’t believe they did not try to install the engine and open a project. Seems like a relatively easy thing to spot and fix in order to prevent a fatal error on something as trivial as starting your first project…

This fixed mine, thanks