Jacob
Jacob

Reputation: 3639

Json.Net NuGet (NuPack) Package Reference unable to find assembly compatible with target framework

I am getting an error when trying to add the Json.net package reference through the NuGet / NuPack Add Package Reference Dialog. The error I get is:

Unable to find assembly references that are compatible with the target framework 'Silverlight,Version=4.0,Profile=WindowsPhone'

I have the latest version of both the Windows Phone 7 SDK and the Package Manager tools installed. This is running in Visual Studio 2010.

Has anyone else run into this error?

Upvotes: 0

Views: 1155

Answers (1)

James Kovacs
James Kovacs

Reputation: 11651

According to James Newton-King (author of Json.NET), you can use the Silverlight 3.0 version.

http://json.codeplex.com/Thread/View.aspx?ThreadId=226910

Unfortunately the NuGet package doesn't properly indicate Windows Phone 7 support. So you'll have to add the reference the old-fashioned way. (e.g. Copy the assembly into a directory such as ~\lib\Json.NET - where ~ is your solution root - and Project... Add Reference...)

Upvotes: 1

Related Questions