Publish MAUI preview error

דני שטרית 1,676 Reputation points

I tried to publish app in MAUI preview 14 and I get this error.

Application: AutomationClient.MAUI.exe
CoreCLR Version:
.NET Version: 6.0.2
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 AutomationClient.MAUI.WinUI.Program.XamlCheckProcessRequirements()
at AutomationClient.MAUI.WinUI.Program.Main(String[] args)

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
32,580 questions
{count} vote