Duplicate assets when referencing a chain of nuget packages #8857
Labels
area-Resources
bug
Something isn't working
needs-triage
Issue needs to be triaged by the area owners
team-Markup
Issue for the Markup team
Milestone
Describe the bug
Given an app that references a nuget package called
PackageA
, which itself references a nuget package calledPackageB
.If
PackageB
contains an asset calledFile01.txt
, the creation of thePackageA
package will also include a reference toFile01.txt
in its ownpri
file.When the app references
PackageA
, assets fromPackageA
andPackageB
are elected to be placed in the app layout, causing the file nameFile01.txt
to be present twice, and will cause the build to fail.Steps to reproduce the bug
MyPackage01
which referencesUno.Material.WinUI
MyPackage01
nuget package (not a direct project reference)Expected behavior
App build works properly when using these packages.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.4.0: 1.4.230822000
Windows version
No response
Additional context
In most of Uno Platform packages, we're now including this workaround (works with both UWP and WinUI) :
which prevents files from direct nuget package references to be incorrectly included in a package being built.
The text was updated successfully, but these errors were encountered: