Bug 53102 - VS2017 RC fails to build Android sample app that builds on VS2015
Summary: VS2017 RC fails to build Android sample app that builds on VS2015
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 4.3.1 (15.1)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-03-07 00:36 UTC by Mark McLemore
Modified: 2017-03-10 15:11 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Project target not installed.png (10.95 KB, image/png)
2017-03-07 00:36 UTC, Mark McLemore
build errors (57.64 KB, image/png)
2017-03-07 00:37 UTC, Mark McLemore
.NET 4.5 already installed (15.16 KB, image/png)
2017-03-07 00:37 UTC, Mark McLemore
VS2017 info (1.38 KB, text/plain)
2017-03-07 00:38 UTC, Mark McLemore
Output window during build with diagnostic output enabled (1.35 MB, text/plain)
2017-03-07 18:20 UTC, Mark McLemore
Error list output during build (34.00 KB, text/plain)
2017-03-07 18:21 UTC, Mark McLemore

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 on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Mark McLemore 2017-03-07 00:36:25 UTC
Created attachment 20164 [details]
Project target not installed.png

I can build the following Android sample on Visual Studio 2015 without any problems:


However, when I try to build it on VS2017 Enterprise RC, I first get this pop-up:

  The C# project "CreditCardValidator.Droid.UITests" is targeting ".NETFramework, Version=4.5", 
  which is not installed on   this machine. To proceed, select an option below:

 1. Change the target to .NET Framework 4.6.1.
 2. Download the targeting pack for ".NETFramework,Version=4.5".

See the attached project-target-not-installed.png. When I choose the first option, I get a bunch of build errors (see the attached build-errors.png).

When I start over and try the second option, attempting to install .NET framework 4.5 shows that it is already installed (see the attached net-4.5-already-installed.png).
Comment 1 Mark McLemore 2017-03-07 00:37:07 UTC
Created attachment 20165 [details]
build errors
Comment 2 Mark McLemore 2017-03-07 00:37:34 UTC
Created attachment 20166 [details]
.NET 4.5 already installed
Comment 3 Mark McLemore 2017-03-07 00:38:23 UTC
Created attachment 20167 [details]
VS2017 info
Comment 5 Mark McLemore 2017-03-07 18:20:36 UTC
Created attachment 20182 [details]
Output window during build with diagnostic output enabled
Comment 6 Mark McLemore 2017-03-07 18:21:01 UTC
Created attachment 20183 [details]
Error list output during build
Comment 7 Mark McLemore 2017-03-07 18:21:51 UTC
Output window and error list output are both attached as text files. I'll give VS2017 RTW a shot next.
Comment 8 Mark McLemore 2017-03-07 21:15:45 UTC
It looks like this problem is fixed in the RTW version. After I updated to today's release, I still get the .NET version pop-up, but it converts the project to .NET 4.6.1, builds the sample app without errors, and deploys to a phone successfully.
Comment 9 Juan Marcelo Tondato 2017-03-10 15:11:04 UTC
Thanks for the report.