Reputation: 515
I have 2 Class Libraries that contain WPF Controls and resources in a Solution. I want to be able to share resources between them at Design-Time so I can actually see what I'm designing. At run-time everything is ok, as I am loading the dlls dynamically.
If I reference each project to each other I get a circular dependency issue
I am using blend & if I add a reference to the DesignTimeResources.xaml, a project reference is added which I don't want.
Any help appreciated.
Upvotes: 0
Views: 202
Reputation: 965
The below link demonstrates step by step process to achieve your requirement. I hope this will help you.
Set up the project for design-time debugging
Upvotes: 0
Reputation: 6185
Create a common project, and have both projects reference it. Then you will not have a circular reference.
If you make the class static, then it is even easier to share data.
Upvotes: 1