4

I started a project and when I try to build I get 120 errors in the Resource.Designer.cs file.

Error CS0117 'Resource.Color' does not contain a definition for 'design_textinput_error_color'

There are 120 similar errors to this one, 'x does not contain a definition for y'. I tried commenting them out but when I rebuild the file just gets regenerated and the errors return.

Why does it not contain these definitions and how can I get it to create them?

bwoogie
  • 4,339
  • 12
  • 39
  • 72
  • did you add something to the designer then remove it manually..? do a global search for `design_textinput_error_color` there is probably still a reference to it in the project if worse comes to worse remove the Resource and re-add it.. – MethodMan May 03 '16 at 15:36
  • I didnt add and remove anything that I'm aware of. Just did a search, thats the one and only reference... – bwoogie May 03 '16 at 15:39
  • 1
    What is your Android target version set to? – Iain Smith May 03 '16 at 15:40
  • Compiles using latest platform (android 6.0), min: api 15, target, api 23 – bwoogie May 03 '16 at 15:46
  • Possibly related? http://stackoverflow.com/questions/36347287/creating-a-hello-world-in-visual-studio-with-xamarin-forms-fails In short, ensure these library references are inside your `.csproj` – Jon Douglas May 03 '16 at 16:07

2 Answers2

0

Updating Xamarin.Forms in the NuGet manager to the latest version resolved the errors.

bwoogie
  • 4,339
  • 12
  • 39
  • 72
-1

You could try:

  1. Open up your Android SDK manager and Install the Android 6.0 (API 23).
  2. Update Target SDK to API level 23

Try cleaning your build and deleting the obj and bin folders.

Have you seen this answer?

Community
  • 1
  • 1
Iain Smith
  • 9,230
  • 4
  • 50
  • 61