WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

App broken by DeploymentManagerAutoInitializer.cs throw COMException

Open wherewhere opened this issue 3 months ago • 2 comments

Describe the bug

App broken by running var options = new global::Microsoft.Windows.ApplicationModel.WindowsAppRuntime.DeploymentInitializeOptions(); in DeploymentManagerAutoInitializer.cs. It works fine when I jump out of it.

Steps to reproduce the bug

  1. Create a Windows App SDK project
  2. Run it

Expected behavior

Running succeed.

Screenshots

Image

NuGet package version

Windows App SDK 1.8.0: 1.8.250907003

Packaging type

Packaged (MSIX), Unpackaged

Windows version

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

IDE

Visual Studio 2022-preview

Additional context

No response

wherewhere avatar Sep 10 '25 08:09 wherewhere

Fixed it by set <WindowsAppSdkDeploymentManagerInitialize>False</WindowsAppSdkDeploymentManagerInitialize>

wherewhere avatar Sep 10 '25 08:09 wherewhere

Same issue here on Windows 10 1809. It worked fine with WinAppSDK 1.7.

JulienTheron avatar Dec 02 '25 16:12 JulienTheron