CommunityToolkit / CommunityToolkit/Windows

AttachedCardShadow crashes side-loaded packaged WinUI 3 app

オープン
#207 コメント 25 件 リアクション 1 件 担当者 1 名 GitHub で見る

まだ誰も着手していません。

bug components::media help wanted
主要言語
C#
スター
1.1k
フォーク
166
PR マージ指標
30日以内にマージされた PR はありません

説明

## Describe the bug

When using AttachedCardShadow anywhere in my app (WinUI3 / WinAppSDK 1.0), it runs fine from Visual Studio.
But as soon as I package the app and run it, the app crashes.
I get the following stack trace:
![image](https://user-images.githubusercontent.com/4835617/144197856-0b6ffca9-da1e-4beb-94b0-116d50c92611.png)

The exception message is:
"System.Runtime.InteropServices.COMException: Class not registered (0x80040154 (REGDB_E_CLASSNOTREG))"

## Steps to Reproduce

Unfortunately I can't reproduce this in a sample app that starts with the newest templates.
My app was converted from one of the earliest ProjectReunion version to all subsequent versions until the current Windows App SDK 1.0 release.
I can't find major/important differences in the project files (csproj and wapproj), though.
Steps to reproduce the behavior:

1. Use AttachedCardShadow anywhere in the app.
2. Sign manifest
2. Package using: Publish | Create App Packages...
3. Install by running the Add-AppDevPackage.ps1
4. Run
## Expected behavior

The app should run without a crash

## Screenshots

## Environment

![image](https://user-images.githubusercontent.com/4835617/144197985-a127030e-6f4c-46ee-ae3f-66dea4dcc053.png)
![image](https://user-images.githubusercontent.com/4835617/144198038-3947738e-8098-413f-a3ac-3720db7351de.png)

NuGet Package(s):

Package Version(s):

Windows 10 Build Number:
21H2 / 19044.1348

App min and target version:
Min: April 2018 Update (17134)
Target: May 2020 Update (19041)

Device form factor: Desktop

Visual Studio version:
2022 (17.0.1)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。