Can't package for Windows in UE5 [Unknown Error]

When I try to package my game, after a bit of time it just fails and I get “Unknown Error”

I already got the windows SDK, Visual Studio and all the stuff the youtube videos ask you to install.

The game uses DirectX12, it’s a Topdown 2D game that uses the PaperZD plugin, target hardware is Desktop and graphic quality is in scalable.

I already put a copy of hostfxr.dll on the right folder.

When I build all levels, everything is fine.

Here is the crash log

Thanks for your time :+1:

It look like you are using an old visual studio version 14, try to use a newer version , it should be 17.10.2

I got the newest version

if it still giving the warning that you are using an old version, you will need to target the correct toolchain(visual studio 2022) from the editor setting or delete the old version.

double check all your sdks as well like msvc:

Got it Screenshot by Lightshot
Screenshot by Lightshot

Still gives the error

do you have multiple VisualStudio versions installed?

Nope, didn’t even have it installed before trying to package in Unreal

It is asking to use Using Visual Studio 2022 14.40.33811 toolchain and you have newer than Visual Studio 2022 so I think you need to downgrade Visual Studio

Well, afterall this wasn’t anything to do with visual studio lol, the engine itself had 2 bugged files that I replaced with the fixed ones and now it works, more info on this thread:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.