alexrainman / ModernHttpClient

ModernHttpClient
MIT License
126 stars 28 forks source link

Can not update package from v2.6.0 to v2.7.2 #22

Closed mohed closed 5 years ago

mohed commented 5 years ago

Hi.

When attempting to upgrade the package from the nuget manager inside vs2017 i get the following error message.

Error: Could not install package 'modernhttpclient-updated 2.7.2'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', 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.

I have the package installed in a portable library targeting .net v4.5, a xamarin.android project and a xamarin.ios projekt. What am I dowing wrong?

InquisitorJax commented 5 years ago

@mohed this nuget isn't meant to be used with .NET 4.5 libraries. If you want to create a shared library between android and iOS, you should be using .NET Standard libs - which this will support. image

alexrainman commented 5 years ago

I can fix that problem with a 2.7.3 release. In the meantime, add the reference to your shared pcl library manually. The dll will be at lib/netstandard20

alexrainman commented 5 years ago

I am releasing a new version that includes portable libraries support.