Reputation: 41
I had just created a new Visual Studio for Cross-Platform project.
Clean the solution, rebuild solution, run the Android project and it took forever to compile and finally the emulator shows up. And after awhile I get that "Warning IDE0006..." error.
I've clicked the IDE0006 link and points me to the same place with no recommendation to solve or debug it.
Upvotes: 4
Views: 976
Reputation: 306
Took me almost 4 days to find a way on this issue even on my fresh new setup.
So there is my trick.
I found that it was the Resource.Designer.cs
in the Android project that caused me all that pain in my #@$$!
It was generated (or imported) from an outdated template or buildtool.
So what you want to do is to regenerate it (don't delete it).
To do it simply you can:
I couldn't find a way to definitly solve that even on my brand new windows with all component freshly installed (xamarin, Visual Studio, SDKs, NDK, etc...) If anyone got a proper solution, I'm all ears :)
Upvotes: 0
Reputation: 577
This one took me 75 days of blood, sweat, and tears to puzzle through.
You're left with one error: "The referenced component 'System.ObjectModel' could not be found. SolutionName.Droid"
In the Solution Explorer, Open up SolutionName.Droid. Open up "References" under that. Right-click on "System.ObjectModel" and delete it.
This has worked repeatably for me. Maybe somebody else could explain why it works...
Upvotes: 9