Bug 18665 - VS get crashed when user add layout file into Project not in Layout folder.
Summary: VS get crashed when user add layout file into Project not in Layout folder.
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 1.12.x
Hardware: PC Windows
: Highest major
Target Milestone: 1.12 (Merge)
Assignee: Lluis Sanchez
Depends on:
Reported: 2014-03-31 10:23 UTC by narayanp
Modified: 2014-04-09 04:17 UTC (History)
5 users (show)

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 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 narayanp 2014-03-31 10:23:12 UTC
Steps to reproduce:
1. Open or create Android application.
2. Right click Project->Add->New Item and Add Android Layout.

Actual Result: VS get crashed and Layout file does not add into Project. 

Expected Result: Layout file should get add into project.

Supplement info:

I am not getting any crash loge here.

Environment details:
All Windows
Xamarin for VS 1.12.249
VS 2013/2012

Regression Status:
REGRESSION: This is working fine with Stable X.Android  4.12.01000 (0deb0164)
Comment 1 PJ 2014-03-31 10:34:31 UTC
Lal can you add the Trace.0 log anyways please?
Comment 2 dean.ellis 2014-03-31 10:50:48 UTC
Replicated a exception on master

Call stack is at https://gist.github.com/dellis1972/370efea3a1e64e463d98

Looks like a NRE in the Android Designer code in md-addins
Comment 3 Lluis Sanchez 2014-04-03 07:16:30 UTC
This has been fixed in master and retina branch.
Comment 4 Nischal 2014-04-09 04:17:25 UTC
Now layout files added successfully into Project also.

Environment details:
All Windows
All VS
Xamarin for VS 1.12.260