Making StyletIoC a class library that does not require windows (PR?) #400
jacobcoughenour
started this conversation in
General
Replies: 1 comment 1 reply
-
|
There's a build task which outputs all of styletioc in a single file, if that's useful |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not sure if this is the right way to go about this but I have a fork where I moved the StyletIoC namespace into it's own class library.
The issue this solved was we have a shared library that uses StyletIoC for dependency injection that we wanted share between WPF and MAUI Android apps. We can't include Stylet in a MAUI app since it requires windows (net5.0-windows) so I broke off the StyletIoC namespace into a class library that doesn't require windows (netstandard). Now I'm able to have my shared library only include StyletIoC then both the WPF and MAUI project can include the shared library with the WPF app using Stylet for it's ViewModels.
If anyone wants it, I can cherry pick it out of my fork into a proper PR. I thought I should open an issue/discussion first.
BlairImage@8628efd
Beta Was this translation helpful? Give feedback.
All reactions