Resources for WPF and Silverlight in the same assembly

I have resources in separate assemblies that will be used by several WPF applications, and this works fine. Now I am building a Silverlight 3 application and trying to use the same assembly to get the same resources. When I add the link, I get an error saying only Silverlight assemblies.
What is the best way for me to do this? Should I have 2 separate assembly sets for resources - one for WPF and one for Silverlight? I would not want to support two different but identical resource assemblies ...

thanks

Note: "adding links" to the file fixed the problem of sharing the same xaml in multiple assemblies. However, for me, one of the main drawbacks is that this feature is not supported in Blend 3! Blend tries to locate the file locally in the project tree.

+3
source share
2 answers

Unfortunately, .NET assemblies cannot be referenced in a Silverlight application.

For more information and possible solutions, see http://www.pagebrooks.com/archive/2008/10/11/sharing-code-between-.net-and-silverlight-platforms.aspx .

+3
source

, silverlight, ? , .

0

Source: https://habr.com/ru/post/1717981/


All Articles