Resource.designer.cs Not Updating in Xamarin.Droid project.
I tried all of the posts below that i might think this is a duplicate post:
Resource.designer.cs NOT regenerating in Mono (Xamarin Studio)
Adding new strings to resource.resx not reflecting into Designer.cs
Xamarin Resource.Designer.cs not refreshing new id's or events
Xamarin Android - How to rebuild Resource.designer.cs
Also tried official link from Xamarin:
I tried this one from Codeproject where it says [Solved] But also didn't work for myself:
I had a similar problem where there was an error in a resource file which prevented the resource.designer.cs file from updating. In my case the issue was that I had added a few images which had illegal characters in their file names.
However what is important is how to discover your specific issue because the errors from the Android Asset and Packaging Tool do not show up in the Error List tab in Visual Studio. I had to set the build output verbosity to diagnostic and then search for Task "Aapt". After locating the aapt section, I found the information that allowed me to locate and fix my error at the bottom of the section. I've included it the section of the log:
Executing package -f -m -M C:\Users\billm\AppData\Local\Temp\2xfnjt4r.kaj\manifest\AndroidManifest.xml -J C:\Users\billm\AppData\Local\Temp\2xfnjt4r.kaj ...
res\drawable\keyboard-backspace-long.png: Invalid file name: must contain only [a-z0-9_.] (TaskId:113)
res\drawable\keyboard-backspace-long.png: Invalid file name: must contain only [a-z0-9_.] (TaskId:113)
res\drawable\keyboard-backspace-xlong.png: Invalid file name: must contain only [a-z0-9_.] (TaskId:113)
res\drawable\keyboard-backspace-xlong.png: Invalid file name: must contain only [a-z0-9_.] (TaskId:113)
res\drawable\keyboard-backspace.png: Invalid file name: must contain only [a-z0-9_.] (TaskId:113)
res\drawable\keyboard-button.png: Invalid file name: must contain only [a-z0-9_.] (TaskId:113)
Done executing task "Aapt". (TaskId:113)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With