-
Notifications
You must be signed in to change notification settings - Fork 446
Xamarin support tracking issue #1886
Comments
We also need to determine our plan for MsgPack in Xamarin. If we support it in the initial release, we need to make sure it's configured appropriately to not use Reflection.Emit. |
Most of these PRs are closed, are they in a public build or can we get some access to a build that has these fixes to test out? @davidfowl |
Is there an actual version that actually works? Trying to get this to work but getting system.memory error all the time. |
/cc @migueldeicaza |
I have the same "system.memory" issue on Xamarin Android (.NET Standard) project using AspNetCore.SignalR.Client. Is there any further update on this please? (I can make progress using UWP) |
I found to get Android building, directly reference: system.memory |
Version="1.0.0-preview2-final" doesn't build for iOS project on VS 2017 15.6.6 Failed to resolve "System.Buffers.IBufferWriter`1" reference from "System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" |
@mikaelm12 Did you get a chance to look into this yet? |
@muratg I'd need access to a build with these fixes |
@mikaelm12 sounds good, punting the verification out of the milestone. |
To clarify, it solves IL build-time issues, however iOS requires ahead-of-time native compilation and it will fail there. |
Got it, will wait for Xamarin update. |
I've updated to Visual Studio 2017 15.8 Preview 3 which includes Xamarin.Android 8.4.0.1 and Xamarin.iOS 11.14.0.4, installed Microsoft.AspNetCore.SignalR.Client and Microsoft.AspNetCore.SignalR.Client.Core 1.0.1 and am still getting this error when trying to build my Android app on Xamarin Forms. I've not yet tried iOS as I don't want to update Xamarin.iOS on my build Mac to a preview version. |
After updating to all the latest bits as suggested to fix the issue by @anurse , I was still having issue and the fix for me was to create a new project and copy files over. (was a pain but works after that) |
Maybe delete all packages from project and reopen the project may be a quicker way to get all fresh libraries but didn't try it |
@reznor244 did you also install the additional dependencies listed in aspnet/Announcements#305 ? @eopeter Hrm, I wouldn't have thought you'd have to recreate the project. I didn't have to do that, but I had a very simple test project. Glad it did work out in the end... |
@anurse No, I had not seen that announcement. I installed them just now and am still receiving the same build error. I created a new Xamarin Forms project and installed all the packages and still cannot build the Android app. I get 4 "Can not resolve reference: 'System.Threading.Tasks.Extensions'" build errors even though I have installed v4.5.1 on both the SignalR client project and Android app project. I also tried installing the SignalR.Client and other dependencies directly on the Android project rather than a separate project. Same errors. |
Can you provide you |
These are from a fresh test project I created to try to see if I could get it to build, so no sensitiveinfo. TestSignalRClient.csproj: https://gist.github.com/reznor244/2f5bcac412060400c5b0119d75925f9a |
Hrm, I'm not able to reproduce this with our Xamarin.Forms client sample. Can you push your test project up to a GitHub repo and open a new issue for this? I want to try reproducing this with exactly the same project you are. Please also include your Xamarin versions so I can compare them with the ones I'm using. |
With 1.0.2 I get System.IO.FileNotFoundException: Could not load file or assembly 'System.Numerics.Vectors, Version=4.1.3.0 on Android with Xamarin. The UWP Xamarin project works fine. |
ok, I just saw the announcement and need to wait for 15.8 update to get it working. |
15.8.0 Preview 4.0 is released |
@marchanddesable there is already Preview 5, but I don't want to install a Preview, I want a stable version. |
ok, the 15.8 Preview 5 works. So I wasted some time to figure this out. The docs are wrong until 15.8 gets out:
Because of this statement I did not expect my issue. |
Any update on this since 15.8.1 is out now? I don't want to update just yet because last time I did, Xamarin.iOS wasn't working at the time and I had to uninstall VS, resulting in losing my keystore. |
@Titonton 15.8.1 works for Android if I use packages.config. I can't speak about iOS. |
I was able to use it with iOS on a shared project. I was unable to get it to work on .NET Standard 2.0 because mtouch would fail to link Systems.Threading.Tasks.Extensions 4.5.1 because of some reference issues (see xamarin-macos issue #4629). There may be a work around, but I stripped out the feature requiring SignalR (business decision to put the new feature on hold). Hopefully that is resolved in next update. |
Remove the app.config from the project. It helped me for Xamarin.iOS and Xamarin.Andoird |
Based on the info here aspnet/Announcements#305 I was hoping to finally get my Xamarin iOS client working with ASP.Net Core SignalR, but still no luck. I get an exception when the client tries to connect to the hub:
The code above works in the iPhone simulator, but crashes on the device itself. I am using Visual Studio 15.8.0 with Xamarin iOS 11.14.0.13 on Windows 10; Visual Studio for Mac 7.6.1 Build 9 with Xamarin iOS 11.14.0.13 on the Mac. Latest released Nugets for AspNetCore SignalR (server and client). Any help is highly appreciated. |
@anurse Hey! Is there any way to use SignalR Client 1.0.0-preview1-final in Xamarin? Exactly this version is used on server and I can't affect this. If I set linker behavior to But if I use There is part of my I have latest VS Mac and Xamarin versions (the issue was present with earlier versions as well):
|
@rs1t |
Nope. Preview1 is a preview for a reason, things changed, bugs were fixed you can't go back in time to use old preview versions, they are unsupported (and frankly probably buggy). |
@MagicAndre1981 @davidfowl |
Nope, the preview builds had critical issues that prevented them from working with Xamarin. We fixed this in the final client release.
Please file these issues and we can look at resolving them. |
Ok, thanks! I'll mention it to my backend team. |
That's always been the case, leaking errors to the client is a security problem, you can EnableDetailedErrors to show the actual error but that really has nothing to do with this issue. I suggest you open another one if you're having a different problem.
You can change the client only but you can't use preview versions after we've shipped the final one. |
There's a bunch of work that is planned but that is also required to make SignalR work. There is an issue in System.Memory preventing it from being used in Xamarin applications. This issue is tracking the work that is being done in corefx to remedy the situation.
The text was updated successfully, but these errors were encountered: