Refit: Nuget 3.0 Regression cannot install for PCL Profile 7

Created on 17 Aug 2016  Â·  7Comments  Â·  Source: reactiveui/refit

In attempting to upgrade refit from 2.4.1 to 3.0 I am getting the following error:

Could not install package 'System.Runtime.InteropServices.RuntimeInformation 4.0.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile7', 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.

outdated

Most helpful comment

Unfortunately this is a bug in the Sys.Runtime.InteropServices.RuntimeInformation package: https://github.com/dotnet/corefx/issues/10445. when trying to install into a "netstandard 1.1" profile-based PCL (like 7 or 111).

The workaround for now is to use project.json and a netstandard1.1 library. Any project type can use .net standard.

All 7 comments

Unfortunately this is a bug in the Sys.Runtime.InteropServices.RuntimeInformation package: https://github.com/dotnet/corefx/issues/10445. when trying to install into a "netstandard 1.1" profile-based PCL (like 7 or 111).

The workaround for now is to use project.json and a netstandard1.1 library. Any project type can use .net standard.

I'm using Xamarin and I'm trying to install refit on my Portable project, can anyone explain how can I fix this? How do I use project.json and netstandard1.1 if I'm using mono?
Thanks

I'd recommend using version 2.0.0+ there are some issues with v3.0.0
On Tue, Sep 13, 2016 at 9:35 AM joaoasilva [email protected] wrote:

I'm using Xamarin and I'm trying to install refit on my Portable project,
can anyone explain how can I fix this? How do I use project.json and
netstandard1.1 if I'm using mono?
Thanks

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/paulcbetts/refit/issues/257#issuecomment-246667042,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGr-6v1tluSlTs9D9U9icjoWD1g5knNcks5qppifgaJpZM4Jmezu
.

I don't think supports .NET Standard yet, but I believe they're working on it. Xamarin Studio just got support for it in the stable branch on Tuesday.

In Xamarin Studio 3+ version not installed.. but 2.4 refit installed successfully.

Shall I use this lower version?

XS supports .NET Standard Libraries. There may be a bug with the NETStandard.Library 1.6.0 which is resolved by installing NETStandard 1.6.1 first.

Will be fixed in 3.1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SOFSPEEL picture SOFSPEEL  Â·  4Comments

fonix232 picture fonix232  Â·  4Comments

omares picture omares  Â·  6Comments

nvivo picture nvivo  Â·  6Comments

jstafford5380 picture jstafford5380  Â·  4Comments