If you've got the .NET Micro Framework installed and you want to use the Silverlight Toolkit in your SL project, changes are you'll run into trouble.

Silverlight Toolkit and Micro Framework conflicts

The last few months I've been spending most of my time working with embedded devices and the .NET Micro Framework, but I just started a new Silverlight project the other day.

I quickly installed the Silverlight 4 Toolkit, as I had not done so before on that machine and created a new solution in Visual Studio. To my surprise I couldn't find any of the Silverlight Toolkit controls in the Toolbox and when I tried to add them manually I got this:




alt text

For some reason, the Silverlight Toolkit and the .NET Micro Framework do not seem to like one another.
(The real reason is that Visual Studio is trying to resolve the .NET Micro Framework libraries in a Silverlight project)

After trying a few different things, I started asking around.
In the end someone answered with a link that lead to another link and finally the solution.

Anyway, just so you won't have to search so hard, here's the working solution:

You need temporary rename the FrameworkList.xml files for all versions of the .NET Micro Framework before fixing the toolbox
After you have added all the Toolkit controls to the toolbox in Visual Studio you can restore the original names.

  1. Navigate to %PROGRAMFILES%\Reference Assemblies\Microsoft\Framework.NETMicroFramework\
  2. You will see one folder for every version of the framework, repeat steps 3 and 4 for all of them
  3. Navigate into the [frameworkversion]\RedistList\ folder
  4. Rename FrameworkList.xml to FrameworkList.xmlo
  5. Open Visual Studio and add the Toolkit controls to the Toolbox
  6. Restore the names of all the modified files

The alternative is to uninstall all version of the .NET Micro Framework, fix your Toolbox and reïnstall them.

.net.net-micro-frameworkvisualstudiosilverlight
Posted by: Timothy Parez
Last revised: 24 May, 2011 08:27 PM

Comments

No comments yet. Be the first!

No new comments are allowed on this post.