Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rx 2.1 & Xamarin

I'm trying to build an app on Xamarin that targets multiple platforms but uses rx. So far I've created a core PCL which I would like to use rx, but when I tried to import the rx 2.1 nuget package I get the following error:

You are trying to install this package into a project that targets 'portable-net40+win+sl50+wp80+MonoAndroid10+MonoTouch10', 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.

I am aware that there is an rx component in the xamarin store, but it doesn't seem like I can add this into my PCL.

It seems to me that ideally I want the core rx libraries in the PCL, but that platform specific schedulers should be imported in the platform specific app implementations.

What is the best way to proceed at the moment?

n.b. I am aware this has been touched upon in other questions, but the answers pre-date release channel PCL support in Xamarin.

edit:

I've modified my PCL to target .net 4.5 (and removed silverlight). I can now pull in the rx nuget package but I'm getting a build warning that it cannot resolve 'system.runtime.interopservices.windowsruntime'.

like image 466
DanH Avatar asked Nov 08 '13 12:11

DanH


People also ask

Is a RX 6600xt better than a RTX 3060?

The RTX 3060 did edge ahead by a 7% margin at 1440p, but overall performance was very similar. Performance was also similar when testing with Apex Legends. In short, the 6600 XT was slightly faster at 1080p and then slightly slower at 1440p.

Is the RX 6600M good for gaming?

In Death Stranding at 1080p, the 6600M is one of the stronger performing GPUs, beating both RTX 3060 models in the chart by around 5 percent. There's still a gap to the higher performing RTX 3070 models, however the 6600M is once again showing its strength for 1080p gaming in the mid-range.

Is the RX 6700xt better than the RTX 3070?

At 1440p, maxed out, the RX 6700 XT is 17% faster than the 3070 and is closer to the RTX 3080, according to several benchmarks. We can see the same trend in Assassin's Creed Valhalla, another AMD-optimized title, where it beats the RTX 3070 by 14% at 1440p.

Is Rx better than GTX?

Winner: AMD. AMD's Radeon RX 590 offers higher memory bandwidth, more memory capacity, and the GPU is built on a smaller, more efficient manufacturing process than Nvidia's GeForce GTX 1060.


2 Answers

Have a look at Paul Betts's ReactiveUI on GitHub. I've not done any Xamarin development personally, but I know that project uses Rx and is organised to run on multiple platforms including Xamarin - it will probably give you the right approach.

Paul Betts's also mentioned this in another question: Is Reactive Extensions 2.1 PCL compatible with Xamarin?

like image 136
James World Avatar answered Oct 04 '22 15:10

James World


At the moment, Xamarin Stable can't build PCLs (Alpha just got it, I haven't experimented with it though). Just use multiple csproj files at the moment (see https://github.com/paulcbetts/starter-mobile for an example)

like image 20
Ana Betts Avatar answered Oct 04 '22 17:10

Ana Betts