Async / await in .NET 4.5 Mono PCL Targeting for Android?

I want to create a version of the .NET Framework library (PCL) of the .NET 4.5 library designed to target Mono for Android. This library also makes extensive use of async / await.

I understand that the latest release of Xamarin Preview has async / await support, and it seems that others have async / waiting to work with PCL, but can the combination work? If so, can anyone provide a secret formula?

+4
source share
1 answer

I have work with the .NET Framework Profile78. 78 appears to be a combination of .NET 4.5, Windows Phone 8, and .NET applications for Windows Store applications.

The easiest way is to update the .csproj file, replacing the existing TargetFrameworkVersion and TargetFrameworkProfile tags with the following:

<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkProfile>Profile78</TargetFrameworkProfile> 
+4
source

Source: https://habr.com/ru/post/1482048/


All Articles