This project has moved and is read-only. For the latest updates, please go here.

Converter support in WinRT / Metro

Aug 2, 2012 at 3:51 PM

Hi, I'm trying to use Json.NET in a metro app which was working fine until I try to use CustomCreationConverter.  When I use it I get the following errors:

Cannot resolve Assembly or Windows Metadata file Newtonsoft.Json.dll

Error 4 Type universe cannot resolve assembly: Newtonsoft.Json, Version=, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed.

Does this mean that I cant use converters in a metro app or is there something I can do to fix it?

Aug 3, 2012 at 4:03 PM

Never mind, VS is playing nice today.  No error and nothing changed

Dec 4, 2012 at 4:08 AM

I'm having an issue with this too, but VS is not being nice to me.

I have a Windows Store Class Library project that is referencing the Newtonsoft.Json.dll.  Maybe that is causing an issue?

How does your project look?

Dec 25, 2012 at 6:04 PM

I had the same issue. Project structure was the following.

  • WinRT project 
    • Class library
      • Newtonsoft.Json.dll

I fixed the issue by adding Newtonsoft.Json.dll to the WinRT project. 

  • WinRT project 
    • Newtonsoft.Json.dll
    • Class library
      • Newtonsoft.Json.dll
Apr 1, 2013 at 11:19 PM
Thanks, that was driving me nuts.