We needed to build the engine from source to apply some modification(related to other issue) but got stuck on the custom build. Following the documention we download & install the engine(5.6.1-release tag on github) and build it succesfully. But when the project is opened using this engine version, the engine claims that “Windows SDK is not setup”(see the attached screen). When trying to package the porcess fails, produsing error log where the build fails with multiple errors, like this :
..Engine\Source\Programs\AutomationTool\AutomationUtils\AutomationUtils.Automation.csproj : error NU1903: Warning As Error: Package ‘Magick.NET-Q16-HDRI-AnyCPU’ 14.7.0 has a known high severity vulnerability, https://github.com/advisories/GHSA\-9ccg\-6pjw\-x645 [D:\_Engine5.6\Engine\Source\Programs\Shared\EpicGames.ScriptBuild\EpicGames.ScriptBuild.csproj]
We tried to download the “correct” sdk version, different VS version, dotNet, etc. Basically following up on some forum thread that seems to have similar issue:
but all the variations of the proposed solutions have failed. I was wondering, if this is some known issue and whats the best way to solve it? Thanks.
Few vulnerabilities in Magick.Net were discovered since 5.6 release. We fixed it on UE5/Main, but you need to pick the fix yourself. It was fixed at CL 47492463. (https://github.com/EpicGames/UnrealEngine/commit/f3c0b6508a9e1bfc233712fc10736c3698c69a24). You need update the Magick version in 3 files to 14.9.1. We implemented a change to prevent failing the ‘Development’ targets when a new vulnerability pops up. Shipping and Debug targets will still fail if there is a vulnerability, but you can still work with Development until you can fix the issue. I posted the change and the diff of the file here: [Content removed]
The Windows SDK is usually installed from Visual Studio Installer. The version you need can be found in Engine/Config/Windows/Windows_SDK.json along with other versions that are expected. For the Windows SDK:
Sorry I entered ctrl-enter and it posted before I was done… Once you have the Windows SDK installed, you will need to rebuild the Editor. I usually regenerate the Solution and I rebuild the UE5 project.