A quick fix for C4F WP toolkit with latest August Silverlight toolkit

If you are working with Coding 4 Fun Toolkit in your next Windows Phone Mango app, you might get in trouble when using it side by side with the latest August Silverlight for Windows Phone Toolkit. It’s the next error that will keep bugging you:

File or assembly name 'Microsoft.Phone.Controls.Toolkit, Version=, Culture=neutral, PublicKeyToken=B772AD94EB9CA604', or one of its dependencies, was not found.

Technically, a TypeLoadException when using a control from C4F Toolkit.

The problem here is obviously that the C4F Toolkit is dependent on the old build of Silverlight Toolkit.

The guys who are bringing you the C4F Toolkit are <span aware of the problem, and will release a fix (actually, “"pre-mango" build quickly followed by a "mango" build.”), but if you are like working on something at the moment and cannot wait, and need both toolkits, here are the steps that can help you:

  1. Download C4F toolkit source code
  2. Open the Solution
  3. Remove the reference to Microsoft.Phone.Controls.Toolkit version
  4. Add the reference Microsoft.Phone.Control.Toolkit version
  5. Build the solution
  6. Close Visual Studio
  7. Open your other project
  8. Remove the old C4F Toolkit build from that project
  9. Add the latest build (created in step 5)

That should keep you going until they release the official fixed build.

Both toolkit are great and very helpful to me. I keep using many of the controls from the C4F Toolkit, and I will definitely write more posts describing the possible uses of the controls.



About Igor Ralic

Software engineer at Microsoft. Running for Office. Passionate about making an impact with great apps & services. Stays close to coffee and away from coriander. Opinions expressed here are my own.