Skip to main content
Home Forums Silverlight Programming Programming with .NET - General xerces.net
1 replies. Latest Post by trentnix on March 26, 2008.
(0)
imiruseini
Member
6 points
8 Posts
03-26-2008 8:25 AM |
I have tried to reference xerces.net.dll to my VS 2008 reference library but get this error:
"You can`t add a reference to xerces.net.dll as it was not built against the Silverlight runtime. Silverlight projects will only work with Silverlight assemblies."
Is there somebody who have tried this before?
trentnix
128 points
32 Posts
03-26-2008 8:38 AM |
If you have a Silverlight project, that project is going to run on the DLR. In order to use that DLL in your project, it needs to be built against the Silverlight DLR. If you had built xerces.net.dll against say, the .Net Framework 3.5, and a client machine only had the .Net Framework 2.0 installed, you wouldn't expect your DLL to run. This is a similar situation.
Any DLLs that you reference in your Silverlight project must be DLR-friendly (built against the Silverlight runtime).