Converter support in WinRT / Metro

Aug 2, 2012 at 2: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=4.5.0.0, 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 3:03 PM

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

Dec 4, 2012 at 3: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 5: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 10:19 PM
Thanks, that was driving me nuts.