Skip to content

UWP .NET 9 msbuild does not produce .msixupload file #5501

@DilanBoskan

Description

@DilanBoskan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-DeveloperToolsIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationarea-UWPSupport for UWP appsneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions