Skip to content

This repository contains a POC source for targeting the XAMARIN projects from .NETSTANDARD 2.1 to .NET 5 using Multi targeting concept

Notifications You must be signed in to change notification settings

BoobalanK/DOTNET5XAMARIN

Repository files navigation

Sample Xamarin.Forms app

This sample app is a basic xamarin forms solution. This has Portable, Android & iOS project and additionally this has Common.Library and Library.NET5 libraries that purely targets .NET 5 as its TFM.

Portable project

This project has one screen with a single label to demonstrate how the .NetStandard 2.1 and .NET 5.0 libraries are communicating with each other.

Common.Library project

This project serves as a common library between .NetStandard 2.1 and .NET 5.0 libraries. This .csproj file is configured to multi target .NetStandard 2.1 and .NET 5.0 to communicate with both libraries. There is only one single class which is separated into three partial classes (.cs, .net.cs, .netstandard.cs) and it will return a different string in each class file.

Library.NET5 project

This project has only one class NET5Class that has a single function that returns a string.

References

About

This repository contains a POC source for targeting the XAMARIN projects from .NETSTANDARD 2.1 to .NET 5 using Multi targeting concept

Resources

Stars

Watchers

Forks

Languages