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:
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.
- Navigate to %PROGRAMFILES%\Reference Assemblies\Microsoft\Framework.NETMicroFramework\
- You will see one folder for every version of the framework, repeat steps 3 and 4 for all of them
- Navigate into the [frameworkversion]\RedistList\ folder
- Rename FrameworkList.xml to FrameworkList.xmlo
- Open Visual Studio and add the Toolkit controls to the Toolbox
- 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.
Last revised: 24 May, 2011 08:27 PM
No new comments are allowed on this post.