Skip to content

Creating a singleExe from UnPackaged app breaks the latest WindowsApp SDK (4390) #9

@LegendaryBlair

Description

@LegendaryBlair

Creating a singleExe from UnPackaged app breaks the latest WindowsApp SDK

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

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

  1. 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

In Version 1.5.240428000

image

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions