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

Developer technologies | .NET | .NET MAUI
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Developer technologies | ASP.NET | Other
{count} vote

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.