You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My Winui3 program runs smoothly on VS2022, whether debugging or deploying it locally. However, when I run and publish it to the store, compile and package it as MSIX, install the application, and open it, there is no response
Steps to reproduce the bug
Right click menu, publish and deploy, create application package
Choose Microsoft Store as the HiToDo I offer
Select system, x64, Release (x64)
After clicking create, the packaging was successful
Run the Windows test program and pass the test
Click on HiToDo_1.0.3.0-x64.msix to install the application
After clicking on the application icon, there is no response
I also tried right clicking on the solution and deploying it locally, and found the following pattern
When I deploy to the local machine using Debug mode, the application runs normally
When I deploy to the local machine using Release mode, the problem occurs and clicking on the application icon does not have any response
This Is My System Log:
Application: HiToDo.exe
CoreCLR Version: 8.0.824.36612
.NET Version: 8.0.8
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException (0x80040154): 没有注册类 (0x80040154 (REGDB_E_CLASSNOTREG))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at WinRT.ActivationFactory.Get(String typeName, Guid iid)
at Microsoft.UI.Xaml.Application.get__objRef_global__Microsoft_UI_Xaml_IApplicationStatics()
at Microsoft.UI.Xaml.Application.Start(ApplicationInitializationCallback callback)
at HiToDo.Program.Main(String[] args) in F:\Conch\HiToDo\obj\x64\Release\net8.0-windows10.0.19041.0\win-x64\App.g.i.cs:line 26
You might have PublishTrimmed enabled in your publish profile for release mode. I think this only works if you use the very latest .net 8 version (8.0.10) or if you have a reference to the cswinrt package added to your project.
Describe the bug
My Winui3 program runs smoothly on VS2022, whether debugging or deploying it locally. However, when I run and publish it to the store, compile and package it as MSIX, install the application, and open it, there is no response
Steps to reproduce the bug
Right click menu, publish and deploy, create application package
Choose Microsoft Store as the HiToDo I offer
Select system, x64, Release (x64)
After clicking create, the packaging was successful
Run the Windows test program and pass the test
Click on HiToDo_1.0.3.0-x64.msix to install the application
After clicking on the application icon, there is no response
Expected behavior
The program can run normally
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002
Windows version
Windows 11 (22H2): Build 22621
Additional context
This is My Obj.csproj Config:
The text was updated successfully, but these errors were encountered: