Bug 34361 - Binding project generates invalid attribute DesignatedInitializer
Summary: Binding project generates invalid attribute DesignatedInitializer
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.0.0 (C6)
Hardware: PC Mac OS
: --- normal
Target Milestone: 4.0.1 (C6SR1)
Assignee: Juan Marcelo Tondato
Depends on:
Reported: 2015-09-28 16:17 UTC by John Miller [MSFT]
Modified: 2015-10-14 14:24 UTC (History)
4 users (show)

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

Test Case (4.46 MB, application/zip)
2015-09-28 16:17 UTC, John Miller [MSFT]

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 John Miller [MSFT] 2015-09-28 16:17:01 UTC
Created attachment 13106 [details]
Test Case


   The attached binding project generates some invalid source code when built with Visual Studio 2015. 
   The invalid source has some attributes DesignatedInitializer which are not found, and some using statements that are invalid. 

**Steps to Reproduce:**

   1. Open the project in VS 2015 on Windows
   2. Build it

**Actual Results:**

   The generated file has a "using ModelIO;" line that does not resolve. Also, the attribute "[DesignatedInitializer]" is added to one of the methods that cannot be found.

**Expected Results:**

   No build issues. 

**Build Date & Platform:**

VS 2015

Xamarin (9050b35)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android (d9cd0f1)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS (c48e34e)
Visual Studio extension to enable development for Xamarin.iOS.

**Additional Information:**

   The project builds fine in XS on Mac.