Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

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.


Feedback

Was this page helpful?

Additional resources