How do you fix the NETSDK1082 error? (no runtime pack for android-x64)

Lukas 20 Reputation points
2024-04-22T08:35:45.31+00:00

I am currently trying to implement a Microsoft Login in my .NET MAUI app using this tutorial.

It runs using the debugger for Windows, but throws this error when I try to run it on an android emulator:

'There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'android-x64'.'

It points to line 491 in 'Microsoft.NET.SdkFrameworkReferenceResolution.targets' which is the following code:

<ResolveRuntimePackAssets FrameworkReferences="@(FrameworkReference)"
 		ResolvedRuntimePacks="@(ResolvedRuntimePack)"
		UnavailableRuntimePacks="@(UnavailableRuntimePack)"
		SatelliteResourceLanguages="$(SatelliteResourceLanguages)"
		DesignTimeBuild="$(DesignTimeBuild)"
		DisableTransitiveFrameworkReferenceDownloads="$(DisableTransitiveFrameworkReferenceDownloads)">
		<Output TaskParameter="RuntimePackAssets" ItemName="RuntimePackAsset" /> 
</ResolveRuntimePackAssets>

I have read somewhere that it could have something to do with some Azure NuGet package not supporting MAUI, but I already checked all dependencies and transative packages and the only package using Azure is Identity.Web (which is used in the tutorial).

Please tell me if you need more/other information!
Any help is appreciated!

Best regards,
Lukas

Developer technologies | .NET | .NET MAUI
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Authenticator
Developer technologies | ASP.NET | Other
Microsoft Security | Microsoft Identity Manager
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 78,006 Reputation points Volunteer Moderator
    2024-04-22T15:40:00.4766667+00:00

    In the tutorial there are two projects.

    An asp.net core api application where you add the Microsoft.Identity.Web package and configure oauth authenication

    A Maui app where you add msal client library .

    you appear to have added Microsoft.Identity.Web to the client app.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.