rebuy-de / rb-forms-barcode

Rb.Forms.Barcode is a Xamarin.Forms view for scanning barcodes.
https://github.com/rebuy-de/rb-forms-barcode
MIT License
43 stars 21 forks source link

Could not install Rb.Forms.Barcode 0.7.1 #60

Open ericbrunner opened 7 years ago

ericbrunner commented 7 years ago

Hi,

I just wanted to install the nugets in PCL , Droid and iOS project and get that install error:

Could not install package 'Rb.Forms.Barcode 0.7.1'. 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.

Hope you can help my out. thanks in advance

Eric

fvermeulen commented 7 years ago

Do you try it to install from a windows system?

If that is the case we all not working with windows systems and only able to try it out on mac. So you could help us to get it working on a windows system

Here is the other issue from windows users https://github.com/rebuy-de/rb-forms-barcode/issues/57

ericbrunner commented 7 years ago

@fvermeulen Yes Visual Studio 2015 Enterprise including latest stable Nuget Package Manager, Xamarin SDK and SP. I guess the PCL profile has to be changes on my side. But to which one?

ericbrunner commented 7 years ago

I digged through the source code and saw that your PCL is configured for that profile

TargetFrameworkProfile>Profile78

I will try to change my project, if no side effects popup!

fvermeulen commented 7 years ago

@ericbrunner I use PCL-Profile7 and with that it works as well fine, but which one do you used?

ericbrunner commented 7 years ago

@ I develop an Azure Mobile Apps Xamarin.Forms PCL App for Droid + iOS . The initial version was scaffolded by the Azure Portal with Profile=259.

ericbrunner commented 7 years ago

@fvermeulen Well I tried to switch to Profile7 but I get several compiler errors which is clear, because the nugets are not compatible anymore. Ok I understand that your nuget is not compatible to Profile259 now. Sorry I don't have the time to migrate my whole project only to be able to use your Rb.Forms.Barcode nuget. I will use ZXing.Net which is working.

fvermeulen commented 7 years ago

yeah you have to retarget your packages. But that is possible. In Xamarin Studio you have to press a button for that. I don't know how that will be handled in Visual Studio.

I looked what is PCL259 for and PCL 7. In your case it makes more sense to use PCL 7, but anyway sorry that I cannot help you with your problem

ericbrunner commented 7 years ago

@fvermeulen Could you send my a link or screenshot where I can do that migration in Xamarin Studio? Then I would copy my code temp. from TFS to MAC , switch to Profile7 and copy it back to my windows box.

rdoubleui commented 7 years ago

@ericbrunner after changing your profile right-click on the Packages folder and select Retarget.

screen shot 2016-12-21 at 08 28 20

ericbrunner commented 7 years ago

@rdoubleui Hi Thanks. I tried but I have no Retarget Command. I user the latest Xamarin Studio Community Edition. Do I have to install some Tools ?

xs_ios

rdoubleui commented 7 years ago

The feature has been there from version 5.2, don't think that there's a different behaviour within the community edition. What nuget version are you using? I recall you need to have at least nuget 2.1

rdoubleui commented 7 years ago

@ericbrunner were you able to solve the issue with XS?

ericbrunner commented 7 years ago

@rdoubleui I currently try to retarget to Profile=7. I get back to you when I succeed.

collaorodrigo7 commented 7 years ago

Do we have any progress with this? I am having the same problem. I tried updating my .csproj, and change the profile to 78 like on the sample, and at least it installed, I will test it soon. (However, I do not know how downgrading the profile will affect in the future.)

collaorodrigo7 commented 7 years ago

So I changed it to profile 78 for adding the package, and then change it back to 111. I tested the demo the same UI from the sample on the repo and seems to be working just fine.. I dont know if changing it back to profile 111 is a good idea or no, hope someone can give an opinion on that. Nice package, by the way, works pretty good!.

navkar commented 7 years ago

image

See the imports section below. This perfectly works for me using .net standard.

{ "dependencies": { "Acr.UserDialogs": "6.5.1", "Ansuria.XFGloss": "1.0.6.59", "CarouselView.FormsPlugin": "4.4.6", "FreshEssentials": "2.1.3", "Humanizer": "2.2.0", "libphonenumber-csharp": "8.8.4", "Microcharts.Forms": "0.8.3-pre", "Microsoft.AspNet.SignalR.Client": "2.2.2", "Microsoft.Azure.Mobile.Analytics": "0.16.0", "Microsoft.Azure.Mobile.Crashes": "0.16.0", "Microsoft.Azure.Mobile.Push": "0.16.0", "Microsoft.NETCore.Portable.Compatibility": "1.0.1", "modernhttpclient.standard": "2.4.2", "NETStandard.Library": "2.0.1", "Newtonsoft.Json": "10.0.3", "PCLStorage": "1.0.2", "Plugin.Permissions": "2.1.0", "Plugin.Share": "7.0.1", "Plugin.VersionTracking": "2.0.1", "Rb.Forms.Barcode": "0.7.1", "Refractored.MvvmHelpers": "1.3.0", "Rg.Plugins.Popup": "1.0.4", "SkiaSharp": "1.59.1", "SkiaSharp.Views.Forms": "1.59.1.1", "Splat": "2.0.0", "SQLite.Net.Async-PCL": "3.1.1", "SQLite.Net.Core-PCL": "3.1.1", "Toasts.Forms.Plugin-PCL": "3.2.0", "Xam.Plugin.Connectivity": "3.0.3", "Xam.Plugin.DeviceInfo": "3.0.2", "Xam.Plugin.ExternalMaps": "4.0.1", "Xam.Plugin.Geolocator": "4.1.2", "Xam.Plugin.Hud": "1.0.5", "Xam.Plugin.Media": "3.0.1", "Xam.Plugins.Forms.ImageCircle": "1.8.1", "Xam.Plugins.Messaging": "4.0.0", "Xam.Plugins.Notifier": "2.1.0", "Xam.Plugins.Settings": "3.1.1", "Xamarin.Controls.SignaturePad.Forms": "2.2.0", "Xamarin.FFImageLoading": "2.2.22", "Xamarin.FFImageLoading.Forms": "2.2.22", "Xamarin.FFImageLoading.Transformations": "2.2.22", "Xamarin.Forms": "2.4.0.282", "Xamarin.Forms.Maps": "2.4.0.282", "Xamarin.Forms.Pages": "2.4.0.282", "Xamarin.Forms.Theme.Base": "1.0.0.43-pre1", "Xamarin.Forms.Theme.Dark": "1.0.0.43-pre1", "Xamarin.Forms.Theme.Light": "1.0.0.43-pre1" }, "frameworks": { "netstandard1.4": { "imports": [ "portable-net45+win81+wpa81+wp8", "portable-net45+win8+wp8" ] } } }

kam0u commented 7 years ago

In my case I changed my project to profile 78 and still the package cannot be added, still having the same problem. The NuGet package is getting installed on Android and iOS projects but not on PCL

Windows System Visual Studio 2017 Xamarin Forms 2.5.0.91635 Microcharts.Forms 0.7.1