-
Notifications
You must be signed in to change notification settings - Fork 52
Description
Checklist
- I have looked into the Readme and the documentation, and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
Created a .NET MAUI App using the Auth0 .NET MAUI App Template (version 2.3.1).
Auth0.OidcClient.MAUI version is 1.4.0.
The resulting project comes with a persistent build error stemming from this line in App.xaml.cs:
if (!Auth0.OidcClient.Platforms.Windows.Activator.Default.CheckRedirectionActivation())
InitializeComponent();
Error as in the title of this issue:
The type or namespace name 'Platforms' does not exist in the namespace 'Auth0.OidcClient' (are you missing an assembly reference?)
The only similar issue I could find was this one:
https://community.auth0.com/t/platforms-namespace-gone/181693/6
But I have no luck when trying the suggested solution of changing the Windows target framework, the project simply won't build for any platform.
Reproduction
- Create a project using the Auth0 .NET MAUI App Template (version 2.3.1).
- Target .NET 9.
- That's it.
Additional context
Using Visual Studio Version 17.14.15.
When debugging on Windows Machine, it WILL build and run for both versions despite the error being present at compile time.
For Android it will simply fail to build.
auth0-oidc-client-net version
maui-1.4.0
.NET version
9
Platform
Windows, Android
Platform version(s)
net9.0-android ; net9.0-windows10.0.20348.0 ; net9.0-windows10.0.19041.0