I have a WPF project defined as follows:
Myapp.sln
Myapppppf
MyApp.Domain
In one of my xaml files in the MyAppWPF project, I am trying to reference the class defined in the MyApp.Domain project. I have a link to a project in MyAppWPF on MyApp.Domain. I am trying to create a link as follows:
<Window x: Class = "MyAppWPF.Window1"
xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml"
xmlns: local = "clr-namespace: MyApp.Domain; assembly = MyApp.Domain"
Title = "Window1" Height = "305" Width = "485">
<Window.Resources>
<local: MyClass x: Key = "mine" />
</Window.Resources>
</Window>
I get a message that the assembly was not found, but I can create an instance of the class that I want to reference in the code behind, so I know that I named it correctly.
How can I do it? Do I need a strong name or link to the dll directly instead of the link to the project?
source share