I have some problems with adding references. I created Windows Phone project in Visual Studio 2013 and I need to add references System.Web.Extensions
to use System.Web.Script.Serialization
.
But when I right-click and choose "add reference", there is no such variant in the list, just some namespaces, connected to windows phone developing.
Also, there is an ability to add references to other projects from solution, but here I have the second problem - I can't add reference to simple class library, for example. It says me, that I can just add references to windows phone projects..
So, when can I read about changes in the reference system in VS2013 (and 2012 as I remember)? How to add reference to System.Web.Extensions
in my WP project? And is there an ability to use custom class libraries with references in this case?
Only assemblies created for Windows Phone are available in Windows Phone project references. This limitation isn't specific to Visual Studio 2013, older versions of Visual Studio has the same behavior.
Similar rule applies for the 2nd problem. You need to make the other project type be Windows Phone class library or Portable Class Library (PCL) that support Windows Phone, instead of common class library.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.