Bug 60411 - [VS-2015][iOS/Android Designer] : Designer of iOS, android project opens in XML format instead of Previewer.
Summary: [VS-2015][iOS/Android Designer] : Designer of iOS, android project opens in X...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Designer Integration ()
Version: 4.8.0 (15.5)
Hardware: PC Windows
: --- blocker
Target Milestone: ---
Assignee: Bugzilla
: 60412 ()
Depends on:
Reported: 2017-10-27 10:18 UTC by Prasad Raghorte
Modified: 2017-12-29 10:17 UTC (History)
6 users (show)

Tags: Globallogic
Is this bug a regression?: Yes
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 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 Prasad Raghorte 2017-10-27 10:18:25 UTC
For iOS, Android and TVOS applications, designer always opens in XML format only. 

Steps To Reproduce : 
1. Create any single view application (iOS/Android/TVOS)
2. Open main.Storyboard for iOS/TVOS and main.axml for android
3. Observe the designer screen

Expected Result : Designer screen should be opened in previewer screen.

Actual Result: Designer is opened in XML format.


Build Info :
Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Xamarin (d539a5add)
Xamarin.Android (f241f51)
Xamarin.iOS (1b460cb)

Detailed Build Info : https://gist.github.com/aman-daharwal/fccfb6153d39d3a6d7ba3808a93b47f7


Screencast : https://www.screencast.com/t/M8lJ1SYuSgD


Logs : https://gist.github.com/aman-daharwal/f387593427fe43ebf9148b7ae855d0b1


Please let me know if anything more is required.
Comment 1 Alan McGovern 2017-10-27 15:50:57 UTC
I believe this issue is because the wrong MSI files were used. Please get in touch with Luis or Ben to get the right installers for testing.
Comment 2 Daniel Cazzulino 2017-10-27 16:39:51 UTC
I just installed the same build and it does not seem to be a wrong MSI issue.

However, I did get package load failures right after installing. Deleting the %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache folder manually resulted in working designers *and* previewer.

Could you try that workaround, to determine if we need to re-introduce that step in the MSI?
Comment 3 Daniel Cazzulino 2017-10-27 16:40:43 UTC
*** Bug 60412 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Cazzulino 2017-10-27 18:21:14 UTC
After locally trying reintroducing the MEF nuking, it still fails on the first run for me. But a subsequent run works just fine :S
Comment 5 Daniel Cazzulino 2017-10-30 14:45:22 UTC
@Prasad could you please verify that this is a first-run only issue? Or is it persistent?
Comment 6 Prasad Raghorte 2017-11-07 07:04:26 UTC
Its failing for me every time.
Comment 7 Daniel Cazzulino 2017-11-08 15:29:36 UTC
Plz provide the location where you got the MSI from, as well as the full VS version info (including XVS versions).
Comment 8 Prasad Raghorte 2017-11-10 07:33:18 UTC
@ Daniel Cazzulino

It has been again reproduced on latest build as well.

Build location : https://bosstoragemirror.azureedge.net/xvs-alpha/c7/c72989c091dd28bc4dc9d56add158b3856054436/Xamarin.VisualStudio_4.8.0.1124864.msi

Build info : https://gist.github.com/gangrade-swati/be528b779438f49f98148753eb15b6fc
Comment 9 Daniel Cazzulino 2017-11-13 15:50:38 UTC
Installed the given build. First run failed to load package as usual (that's another known issue, unrelated to this one). 

Restarted VS, can't repro (storyboards and axml loads just fine in the designer).
Comment 10 Ben Beckley 2017-11-16 18:01:13 UTC
I noticed that the build info in comment 8 does not list the designer bits. I'm going to go ahead and guess that the correct designer bits are not installed.

@Prasad, can you go to Extensions and Updates, and tell us what designer versions are installed?

Also, I can't reproduce this either with our 15.5 Preview 4 MSI. I'm going to leave this as resolved as it probably is an environmental issue. If we verify that this is the case, then the bug can be marked as `verified not_reproducible`.

screencast: https://www.screencast.com/t/YoxRmGfd

env info: https://gist.github.com/BenBeckley/22cdb751cda6a541056d8b046f54c3fb