'net8.0-android' is out of support

Peter_1985 2,926 Reputation points
2025-11-27T03:14:42.0966667+00:00

Hi,

What must be removed (on the project) due to this issue?

The workload 'net8.0-android' is out of support and will not receive security updates in the future.

Developer technologies | XAML
Developer technologies | XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
{count} votes

Answer accepted by question author
  1. Jack Dang (WICLOUD CORPORATION) 6,305 Reputation points Microsoft External Staff Moderator
    2025-11-27T06:59:22.44+00:00

    Hi @Peter_1985 ,

    Thanks for reaching out.

    The message about net8.0-android being out of support means that the workload itself is deprecated and will no longer receive security updates or fixes. Because this is a product limitation, there isn’t a specific project file setting or code you can remove to make it supported again. For more details about this error, see https://v4.hkg1.meaqua.org/en-us/dotnet/core/tools/sdk-errors/netsdk1202.

    What you can do on the project:

    1. If you no longer need Android support - you can remove net8.0-android from your <TargetFramework> (or <TargetFrameworks>) in the .csproj file. This effectively stops your project from depending on the unsupported workload.
    2. If you need Android support - the safe approach is to migrate to a supported workload when available. You cannot make net8.0-android itself secure or supported again. Guidance on migration for Android projects can be found at https://v4.hkg1.meaqua.org/en-us/dotnet/maui/migration/android-projects?view=net-maui-10.0.

    The MAUI support policy also explains which workloads are supported and which are out of support: https://dotnet.microsoft.com/en-us/platform/support/policy/maui.

    Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2025-11-27T03:15:50.2+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    If the workload 'net8.0-android' is out of support, you should consider removing any references or configurations that specifically target this version. This includes:

    1. Target Framework: Update your project to target a supported framework version, such as net9.0-android or the latest stable version available.
    2. MSBuild Properties: Ensure that any MSBuild properties related to net8.0-android are removed or updated in your project files (e.g., .csproj).
    3. Dependencies: Check for any dependencies that are specifically tied to net8.0-android and update or replace them with compatible versions.

    By removing these elements, you can ensure that your project is aligned with supported frameworks and can receive necessary updates and security patches in the future.

    0 comments No comments

Your answer

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