Maui applications do not support the nuget package Microsoft.Identity.Web, which is only for asp.net applications.
you are probably interested in the MSAL library.
jump down to the android app.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
After adding Microsoft.Identity.Web (latest: 1.25.1) NuGet package to MAUI project I got this error
there was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier iosimulator-x64
there was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier maccatalyst-x64
Please note some of the answers suggested by Q&A are not answered correctly or outdated
New Error on Remove/Re-Add reference:
Severity Code Description Project File Line Suppression State
Error NETSDK1082 There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'android-arm' C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets 430
Error NETSDK1082 There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'android-x64' C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets 430
Error NETSDK1082 There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'android-arm64' C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets 430
Error NETSDK1082 There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'android-x86' C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets 430
Maui applications do not support the nuget package Microsoft.Identity.Web, which is only for asp.net applications.
you are probably interested in the MSAL library.
jump down to the android app.