Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Could not install Rb.Forms.Barcode 0.7.1 #60

Open
ericbrunner opened this issue Dec 18, 2016 · 17 comments
Open

Could not install Rb.Forms.Barcode 0.7.1 #60

ericbrunner opened this issue Dec 18, 2016 · 17 comments

Comments

@ericbrunner
Copy link

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
Copy link
Contributor

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
#57

@ericbrunner
Copy link
Author

@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
Copy link
Author

ericbrunner commented Dec 18, 2016

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
Copy link
Contributor

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

@ericbrunner
Copy link
Author

@ 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
Copy link
Author

ericbrunner commented Dec 19, 2016

@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
Copy link
Contributor

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
Copy link
Author

@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
Copy link

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

screen shot 2016-12-21 at 08 28 20

@ericbrunner
Copy link
Author

@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
Copy link

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
Copy link

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

@ericbrunner
Copy link
Author

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

@collaorodrigo7
Copy link

collaorodrigo7 commented Nov 3, 2017

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
Copy link

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
Copy link

navkar commented Nov 8, 2017

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
Copy link

kam0u commented Nov 20, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants