microsoft / microsoft/WindowsAppSDK

App broken by DeploymentManagerAutoInitializer.cs throw COMException

Open
#5,815 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-WinAppSDKDeployment needs-triage
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

### 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](https://github.com/user-attachments/assets/40d6e9ca-948f-4802-b780-b0ef92dbc0d6)

### 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_

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure in a Windows App SDK 1.8 project using both Packaged (MSIX) and Unpackaged configurations on the reported Windows 11 version. Inspect DeploymentManagerAutoInitializer.cs and the DeploymentInitializeOptions construction, then verify that running the app no longer throws the reported COMException.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.