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
When I try to run a WInUI app in Visual Studio 2022 Community Version 17.12.0 in "Unpackaged" mode I get the following error:
System.Runtime.InteropServices.COMException
HResult=0x80040154
Message=Class not registered (0x80040154 (REGDB_E_CLASSNOTREG))
Source=System.Private.CoreLib
StackTrace:
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 App4.Program.Main(String[] args) in G:\Data\Users\Ward\Documents\Visual_Studio_Projects\App4\obj\x64\Debug\net8.0-windows10.0.19041.0\win-x64\App.g.i.cs:line 26
This happens if I have it set to either x86 / x64.
The project type I create is: "Blank App, Packaged (WinUI 3 in Desktop)"
Note If I run it as a packaged app it runs without issue.
Thanks
Ward
Steps to reproduce the bug
In Visual Studio 2022 - create a project of type: "Blank App, Packaged (WinUI 3 in Desktop)".
Then set the package type to: (Unpackaged)
Expected behavior
No response
Screenshots
No response
NuGet package version
None
Windows version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Hi,
When I try to run a WInUI app in Visual Studio 2022 Community Version 17.12.0 in "Unpackaged" mode I get the following error:
System.Runtime.InteropServices.COMException
HResult=0x80040154
Message=Class not registered (0x80040154 (REGDB_E_CLASSNOTREG))
Source=System.Private.CoreLib
StackTrace:
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 App4.Program.Main(String[] args) in G:\Data\Users\Ward\Documents\Visual_Studio_Projects\App4\obj\x64\Debug\net8.0-windows10.0.19041.0\win-x64\App.g.i.cs:line 26
This happens if I have it set to either x86 / x64.
The project type I create is: "Blank App, Packaged (WinUI 3 in Desktop)"
Note If I run it as a packaged app it runs without issue.
Thanks
Ward
Steps to reproduce the bug
In Visual Studio 2022 - create a project of type: "Blank App, Packaged (WinUI 3 in Desktop)".
Then set the package type to: (Unpackaged)
Expected behavior
No response
Screenshots
No response
NuGet package version
None
Windows version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: