rb-forms-barcode icon indicating copy to clipboard operation
rb-forms-barcode copied to clipboard

Could not install Rb.Forms.Barcode 0.7.1

Open ghost opened this issue 8 years ago • 17 comments

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

ghost avatar Dec 18 '16 08:12 ghost

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

fvermeulen avatar Dec 18 '16 14:12 fvermeulen

@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 avatar Dec 18 '16 21:12 ericbrunner

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

TargetFrameworkProfile>Profile78</TargetFrameworkProfile>

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

ericbrunner avatar Dec 18 '16 21:12 ericbrunner

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

fvermeulen avatar Dec 19 '16 06:12 fvermeulen

@ 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 avatar Dec 19 '16 09:12 ericbrunner

@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.

ericbrunner avatar Dec 19 '16 09:12 ericbrunner

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

fvermeulen avatar Dec 19 '16 09:12 fvermeulen

@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.

ericbrunner avatar Dec 19 '16 09:12 ericbrunner

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

screen shot 2016-12-21 at 08 28 20

rdoubleui avatar Dec 21 '16 07:12 rdoubleui

@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

ericbrunner avatar Dec 21 '16 07:12 ericbrunner

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 avatar Dec 21 '16 08:12 rdoubleui

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

rdoubleui avatar Dec 23 '16 07:12 rdoubleui

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

ericbrunner avatar Dec 24 '16 09:12 ericbrunner

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 avatar Nov 03 '17 05:11 collaorodrigo7

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!.

collaorodrigo7 avatar Nov 03 '17 07:11 collaorodrigo7

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" ] } } }

navkar avatar Nov 08 '17 23:11 navkar

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

kam0u avatar Nov 20 '17 09:11 kam0u