Skip to content

PackageCatalog.PackageUpdating event cause app exit abnormally #2512

@Gaoyifei1011

Description

@Gaoyifei1011

Describe the bug

PackageCatalog.PackageUpdating event cause app exit abnormally

--------------------------

PackageCatalog.PackageUpdating 事件导致应用退出异常


Steps to reproduce the bug

  1. Create a blank WinUI 3 application
  2. PackageCatalog.PackageUpdating events
  3. Exit the application
  4. Observe the performance of the corresponding process in the Task Manager (or mount the Visual Studio debugger to view)
--------------------------
  1. 创建一个空白 WinUI 3 应用
  2. 挂载 PackageCatalog.PackageUpdating 事件
  3. 退出应用
  4. 看任务管理器对应进程的表现(或挂载 Visual Studio 调试器查看)

Expected behavior

Mount PackageCatalog.PackageUpdating event, application can exit out of normal process will not trigger the exception

--------------------------

挂载 PackageCatalog.PackageUpdating 事件后,应用退出能正常退出进程,不会触发异常


Screenshots

Image Image

NuGet package version

Windows App SDK 1.8.3: 1.8.251106002

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 24H2 LTSC (26100, June Update)
26220.7070

IDE

Visual Studio 2022

Additional context

QQ20251116-10612.mp4

https://learn.microsoft.com/uwp/api/windows.applicationmodel.packagecatalog.packageupdating?view=winrt-26100

App1.zip

Similar issues:
microsoft/winget-cli#5870
microsoft/winget-cli#5869

Metadata

Metadata

Assignees

Labels

Pri3Topic is in the bottom 50% of page views for the repo or was not created via Feedback control.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions