microsoft / microsoft/WindowsAppSDK

Creating a singleExe from UnPackaged app breaks the latest WindowsApp SDK

Open
#4,390 8 comments 0 reactions 0 assignees View on GitHub
area-DeveloperTools
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

### Describe the bug

Currently using the latest SDK 1.5.240428000, it fails to generate the `resource.pri` when creating the SingleExe. I think, it is breaking the latest SDK behavior.

If we use the SDK version 1.4.240211001, It creates the SingleExe properly with all dependency files.

It's replicate in the CustomControl library project also.

### Steps to reproduce the bug

[CustomControl.zip](https://github.com/microsoft/WindowsAppSDK/files/15219997/CustomControl.zip)
[SimpleApp.zip](https://github.com/microsoft/WindowsAppSDK/files/15220007/SimpleApp.zip)

1. Open the SimpleApp project.
2. Tools->Commands->Developer Powershell. Use below command line for creating the SingleExe.
` dotnet publish SimpleApp.sln -c Release -p:Platform=x64 -p:PublishSingleFile=true --self-contained true -p:WindowsAppSDKSelfContained=true`
3. Now, open the Bin folder and check the exe.

Note: Exe will not launch in launch SDK.

### Expected behavior

It should launch the exe properly as like windows SDK (1.4.240211001).

### Screenshots

In Version `1.4.240211001`

![image](https://github.com/microsoft/WindowsAppSDK/assets/93642597/81852428-1042-49d9-9f66-63ecd5470e59)

In Version `1.5.240428000`

![image](https://github.com/microsoft/WindowsAppSDK/assets/93642597/b335ae41-7235-4636-8f91-5f39d67e7caa)

### NuGet package version

Windows App SDK 1.5.3: 1.5.240428000

### Packaging type

Unpackaged

### Windows version

Windows 11 version 22H2 (22621, 2022 Update)

### IDE

Visual Studio 2022

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the attached SimpleApp project and reproduce the failure using the published dotnet command, then compare SDK 1.5.240428000 with 1.4.240211001. Check the generated Bin output and the resource.pri file; this is done when the unpackaged SingleExe launches successfully with its dependency files under the latest SDK.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.