Duplicate entries for the same module generated in app.manifest when building self-contained #4713
Labels
area-DeveloperTools
Issues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integration
area-SelfContained
Issues related to (Windows App SDK) self-contained apps
Describe the bug
I'm building a self-contained module that won't load due to Fusion errors. Its assembly manifest contains multiple
asmv3:file
elements forMicrosoft.UI.Xaml.dll
, however the second, duplicate entry is listed asMicrosoft.ui.xaml.dll
(notice the difference in case). AFAICT the cause is that the implementation ofGenerateAppManifestFromAppx
is not dealing with case insensitivity of Windows filesystems when it removes the name of a processed DLL file fromdllFiles
.The error message in the event log is
Activation context generation failed for "foo.dll". Dll redirector contributor unable to add file map entry for file Microsoft.ui.xaml.dll; Two or more components referenced directly or indirectly by the application manifest have files by the same name.
Steps to reproduce the bug
win-x64
.SideBySide
entry in the event log as described above.Expected behavior
There should not be duplicate entries in the app manifest for the same file.
Screenshots
No response
NuGet package version
Windows App SDK 1.6.0: 1.6.240829007
Packaging type
Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: