Try   HackMD

WinUI 3 で、アプリケーション実行ファイルをダブルクリック起動しようとすると、System.DllNotFoundException: 'Unable to load DLL 'Microsoft.ui.xaml.dll' or one of its dependencies: 指定されたモジュールが見つかりません。 (0x8007007E)' とエラーが発生する。 2022-07-25

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

WinUI3 application crashing | Microsoft.ui.xaml.dll no found
https://docs.microsoft.com/en-us/answers/questions/889125/winui3-application-crashing-microsoftuixamldll-no.html

csprojファイルに以下の設定を行うと正常に起動する。

<PropertyGroup> <WindowsPackageType>None</WindowsPackageType> </PropertyGroup>
tags: WinUI 3 WinUI DllNotFoundException Microsoft.ui.xaml.dll