Replies: 1 comment
-
For anyone coming here in the future: The correct package to use with any Xamarin application is Prism.DryIoc.Forms (and not Prism.DryIoc) as described here. My project was using Prism.DryIoc in order to create a DryIoc bootstrapper inheriting from PrismBootstrapperBase, which is in the Wpf project. I solved the problem by extracting the needed code from PrismBootstrapperBase and removing the reference to Prism.DryIoc. Here is the bootstrapper's code for reference:
|
Beta Was this translation helpful? Give feedback.
0 replies
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 am using a class library for tests and I need to configure DryIoc, so I reference the Nuget package Prism.DryIoc. Note that I am working on a Xamarin solution and do not have (or need) any WPF (or other Windows) components.
When my class library is set to .NET Core 3.1, it compiles correctly. If I change it to .NET 5.0 or .NET 6.0 however, I get this error:
When I review the references from Prism.DryIoc I see that it references Prism.Wpf.
Does anyone know a way to complete remove any Wpf dependencies, so that I can compile my library directly with .NET 6.0 without issues and without having to specify Windows as target framework?
Steps to reproduce:
Sample class library attached.
ClassLibrary1.zip
Beta Was this translation helpful? Give feedback.
All reactions