Not able to reference Xamarin.Android to class library project with .net 5

sheeja varghese 21 Reputation points
2021-03-22T13:06:43.113+00:00

Hi,

I am receiving following error while adding reference to Class Library Project from android project a and ios project.

Severity Code Description Project File Line Suppression State

Error Project '..\DeliveriesApp\DeliveriesApp.csproj' targets 'net5.0'. It cannot be referenced by a project that targets 'MonoAndroid,Version=v11.0'. DeliveriesApp.Droid

Created the the DeliveriesApp in .net 5 framework. I also tried to create it with 3.1. How can I solve this issue?

Can you please help? I am not able to continue.

Thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,309 questions
{count} votes