Cannot package for Windows in UE 5.0.3, SDK not found: tried every instruction on this forum and elsewhere

Hello, I see this issue coming up numerous times, but none of the fixes work for me. I have Unreal 5.0.3 installed under Windows 10.

The problem is the following: after reinstalling Windows and installing UE 5.0.3 I cannot package a Windows build due to an SDK error.

In the devices list, it seems that Unreal sees the SDK it needs.

I can also force update device, and Unreal will report that SDK is successfully installed.
image

Yet, after restart it always goes down like this:

List of sdks with dotnet --list-sdks command is the following:
image

What I tried:

  • Installing NET 3.1 runtimes;
  • Installing Visual Studio and its individual components as described in video tutorials;
  • Installing NET 7.0 SDK separately;
  • Installing Windows 10 SDK;
  • Editing environmental variables to incude path to Unreal’s built-in 3.1 SDK;
  • Reinstalling Unreal.

What else can I do? Why cannot Unreal see the built-in SDK it comes with? I spent hours trying to resolve this, but nothing helps.

Did you install these SDKs and applications in the default location? Have you modified the location for your files?

I have the same problem as zalessky, also tried everything. I haven’t changed the location for the sdk.