Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.2 KB

File metadata and controls

34 lines (24 loc) · 1.2 KB
title NuGet Warning NU1704
description NU1704 warning code
author sbomer
ms.date 03/25/2026
ms.topic reference
f1_keywords
NU1704

NuGet Warning NU1704

Package 'packageId' version uses the deprecated MonoAndroid framework instead of 'net6.0-android' or later. Consider upgrading to a newer version of this package or contacting the package author.

Issue

A project targeting net11.0-android or later references a package whose resolved compile-time or runtime assemblies come from a monoandroid framework folder. The MonoAndroid target framework is deprecated in favor of net6.0-android and later .NET TFMs.

This warning is only raised when both of the following conditions are met:

  • The project targets net11.0-android or later.
  • The SDK analysis level is 11.0.100 or higher.

Solution

Upgrade to a newer version of the package that provides net6.0-android (or later) assets. If no updated version is available, contact the package author and request they update the package to target modern .NET Android TFMs.

To suppress the warning, add NU1704 to the NoWarn property in your project file:

<PropertyGroup>
  <NoWarn>$(NoWarn);NU1704</NoWarn>
</PropertyGroup>