CommunityToolkit / CommunityToolkit/Windows

Behaviors Single Component UWP Head not Building

Offen
#137 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
blocked components::behaviors dev loop ➰ sample app 🖼️
Vorherrschende Sprache
C#
Sterne
1.1k
Forks
166
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

> 8> H:\code\CommunityToolkitWindows\components\Behaviors\heads\Uwp\Behaviors.Uwp.csproj : XamlCompiler error WMC1006: Cannot resolve Assembly or Windows Metadata file 'Type universe cannot resolve assembly: CommunityToolkit.WinUI.Animations, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null.'

Not too sure what's going on here, but for some reason the Animations dependency is getting conflicted for the UWP head when trying to run the Behaviors single-component head (not the all-up solution, that's fine). Behaviors also references the Animations package, but I don't think the Sample App does (though they both reference the Extensions package).

The WASDK head builds and runs fine.

There doesn't seem to be any other information beyond the message above, but the Animations project does build and is copied to the bin directory of the UWP head, so it's there at least (vs missing).

This is happening on the Behaviors.Animations on `main` now even before the changes introduced in #121 and #136. Where it still occurs after on the `Behaviors` component as that's then the one with the Animations reference.

Decided to move forward with those PRs as this was already here and doesn't seem to effect the CI or the packages. And we'll sort out later with this issue for tracking.

Probably next step is to get a binlog from VS (with the Extension Arlo found) and see if it provides more information about why the assembly can't be resolved?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit components/Behaviors/heads/Uwp/Behaviors.Uwp.csproj und reproduziere den Build des UWP-Head mit einer einzelnen Komponente. Untersuche die Auflösung der Animations-Abhängigkeit und erfasse anschließend ein Visual Studio binlog mit der in der Issue erwähnten Erweiterung. Erledigt ist die Aufgabe, wenn der UWP-Head erfolgreich ohne den WMC1006-Fehler bei der Assembly-Auflösung erstellt wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.