Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate entries for the same module generated in app.manifest when building self-contained #4713

Open
dblohm7 opened this issue Sep 12, 2024 · 0 comments
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

Comments

@dblohm7
Copy link

dblohm7 commented Sep 12, 2024

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 for Microsoft.UI.Xaml.dll, however the second, duplicate entry is listed as Microsoft.ui.xaml.dll (notice the difference in case). AFAICT the cause is that the implementation of GenerateAppManifestFromAppx is not dealing with case insensitivity of Windows filesystems when it removes the name of a processed DLL file from dllFiles.

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

  1. Publish to filesystem a NativeAOT, unpackaged, self-contained DLL that uses the Windows SDK. Runtime identifier set to win-x64.
  2. Try to load that DLL. The DLL load fails with the 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

@codendone codendone added 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 and removed needs-triage labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants