Replies: 1 comment 2 replies
-
I've discovered Modules which seems like they could fix the problem but actually doesn't. I can define two modules one in the shared project and one in the platform project. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using Xamarin.Forms so we have .net standard shared project, with most of our types defined, but also we have some services which must be defined in platform specific projects.
The platform specific services have interfaces which are defined in the shared project, that way shared services can depend on the interfaces and the implementation can be in the plaform specific project.
(there is a xamarin example but it only has shared services so only has one container defined in the shared project)
Ideally we would like to be able to define a container in the shared project with all the shared services and a container in the platform specific project containing the platform specific services.
Is it possible to define multiple containers in different projects and have them work together so that the shared project container can resolve services defined in the platform specific container?
Beta Was this translation helpful? Give feedback.
All reactions