Bug 53251 - [Cycle 8] "Add > Class" and "Add > New Item" solution context menu commands for iOS projects direct user to "Cross-Platform" templates rather than expected C# and iOS templates
Summary: [Cycle 8] "Add > Class" and "Add > New Item" solution context menu commands f...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: --- minor
Target Milestone: 15.3
Assignee: Bugzilla
URL:
: 53008 ()
Depends on:
Blocks:
 
Reported: 2017-03-10 23:41 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2017-05-22 17:15 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: Yes
Last known good build: Cycle 7 SR 1 (XamarinVS 4.1.2.18 (fcbe082))


Attachments
BAD Screenshot of Cross-Platform default selection for "Add New Item" in Cycle 8 (34.82 KB, image/png)
2017-03-10 23:41 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details
GOOD Screenshot of "Code > Class" default selection for "Add New Item" in Cycle 7 (54.92 KB, image/png)
2017-03-10 23:43 UTC, Brendan Zagaeski (Xamarin Team, assistant)
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:
RESOLVED NOT_REPRODUCIBLE

Description Brendan Zagaeski (Xamarin Team, assistant) 2017-03-10 23:41:25 UTC
Created attachment 20277 [details]
BAD Screenshot of Cross-Platform default selection for "Add New Item" in Cycle 8

[Cycle 8] "Add > Class" and "Add > New Item" solution context menu commands for iOS projects direct user to "Cross-Platform" templates rather than expected C# and iOS templates


Affected: VS 2013, VS 2015

Not affected: VS 2017




## Workaround

After the dialog opens, manually navigate to the "Apple > Code > Class" item.




## Steps followed to test

1. Create a new "Visual C# > iOS > iPhone > Single View App (iPhone)" project.

2. Right-click the project name in the Solution Explorer and select "Add > Class".




## BAD Results in XamarinVS 4.2.2.11

The "Forms Xaml Page" template within the "Cross-Platform" menu section is the active selection in the dialog.

(On 4.3.0.784, the selected template is instead "Forms Blank Content Page Xaml", but still within the "Cross-Platform" section.)




## GOOD Results in XamarinVS 4.1.2.18

The "Class" template within the "Apple" menu section is the active selection in the dialog.




## Regression status: regression caused by the introduction of the new "Cross-Platform" section starting in Cycle 8

GOOD: XamarinVS 4.3.0.784 (73f58d6) + VS 2017
BAD:  XamarinVS 4.3.0.784 (73f58d6) + VS 2015 Update 3
BAD:  XamarinVS 4.2.2.11  (00fa5cc) + VS 2015 Update 3
BAD:  XamarinVS 4.2.0.680 (c4382f5) + VS 2016 Update 3
GOOD: XamarinVS 4.1.2.18  (fcbe082) + VS 2015 Update 3


Note that the "Cross-Platform" section was first introduced between 4.1.2 and 4.2.0.  The section _is_ present in VS 2017, but the behavior is _as desired_ in VS 2017.

Xamarin.Android projects also demonstrate the desired behavior, so this issue appears to be specific to Xamarin.iOS projects.




## Additional test environment info (brief)

Microsoft Visual Studio Enterprise 2017
Version 15.0.26228.4 D15RTWSVC

Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3

Microsoft .NET Framework
Version 4.6.01586

Windows 10 Pro (64-bit)
US English locale, US Eastern time zone
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2017-03-10 23:43:04 UTC
Created attachment 20278 [details]
GOOD Screenshot of "Code > Class" default selection for "Add New Item" in Cycle 7
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2017-03-11 00:02:40 UTC
*** Bug 53008 has been marked as a duplicate of this bug. ***
Comment 3 Emanuel 2017-05-22 16:55:34 UTC
I cannot reproduce this issue with latest master branch bits: XVS 4.6.0.111