Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Refit on Xamarin Forms PCL Error #260

Closed
LuigiMaestrelli opened this issue Sep 5, 2016 · 3 comments
Closed

Install Refit on Xamarin Forms PCL Error #260

LuigiMaestrelli opened this issue Sep 5, 2016 · 3 comments
Labels

Comments

@LuigiMaestrelli
Copy link

I'm trying to install the 3.0 version on my Xamarin.Forms PCL Application.
In the platform specifics projects the package installs with no problem.
But on the Portable project I got this 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=Profile111', 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 was able to install the 2.4.1 version without any problems, but not the 3.0.

My portable project targets:

  • .NET 4.5
  • ASP.NET Core 1.0
  • Windows 8
  • Windows Phone 8.1
  • Xamarin.Android
  • Xamarin.iOS
  • Xamarin.iOS (Classic)
@clairernovotny
Copy link
Member

clairernovotny commented Sep 5, 2016

Closing as a dup of #257. The workaround is to use project.json instead of packages.config in your project. My blog shows how to use Xamarin Forms with project.json and .NET Standard.

@kjeremy
Copy link

kjeremy commented Sep 6, 2016

Isn't Microsoft dumping project.json? https://blogs.msdn.microsoft.com/dotnet/2016/05/23/changes-to-project-json/

@biapar
Copy link

biapar commented Sep 10, 2017

Is't enough to install refit via nuget and reference .netstandard lib into PLC project?

@lock lock bot added the outdated label Jun 25, 2019
@lock lock bot locked and limited conversation to collaborators Jun 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants