Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.18 KB

File metadata and controls

28 lines (20 loc) · 1.18 KB
title NuGet Warning NU1703
description NU1703 warning code
author sbomer
ms.author svbomer
ms.date 07/01/2021
ms.topic reference
ms.reviewer anangaur
f1_keywords
NU1703

NuGet Warning NU1703

Package 'Contoso.Android.Library' 1.0.0 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. While MonoAndroid class libraries might work at runtime, compatibility isn't guaranteed.

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

  1. The project targets net11.0-android or later.
  2. 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 that they update the package to target modern .NET Android TFMs.