dotMorten / WinUIEx

WinUI Extensions
https://dotmorten.github.io/WinUIEx
MIT License
572 stars 36 forks source link

Debugging with WebAuthenticator #152

Closed thepaleone closed 7 months ago

thepaleone commented 7 months ago

When I try to debug (using VSCODE) my MAUI app on Windows with using The WinUIEx.WebAuthenticator I receive the following error. It does work fine if I publish the app and install the package, but that makes debugging very difficult. Is there something I need to do in order to have this work while debugging?

System.InvalidOperationException: The WebAuthenticator requires a packaged app with an AppxManifest
   at WinUIEx.WebAuthenticator.Authenticate(Uri authorizeUri, Uri callbackUri, CancellationToken cancellationToken)
dotMorten commented 7 months ago

Sounds like VSCode launches the app differently than Vs2022. As the error states running as packaged is a requirement for the web authenticator.

thepaleone commented 7 months ago

I see. After thinking it through a bit I can understand why it works that way. Thanks!