Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to share class library between Xamarin and Asp.net core?

Is there any way I can reference to some type of class library on Asp.net core and Xamarin at the same time? I want to use some core code in Web API and on phone app. PS. It looks like PCL doesn't work for me.

like image 584
Kovpaev Alexey Avatar asked May 03 '16 19:05

Kovpaev Alexey


People also ask

Can we use NET Framework class library in .NET core?

NET Framework Class Library can be used by a . NET Core Web app if the . NET Core project builds for both .

Can Xamarin use .NET core?

Xamarin usually runs on top of Mono, which is a version of . NET that was built for cross-platform support before Microsoft decided to officially go cross-platform with . NET Core. Like Xamarin, the Unity platform also runs on top of Mono.


1 Answers

PCL is working fine. You can select Profile111 which includes Android, iOS and ASP.NET Core beside others as shown in image:

enter image description here

like image 64
Matt Avatar answered Oct 21 '22 03:10

Matt