How to reduce $ (TargetFrameworkVersion) for FormsViewGroup.dll from (v7.1) to (v6.0) in Xamarin

I am new to Xamarin. I installed VisualStudio 2017 with the Xamarin component and my Android sdk file has been updated to Android (v6.0). I created a new Xamarin project and I get errors:

Severity    Code    Description Project File    Line    Suppression State
Warning     The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.dll(v7.1) is greater than the $(TargetFrameworkVersion) for your project (v6.0).
You need to increase the $(TargetFrameworkVersion) for your project.    App2.Android    C:\(PATH-TO-REPOS)\repos\App2\App2\App2.Android\App2.Android.csproj     

I do not want targeting (v7.1), please tell me where I can update $(TargetFrameworkVersion)for FormsViewGroup.dllto the target (v6.0).

There is already a similar question raised by someone here . But I did not find a solution to reduce the version for FormsViewGroup.dll. Instead, they suggested updating the Android SDK. But I do not want to target (v7.1).

Please offer me an update $(TargetFrameworkVersion)solution FormsViewGroup.dllfor the purpose (v6.0).

thanks

+4
source share
2 answers

There are several reasons for this: you can try:

  • One Solution

Having cleared the temp folder, deleted:, The C:\Users\name\AppData\Local\Temp\MonoAndroid,Version=v6.0.AssemblyAttributes.csstatus of Msbuild depends on temporary files.

  • Solution two
    • Go to the folder C: \ Program Files (x86) \ Android \ android-sdk.
    • run the SDK Manager.exe.
    • Click Update Packages. (He will download the necessary updates).
    • Go to application properties
    • Install the target version of Android (6 or 7 according to the error).
+1
source

, , , - Android 7.1.1 (API 25) Android SDK manager, Visual Studio Xamarin " " . "Android " Android , .

, Xamarin visual studio 2017 Android SDK 7.1 , . Android , .

+1

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


All Articles