-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ReactiveUI .net 4.5 without WPF #925
Comments
Waiting for this to be fixed. 👍 Or workaround, of course. |
I was wondering if a stub PresentationFramework.dll for mono might fix this at least in the short-term? |
'spoke with @grokys today. Avalonia currently has had to maintain their own fork because of this issue, they would love to not have their own fork. |
Hi guys! @ghuntley and I have been talking and he proposed the following: @grokys Do you think this will work? Well, we have talked a bit more and it seems it's everything related to this issue: |
Yep, I mentioned this above in a comment:
However it wasn't as easy as I anticipated. I can't remember the details but I seem to remember the stub had to go pretty deep. |
The issue I'm running up against is that referencing RxUI from our PCL libraries works fine, but our unit test libraries have to target NET45/Mono in order for things like Moq to be available. When we run our unit test libraries under mono, RxUI looks for PresentationFramework.dll which isn't available. Any ideas on how to solve this? Could RxUI-Core be separated from the PresentationFoundation requirement? |
To anyone else that comes across this issue, forcing my unit test project to reference the portable reactive dll instead of the net45 dll resolves the issue. This seems to be a somewhat well-known issue with nuget and mono net45 (in that nuget will choose net45 over the portable library). |
I've been thinking of dropping references WPF from the |
@ghuntley - this would be a great idea IMO. I've tentatively tried a few times to prepare a PR to get ReactiveUI building for Avalonia, but the fact all the WPF stuff is mixed in with the main project makes this difficult. |
@jkoritzinsky thank-you very much! 👍 Have reviewed and merged your contribution! @SuperJMN @petersondrew @grokys and @jkoritzinsky let me know how you go. Open up another issue if you experience any further issues with WPF references w/mono causing 💥s. This change will be included in v8.0 release (netstandard) |
Hi, this is related to #734 but coming at it from a slightly different angle.
I'm currently working on https://github.com/grokys/Perspex/ which aims to be a cross-platform UI toolkit somewhat similar to WPF. I would like to be able to support ReactiveUI but its being tied to WPF poses problems with cross-platform usage, in that when run on mono ReactiveUI tries to load PresentationFramework which doesn't exist on that platform.
I realize that you probably wouldn't want to add support for such a fledgling project directly in ReactiveUI right now, but I was looking to at least find a way to work around the problem.
What would be the best thing to do? Is there a simple hack I can use to make ReactiveUI not try to load WPF on mono? Or should I create a perspex-specific fork of ReactiveUI for now?
I'd be interested to hear you thoughts.
The text was updated successfully, but these errors were encountered: