-
Notifications
You must be signed in to change notification settings - Fork 425
Closed as not planned
Closed as not planned
Copy link
Labels
area-ExternalTopics external to Windows App SDKTopics external to Windows App SDK
Description
Also filed in VSdevcom.
Describe the bug
When using the Packaging project to produce MSIX bundles for WinUI apps, downgrading a NuGet package reference and rebuilding results in the previously-built (higher-versioned) DLL being included in the bundle instead of the correct one. Neither Clean Solution or restarting Visual Studio resolves the issue.
(Note: Customer hit this in the field while upgrading a NuGet package reference but I kept the description consistent with my steps to reproduce.)
Steps to reproduce the bug
git clone https://github.com/riverar/repro-9db5e09ea4b6- Open
App1.slnxin Visual Studio 2026 - Double-click
App1in Solution Explorer - Observe
CommunityToolkit.Mvvmis referencing version 8.3.2 - Single-click the
App1 (Package)in Solution Explorer - Select Project > Publish > Create app packages...
- In the wizard, use the following publishing options:
- Distribution method: Sideloading (without automatic updates)
- Signing method: No, skip package signing
- Architectures: x86, x64
- After creating a package, navigate to
App1 (Package)\AppPackages\App1 (Package)_1.0.14.0_Debug_Test - Open
App1 (Package)_1.0.14.0_x86_x64_Debug.msixbundlein your favorite compression tool (e.g., 7-Zip) - Extract
App1%20%28Package%29_1.0.14.0_x64_Debug.msix\App1\CommunityToolkit.Mvvm.dll - View the properties of the extracted library.
- Observe the library is versioned 8.3.2.1.
- In Visual Studio, double-click
App1in Solution Explorer - In the text editor, change
CommunityToolkit.Mvvmto reference version 8.4.0 and save. - Select Build > Clean Solution
- Repeat steps 5-11, changing the MSIX filenames as needed (if package version auto-increment is enabled)
- Observe the library is versioned 8.4.0.1.
- Repeat steps 13-16, but with version 8.3.2 again.
- Observe the library is still versioned 8.4.0.1.
⚠️
Expected behavior
Bundled output to always match what is referenced in the project
Screenshots
No response
NuGet package version
None
Packaging type
Packaged (MSIX)
Windows version
Insider Build (xxxxx)
IDE
Visual Studio Enterprise 2026 (11519.219)
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-ExternalTopics external to Windows App SDKTopics external to Windows App SDK