WindowsAppSDK: NET6 and WindowsAppSDK1.0.3 continues to fail to start after install - Unable to load DLL 'Microsoft.ui.xaml.dll'
Describe the bug
We are unable to install and run any WinUI3 applications when targeting .NET6. The application installs as expected, but when trying to open it - the following error is recorded in the Event Viewer.
Application: TestApp.exe
CoreCLR Version: 6.0.422.16404
.NET Version: 6.0.4
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException: Unable to load DLL 'Microsoft.ui.xaml.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)
at TestApp.Program.XamlCheckProcessRequirements()
at TestApp.Program.Main(String[] args) in C:\Users\s3nt1n3l-hub\source\repos\TestApp\TestApp\obj\x64\Release\net6.0-windows10.0.19041.0\win10-x64\App.g.i.cs:line 28
Steps to reproduce the bug
- Open VS2022 Pro (v17.1.6)
- Create a new ‘Blank App, Packaged (WinUI3 in Desktop)’ project
- Right click csproj file, select Publish
- Profile settings - Config: Release | x64, Target Framework: net6.0-windows10.0.19041.0, Deployment mode: Self-contained, Target runtime: win10-x64
- Publish
- Once published, install
- Try to open application
Nothing happens. Error above appears in Event Viewer.
Expected behavior
Expect application to run; a window with a single button stating ‘Click me’ should be visible.
Screenshots
No response
NuGet package version
1.0.0
Packaging type
Packaged (MSIX)
Windows version
Windows 10 version 21H2 (19044, November 2021 Update)
IDE
Visual Studio 2022
Additional context
No response
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 7
- Comments: 22 (2 by maintainers)
Have the same error.
.NET8.0
WindowsAppSDK 1.4
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
doesn’t helpITNOA
@DefaultRyan Any update?
We’ve updated to WindowsAppSDK v1.1.0 and unfortunately this issue still persists.