Bug 45142 - Xaml files in solutions without any iOS project will not render Android preview
Summary: Xaml files in solutions without any iOS project will not render Android preview
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Xamarin.Forms Previewer ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: --- normal
Target Milestone: 4.3.0 (C9)
Assignee: Dominique Louis
URL:
Depends on:
Blocks:
 
Reported: 2016-10-07 02:04 UTC by Kyle White
Modified: 2016-11-18 10:18 UTC (History)
3 users (show)

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


Attachments
Sample app for repro (66.49 KB, application/x-zip-compressed)
2016-10-07 02:04 UTC, Kyle White
Details
Logs (2.68 KB, application/x-zip-compressed)
2016-10-07 02:04 UTC, Kyle White
Details
VSZip logs (2.53 KB, application/zip)
2016-10-07 05:21 UTC, Prashant manu
Details
Only Android project loaded (261.76 KB, image/png)
2016-10-25 16:56 UTC, Dominique Louis
Details


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:
Status:
VERIFIED FIXED

Description Kyle White 2016-10-07 02:04:27 UTC
Created attachment 17920 [details]
Sample app for repro

To repro:
1) Download and open the attached sample
   It's a basic XF Xaml portable template but the iOS project is removed
2) Open it
3) build it
4) Open MainPage.xaml
5) Open the XF previewer

Expected result:
User should be able to see the preview for the Android project

Actual result:
Nothing renders

Builds:

Xamarin   4.3.0.7 (3f35621)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.0.99.118 (736438a)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.1.0.135 (0760023)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Kyle White 2016-10-07 02:04:45 UTC
Created attachment 17921 [details]
Logs
Comment 4 Alan McGovern 2016-10-07 08:37:38 UTC
Nearly definitely a dupe of this

*** This bug has been marked as a duplicate of bug 45118 ***
Comment 5 Alan McGovern 2016-10-07 08:40:48 UTC
Actually your other bug reports imply that this XA version can function, so maybe it's not related.
Comment 6 Kyle White 2016-10-07 10:32:38 UTC
Yep, the same XA (same everything) can work if there is an iOS project in the solution
Comment 7 Kyle White 2016-10-07 14:11:04 UTC
Moving to C9 milestone to track for stable release of this feature.
Comment 8 Alan McGovern 2016-10-10 09:54:43 UTC
Dominique - what should be happening here is that when we try locate the referencing iOS application we should fail and immediately create a `MissingProjectXAmlRenderer`. We will also create the normal android renderer which should let things Just Work.
Comment 9 Dominique Louis 2016-10-25 16:56:51 UTC
Created attachment 18220 [details]
Only Android project loaded

Appears to be working.
Comment 10 Dominique Louis 2016-10-25 16:57:34 UTC
As per the attached screenshot, with the latest from master, this appears to be working, without an iOS project loaded.
Comment 12 Alan McGovern 2016-11-18 10:18:04 UTC
I filed two bugs:
https://bugzilla.xamarin.com/show_bug.cgi?id=47341 https://bugzilla.xamarin.com/show_bug.cgi?id=47342

We already have one of the issues filed:
https://bugzilla.xamarin.com/show_bug.cgi?id=43052

I'll just mark this as verified as the actual issue this bug is dealing with is definitely resolved as you got an android preview independently of being connected to the mac and having a working ios preview.