Bug 28891 - Xamarin.Android.Support.v7.AppCompat v22 cannot compile project
Summary: Xamarin.Android.Support.v7.AppCompat v22 cannot compile project
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: Production (addons.xamarin.com)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jon Dick
Depends on:
Reported: 2015-04-08 13:12 UTC by Jeremy Kolb
Modified: 2015-04-21 09:59 UTC (History)
1 user (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 or GitHub 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 Jeremy Kolb 2015-04-08 13:12:29 UTC
Including the stable appcompat v7 22 nuget package (https://www.nuget.org/packages/Xamarin.Android.Support.v7.AppCompat/) causes my project to fail to compile with the following:

error CS0117: 'MinefieldManagement.Droid.Resource.Drawable' does not contain a definition for 'abc_ab_share_pack_holo_dark'
5>C:\Projects\minefield-management\MinefieldManagement.Droid\Resources\Resource.Designer.cs(333,129,333,157): error CS0117: 'MinefieldManagement.Droid.Resource.Drawable' does not contain a definition for 'abc_ab_share_pack_holo_light'
5>C:\Projects\minefield-management\MinefieldManagement.Droid\Resources\Resource.Designer.cs(459,130,459,163): error CS0117: 'MinefieldManagement.Droid.Resource.Layout' does not contain a definition for 'abc_activity_chooser_view_include'
5>C:\Projects\minefield-management\MinefieldManagement.Droid\Resources\Resource.Designer.cs(584,142,584,189): error CS0117: 'MinefieldManagement.Droid.Resource.Style' does not contain a definition for 'Base_Widget_AppCompat_Light_ActivityChooserView'
5>C:\Projects\minefield-management\MinefieldManagement.Droid\Resources\Resource.Designer.cs(585,143,585,191): error CS0117: 'MinefieldManagement.Droid.Resource.Style' does not contain a definition for 'Base_Widget_AppCompat_Light_AutoCompleteTextView'

Changing the targetSdkVersion to 22 in the manifest doesn't help.
Comment 1 Jon Dick 2015-04-21 09:59:16 UTC
Those errors are because the Support V7 AppCompat library no longer ships those resources in it.  

You'll have to migrate to new equivalents if you want to use the newer version of the support library.