I've got an Android app with a couple of Android class libraries. The class libraries have no string resources but I keep getting errors in resource.designer.cs UpdateIdValues() for strings that have been deleted. I'm not even sure how to explain it except to say that something in the tool chain keeps putting back resource ids that have been deleted.
I've tried full rebuilds, putting strings in, taking them out and just can't get this project to build.
Is there some way I can tell the build process to forget everything it used to know about strings and start again?
Running XamStudio 4.0.3 on OSX.
Posts
This is pretty easy to reproduce:
--
Oh, Clean All seems to fix this.
So it seems there's something wrong with the dependency management with strings. Continuing on from the above steps:
At this stage, it seems nothing you do will get the project to build again - you have to put at least one string in each lib project then Clean, then Build.
So, in summary:
Oh no! It seems any code change in the lib projects causes the build to fail. So now I need to Clean All + Build All for every build.
Productivity just took a massive dive!
In my real-world project any code change in the libs requires me to clean + build the entire solution to get it to build. I've not been able to reproduce this in a test app though.
Sometimes, after a code change if I just hit build again it works... sometimes I need to hit build 3 times and it finally works. Something seriously broken here.
Found a work around - delete either the strings.xml, or Resources folder from lib projects.
If you delete the Resources folder, you need to close and re-open the project for it to disappear.
I get same error, running XamStudio 4.0.3 on Win7.
The Clean All, Build All fixed it, but it does keep coming back intermittently.
Ran into a similar error. Deleted the strings.xml file from the Resources/values folder and the build issue went away.