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.
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
Most helpful comment
Unfortunately this is a bug in the
Sys.Runtime.InteropServices.RuntimeInformationpackage: 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.jsonand anetstandard1.1library. Any project type can use .net standard.