Skip to content

MSIX package bundling both Native AOT and Self Contained files when targeting .NET 11 #6709

Description

@Guerra24

Describe the bug

Using the MSIX single-project nuget while targeting .NET 11 causes it to bundle both builds (NAOT and Self Contained) in the resulting MSIX.

Steps to reproduce the bug

  1. Create a blank project
  2. Target .NET 11
  3. Install the latest MSIX nuget (1.7.260610101)
  4. Use Create App Package to generate a MSIX

Expected behavior

Only include the respective files for the selected build so either Native AOT or Self Contained.

Screenshots

Left is .NET 10 and right is .NET 11

NuGet package version

2.4.0

Packaging type

Packaged (MSIX)

Windows version

No response

IDE

No response

Additional context

No response

Metadata

Metadata

Labels

Status: Pending releaseThe issue has been fixed but has not yet shipped in a release.area-MSIXBuildToolsMSIX deployment technology in Microsoft.Windows.SDK.BuildTools.MSIX

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions