Xamarin.Forms Shell Error: XLS0503 A value of type ‘MenuItem’ cannot be added to a collection or dictionary of type ‘IList’.

In Xamarin.Forms Ive found when starting a new Shell project I have come across the error XLS0503. It usually comes about during the building of the menu structure. As you add menuitems and shellcontent to shell, the XLS0503 error will begin to pop up.

Solution

Pretty simple, completely clean the solution by right clicking on the solution and click clean. That usually solves it.

But if you are still having issues, you can also delete the bin and obj folders in the solution. All done.

Interesting\\ Helpful?
YN

Leave a Reply

Your email address will not be published. Required fields are marked *