Why doesn’t my code work in Xamarin.Forms?

A 1 minute read, Posted on Mon, Nov 10, 2014 In Coding
Tags tips, xamarin, xamarin forms

If you have tried something in Xamarin.Forms that should work but didn’t, don’t worry you might not be going crazy (I can’t say for sure, I’m a programmer, not a psychologist).

I’ve been diving deeper into Xamarin.Forms over the last couple months while working on a small project we have as well as in preparation for my upcoming talk at St. Louis Days of .NET.
Sometimes in the course of creating a sample project I write some code that I know should work and then watch the exceptions pop-up (or worse, see nothing at all) when I run it. Then I go do a quick search and find that this is a known issue… and that it has been fixed. That is when I remember that I didn’t update my Xamarin.Forms nuget packages.

The release version that is installed with the tools and referenced by default by the template when you create a new mobile app solution is out of date. Many small improvements and bug fixes have been introduced since release and updating your nuget packages is a vital first step for creating a successful project.

comments powered by Disqus