Checklist
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
Checklist
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:
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
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