-
Notifications
You must be signed in to change notification settings - Fork 69
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
Xamarin Support #10
Comments
Update, it is not supported. After looking at the code it looks like some of the practices are pretty dated (HttpRequest being used instead of an HttpClient). Any plans to update this to a PCL project ? |
+1. This has been open for 16 months, can we get an update? |
It is in our plans to have better support for all popular framework, including a Xamarin SDK. As it is currently not in our immediate plans, we have no ETA to share. |
Seems like you could just move this over to a .NET Standard library so you could support Xamarin, WPF, .NET, .NET Core, ASP.NET, and tons of other ones too. Might be worth investigating making this investment for all developers. |
It actually looks like you have a .NET Standard Library already targeting 1.6. Although it has a weird name of "NetCoreShared" it isn't related to .NET Core at all. This actually is consumable in Xamarin.iOS and Android projects as Xamarin Support the 1.6 .NET Standard Library spec. |
The standard library simply does not work. The UploadAsync method never completes. The logs have this. System.OperationCanceledException: The operation was canceled. |
Hey guys, replying by the order:
Directly, no – it`s not supported. But –
Yes, this might work across new .net core implementation. No one checked this on our end though.
Not exactly. NetCoreShared is a library that targets .net core and this is how it should be used in .net core based projects.
Not sure what you mean by “standard library”. When we (RTL team) started supporting .net core, we reworked project's structure only and did not touch the code. What you are describing can be a bug that was not included in our scope and lived there for a long time. We'll consult with Cloudinary on this. |
@NVentimiglia and knowing the version about your last question about standard library could also help. |
So pulling down the project I saw that it is actually a .NET Standard Library, not a .NET Core Library, which is actually good because .NET Standard Libraries are .NET Libraries that can be consumed by any .NET Application that adhears to the profile selected, in this case 1.6: https://docs.microsoft.com/en-us/dotnet/standard/library I was able to pull in the library into a Xamarin.Android Project by adding a few other NuGets to it and it compiled just fine, however I didn't actually test out the APIs though, but from what it sounds like it isn't finished yet. There always seems to be a lot of confusion around .NET Core vs .NET Standard Libraries and how they mesh together.. .NET Core is a .NET Runtime that runs on Windows/Mac/Linux, just like .NET Framework has a .NET Runtime that runs on Windows, and Xamarin has a .NET Runtime that runs on Mac/iOS/Android/Windows/Linux/EverythingElse. Each of them you can create a Class Library for a single platform such as .NET Core or WPF for instance and take advantage of the .NET and Libraries of the platform. However, since each platform has .NET you ideally want to just write some .NET code and have it be able to be consumed by any of these platforms. That is what a .NET Standard Library does and comes into play. It lays down a contract of what APIs each platform must implement to partake in each version... 1.0, 1.1, ... 1.6, 2.0 for instance. Each version contains more and more APIs, but may lose some platforms such as older windows phone/store devices. So, if you target .NET Standard 1.6 you get: .NET Core, Xamarin, Mono, and .NET Framework 4.6.1 that can consume your library. Additionally, when the next version of UWP comes out that support .NET Standard 2.0 it can also consume a 1.6 library. These platforms are documented on the GitHub link I sent. Hope that helps. |
Exactly, @jamesmontemagno We targeted .NET Standard 1.6 to be able to work in .net core and other related projects. @NVentimiglia Please let me know the version so we'd start working on it. |
@RTLcoil I pulled from master. Testing on a Xamarin.Forms 2.3.4.247 Android, IOS, and PCL project |
@NVentimiglia Thank you. Could you also clarify if what was the DLL version used? NetCoreShared or cloudinaryDotNet. Seems it was NetCoreShared, but just want to make sure. |
Yes, NetCoreShared. |
Hi, So I have a question, how can you change the .NET Standard Platform from 1.5 to 1.6 since it's not in the list? Is it because I'm generating the Xamarin PCL solution from a Mac? Thank, Max |
@Emixam23 not sure I understand your question and the list you are referring to, but we do support 1.6. Could you clarify what you mean? |
I cannot change the target as the others explained, I can only chose the framework 1.5, I don't have the the 1.6 as target Framework |
@Emixam23 “I can only chose the framework 1.5” |
Yes sorry ! I'm on MacBook Pro OS X (Sierra). I'm using Visual Studio (7.1.3). My project has the following
When I go to However, if I follow the link above, I can't, if I check the [.NET Standrad Platform |
Thanks, @Emixam23 a few questions:
|
Well, I can't add it... Over the PCL part, it throws : *Running non-parallel restore.
On android: Attempting to gather dependency information for package 'CloudinaryDotNet.1.0.30' with respect to project 'PROJECT.Droid', targeting 'MonoAndroid,Version=v7.1' |
Thanks @Emixam23, let me check this with the team next week. |
@Emixam23 So I checked it and the package that you are using does not support netstandard. We have a package which does support it internally and it should be published soon. |
Thanks to @jamesmontemagno for his video for sharing a .NET Core 2.0 project instead of a PCL. However, even if I can add the CloudinaryDotNet into both .NET Core 2.0 Project and Android side, I have compilation errors such as :
Any idea @RTLcoil? |
@Emixam23 can you provide a step by step description of how you get this error? We would like to reproduce it on our end, so we also need to know your Android environment, pack version, etc. |
Hi, I am sorry but it was a mistake from my side. I tried with the bad package I guess. Thanks |
It works with Xamarin :) I have a Xamarin solution (.NET Core 1.6, Android 7.1, iOS, UWP Build 16299)
There is an example of how you can use it:
Hope it helps ! |
Hey @Emixam23, seems like there's another pack you should download to make it work, take a look at this and let me know if this clarifies https://www.dropbox.com/s/zd4ikxxuaixkagl/nOoFF.png?dl=0 |
Hey ! I just tried to give working solution :) Right now I am busy but in like 2 weeks, I will work again with cloudinary, that will be the moment to try your situation :) best, |
Sounds good! |
I am having the same errors as @Emixam23. Has the netstandard version been released, @RTLcoil ? |
If you're having the same problem it means you don't have the right package.. you need CloudinaryDotNet and not CloudinaryCore Max :) |
My apologies, I didn't clarify. I am using CloudinaryDotNet. I have decided to rollback to 1.6 and drop my RestSharp NuGet (only works with 2.0). :( |
@ediewoelfle Could you maybe elaborate on what are you experiencing? also if you could share the details of your environment it would also help us in understanding. |
@idobarnoam I have added the I tried the .NET Core SDK as described here. This compiles but does not upload an image using the following code. I have tried uploading the path and the stream.
However both upload results return an object with all properties set to null, and there is nothing in the Cloudinary dashboard. EditTurns out the file size was too big, I got this message from the Json "File size too large. Got 10790535. Maximum is 10485760." To confirm, this is using the .Net Core package. |
Hi @c-lamont. I couldn't manage to reproduce the issue you have with Xamarin Android. Could you please try removing the Cloudinary NuGet package and re-add it? let me know if that helps? |
@roeeba I tried multiple times. Removed all output paths and packages and restored them. Also in the |
Hi @c-lamont. Please try the following solution: Regarding the |
Severity Code Description Project File Line Suppression State |
@ah3eyy Can you please share the full error stacktrace and a minimal code project so we can try and replicate this error? |
I got it fixed had to install a dependency to fix it
…On Sun, Feb 2, 2020, 12:03 Roee Ben-Ari ***@***.***> wrote:
@ah3eyy <https://github.com/ah3eyy> Can you please share the full error
stacktrace and a minimal code project so we can try and replicate this
error?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10?email_source=notifications&email_token=AIJASJ6E2ZMZXFBQTIEYZU3RA2R63A5CNFSM4BORKHGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKRT7NA#issuecomment-581124020>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIJASJ7YPV4TVIAK5EQU4H3RA2R63ANCNFSM4BORKHGA>
.
|
Does Cloudinary support Xamarin mobile clients ? Xamarin uses the mono subset (4.5), not the full .net runtime.
The text was updated successfully, but these errors were encountered: