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

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
617 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
5,532 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,270 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,897 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,559 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 56,686 Reputation points
    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