A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/NuGet/Home/issues/562 below:

Unable to install Json.NET into Xamarin iOS Unified project in VS 2015 RC · Issue #562 · NuGet/Home · GitHub

Steps to reproduce

With Visual Studio Community 2015 RC, NuGet Package Manager 3.0.60410.213 and Xamarin installed (Xamarin was installed through the Visual Studio installer. No need to install the Android components).

  1. In VS 2015 create a new iOS project (e.g. Templates - Visual C# - iOS - Universal - Blank App (iOS)). Do not create a template from the Classic API category since this will have a MonoTouch target framework.
  2. Use NuGet UI to add Json.NET 6.0.8 to the iOS Unified project.

Expected result

Json.NET is installed and a PCL assembly is referenced by the project. NuGet should pick the Newtonsoft.json.dll from the lib\portable-net40+sl5+wp80+win8+wpa81 directory to be referenced by the project.

Acual result

Error reported: "Could not install package 'Newtonsoft.Json 6.0.8'. You are trying to install this package into a project that targets 'Xamarin.iOS, Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information contact the package author."

Installing Json.NET into an Android or iOS Classic project succeeds without any errors.

Looking at the NuGet source code it looks like the Xamarin frameworks are no longer treated as optional as they are in NuGet 2.8.x. Only the Mono frameworks are treated as optional.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4