I'm trying to make a Universal App (Windows 8.1 & Windows Phone 8.1) and i need to deserialize Json with Json.NET library.

But i can't add a NuGet or dll reference to my Shared Project, i can do this only in Windows 8.1 and Windows Phone 8.1 project. I need this in my Shared project to prevent code duplication.

I'm using Visual Studio 2013.2 Final

Rightclick doesn't propose to manage Nuget Packages, and Project tab doesn't have "Add reference" item

How to do this ?

有帮助吗?

解决方案

Universal Shared project doesn't need to have any references/packages. Its concept is simplification and generalization of "Add as Link" option. You can try to install that packages (I suggest, PCLs) to both Win8 and WP8 projects and that probably will work, because Shared project uses, for example, Windows Store API without link to it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top