Skip to content

Microsoft.AspNet.WebApi.Client does not support Xamarin.iOS and MonoDroid targets #1760

@alot1

Description

@alot1

Hi,

Looks like Microsoft.AspNet.WebApi.Client 5.2.3 nuget package is not compatible with Xamarin.iOS and MonoDroid projects.
When trying to add the package using VS2015 or Xamarin Studio the package manages gives an error:

Could not install package 'Microsoft.AspNet.WebApi.Client 5.2.3'. 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.

The package manager in VS2013 is less strict with validation and does allow to install the package to Xamarin.iOS and MonoDroid projects adding a reference to assembly in lib\portable-wp8+netcore45+net45+wp81+wpa81\System.Net.Http.Formatting.dll. And it does compiles and runs correctly.

Would it make sense to update the package to support the Xamarin targets properly?
Probably just adding +monoandroid+monotouch+xamarin.ios10 should be enough?

Thank you,
Alexey.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions