WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

UWP .NET 9 msbuild does not produce .msixupload file

Open DilanBoskan opened this issue 10 months ago • 7 comments

Describe the bug

When running msbuild with UapAppxPackageBuildMode=StoreUpload, there is no .msixupload being generated. Also, when multiple AppxBundlePlatforms are supplied, only the first version is compiled. Maybe there is a crash somewhere along the way, but there is no indication of such in the terminal

Context: I am currently migrating our application from .NET Native to AOT UWP. Most of the way was smooth and I am very thankful this is a thing. However, I have come across issues when trying to publish the application. I have an automatic build pipeline, so I need to package and sign the app over the command line and am not able to use the Create App Packages wizard.

Steps to reproduce the bug

  1. Download the solution
  2. Open the terminal in Noteastic
  3. Run MSBuild.exe Noteastic.csproj /p:Configuration=Release /p:Platform=x86 /p:UapAppxPackageBuildMode=StoreUpload

Expected behavior

If I do Publish -> Create App Packages and use the wizard, I get a complete .msixupload with all AppxBundlePlatforms respected. I expect the same output as from the wizard, in order for me to be able to build the pipeline.

Screenshots

After running the command, I only get:

Image

But after running the wizard, I get:

Image

NuGet package version

None

Packaging type

No response

Windows version

Windows 11 version 24H2 (22621, October 2024 Update)

IDE

Visual Studio 2022

Additional context

The images are results from the minimal repro, which I have provided here:

Minimal Repro.zip

DilanBoskan avatar Jun 09 '25 17:06 DilanBoskan

This is a Single-Project MSIX issue.

dongle-the-gadget avatar Jul 05 '25 01:07 dongle-the-gadget

Any updates on a fix?

DilanBoskan avatar Jul 10 '25 13:07 DilanBoskan

I've encountered the same issue with WASDK 1.8.250702007-experimental4 & .MSIX 1.7.20250806.1 too. Looks like it doesn't have a task to actually create .appxupload.

0x5bfa avatar Aug 18 '25 16:08 0x5bfa

Can we triage this please?

DilanBoskan avatar Sep 12 '25 13:09 DilanBoskan

Hey, this is still not working.

DilanBoskan avatar Nov 14 '25 16:11 DilanBoskan

As a workaround I am building each platform seperately and bundling and signing it with MakeAppx & SignTool.

DilanBoskan avatar Dec 04 '25 08:12 DilanBoskan