My Android Resource.designer.cs file will not update
- PDF for offline use:
Let us know how you feel about this.
A bug in Xamarin.Studio 5.1 previously corrupted .csproj files by partially or completely deleting the xml code in the .csproj file. This would cause important parts of the Android build system (such as updating the Android Resource.designer.cs) to fail. As of the 5.1.4 stable release on July 15th, this bug has been fixed; but in many cases the project file has to be repaired manually, as described below.
Two possible approaches to fixing up the project file
1) Create a brand new Xamarin.Android application project, set all the project properties to match your old project, and add all of your resources, source files, etc. back into the project.
2) Make a backup copy of your original project's .csproj file, then open it in a text editor, and add back in the missing elements from a cleanly generated .csproj file.
If this does not solve the problem
After experimenting with these elements, you may notice that after adding back the elements and rebuilding the project, the Resource.designer.cs file would update, but then you might still have to close and re-open the solution to get code completion to recognize the new types contained in Resource.designer.cs.