Referencing JSON.NET in Windows Phone 8

Sometimes we just want to knock our heads against the wall until the wall cracks or we loose our senses…

That’s how I feel now, after loosing more than 30 minutes figuring out how reference JSON.NET in a Windows Phone 8 Project.

So, I took the Silverlight assembly, and added it to the project and this is what I got:  a nice “A reference to a higher version or incompatible assembly cannot be added to the project.” error message..

cannot-import-assembly

After recompiling the assembly, and doing no matter what, I found out that all it takes is to unblock the file in windows explorer:

unblock-assembly

Et voilá.. now the assembly can be referenced on the project..

I’ll go just knock my head on the wall a bit more..

Cheers

One thought on “Referencing JSON.NET in Windows Phone 8”

Leave a Reply to sadegh Cancel reply

Your email address will not be published. Required fields are marked *

CAPTCHA Image

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>