I am trying to compile AvalonEdit for Silverlight, but I am not sure how to do it as I never worked with Silverlight, only WPF.
I tried to add this control to my Silverlight application but Visual Studio complained that the assembly wasn’t compiled against Silverlight.
I thought it was gonna be a matter of picking Silverlight under the target platform in the project settings.
Any ideas?
You need to create new project which targets silverlight (File – New Project – Silverlight) and then add all the source code from the AvalonEdit source code into that library.
Edit:
Also note that the control might use classes that are not available in Silverlight. From the codeplex discussion related to this control (from year 2009):