smstuebe / xamarin-fingerprint

Xamarin and MvvMCross plugin for authenticate a user via fingerprint sensor
Microsoft Public License
491 stars 116 forks source link

unable to build ufter upgrading nuget to 1.3 #34

Closed nikolica closed 7 years ago

nikolica commented 7 years ago

The primary reference "Plugin.Fingerprint, Version=1.3.0.0, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the assembly "Plugin.Fingerprint.Abstractions, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null" which was built against the ".NETPortable,Version=v5.0" framework. This is a higher version than the currently targeted framework ".NETPortable,Version=v4.5,Profile=Profile111".

smstuebe commented 7 years ago

Try to update your VS and/or read: https://github.com/onovotny/Zeroconf/issues/60

musterid commented 7 years ago

I been having a very strange behavior for the passed week. So I had everything updated in VS2015 and the project was working fine. I installed the VS 2017 RC and everything broke. Since then I have uninstalled VS2017 but I get similar error

The primary reference "Plugin.Fingerprint, Version=1.3.0.0, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETPortable,Version=v5.0" framework. This is a higher version than the currently targeted framework ".NETPortable,Version=v4.5,Profile=Profile259".

Anyone had this as well?

nikolica commented 7 years ago

I resolved the issue by following this: http://motzcod.es/post/148657853472/installing-a-pcl-into-netstandard-libraries and another issue is that xamarin studio (which i need to build ios version of the app) doesnt know how to handle this so i installed visual studio for mac and it works 🎉

smstuebe commented 7 years ago

Ye, I think its because I already switched to netstandard :) Sorry for being an early adopter :P

kspearrin commented 7 years ago

So we can't update to 1.3.0 without adding .NET Standard support to our App PCL?

smstuebe commented 7 years ago

@kspearrin: No, You can reference .net standard lubs from PCLs and vice versa. E.g. the Sample app is doing it. Please read about what .net standard is (https://docs.microsoft.com/de-de/dotnet/articles/standard/library#net-platforms-support) and update VS and everything else to the latest version.

kspearrin commented 7 years ago

@smstuebe I am running VS 2015 Update 3, fully up to date. Xamarin.Forms latest, PCL. Installing the nuget package for 1.3.0 does not allow the project to build, as mentioned in this issue. I've been using 1.2.0 up until now.

The sample app does not seem to be using the nuget package (looks like a local reference), so it may be behaving differently. Please try the nuget package with a regular PCL project (no project.json stuff) and you should see the issue.