No Runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier

Udaiappa Ramachandran 726 Reputation points MVP
2022-08-19T13:47:21.327+00:00

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

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,251 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,859 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,451 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 55,601 Reputation points
    2022-08-19T21:48:43.553+00:00

    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.

    https://learn.microsoft.com/en-us/azure/developer/mobile-apps/azure-mobile-apps/quickstarts/maui/authentication

    jump down to the android app.