Bug 60660 - TargetFrameworkVersion changed for Xamarin.Forms in 2.4.0 sr5
Summary: TargetFrameworkVersion changed for Xamarin.Forms in 2.4.0 sr5
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.4.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-11-14 08:04 UTC by Jens-Christian
Modified: 2018-04-12 21:20 UTC (History)
3 users (show)

Tags: targetframeworkversion, ac
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 60660 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Jens-Christian 2017-11-14 08:04:01 UTC
We have an Xamarin.Forms app on Android targeting Android 7.1, using Xamarin.Forms 2.4.0.38779, when updating to 2.4.0.74863, the compilation starts complaining av about our app should target 8.0, since Xamarin.Forms for Android is built targeting 8.0.

I'm guessing it's not a good idea to change the target for the libraries in a service release?

From the log

warning XA0105: The $(TargetFrameworkVersion) for FormsViewGroup.dll (v8.0) is greater than the $(TargetFrameworkVersion) for your project (v7.1). You need to increase the $(TargetFrameworkVersion) for your project.
warning XA0105: The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.Android.dll (v8.0) is greater than the $(TargetFrameworkVersion) for your project (v7.1). You need to increase the $(TargetFrameworkVersion) for your project.
warning XA0105: The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.dll (v8.0) is greater than the $(TargetFrameworkVersion) for your project (v7.1). You need to increase the $(TargetFrameworkVersion) for your project.
Comment 1 Miha Valencic 2018-04-12 21:18:04 UTC
I just tried to compile a demo app for 7.1 and got somewhat similar error:

/Users/miha/work/xamarin/FormsDemo/Droid/FormsDemo.Droid.csproj : warning XA0105: The $(TargetFrameworkVersion) for FormsViewGroup.dll (vv8.0) is greater than the $(TargetFrameworkVersion) for your project (v7.1). You need to increase the $(TargetFrameworkVersion) for your project.
/Users/miha/work/xamarin/FormsDemo/Droid/FormsDemo.Droid.csproj : warning XA0105: The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.Android.dll (vv8.0) is greater than the $(TargetFrameworkVersion) for your project (v7.1). You need to increase the $(TargetFrameworkVersion) for your project.
/Users/miha/work/xamarin/FormsDemo/Droid/FormsDemo.Droid.csproj : warning XA0105: The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.dll (vv8.0) is greater than the $(TargetFrameworkVersion) for your project (v7.1). You need to increase the $(TargetFrameworkVersion) for your project.

Is there a way (a workaround) to support Android target 7.1?
Comment 2 Miha Valencic 2018-04-12 21:20:39 UTC
BTW, forgot to mention, I'm getting this on OS X, Visual Studio Community 7.4.2 (build 12)

Xamarin.Android
Version: 8.2.0.16 (Visual Studio Community)
Android SDK: /Users/miha/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		6.0 (API level 23)
		7.0 (API level 24)
		7.1 (API level 25)
		8.0 (API level 26)