Can't reference an assembly in Xaml

So, i created a WPF custom control library and built using both F6 and shift+F6. I then created a test project to test the control and when i add the reference to the assembly in xaml i get this error

Error 1 Assembly 'CalendarControl' was not found. Verify that you are not missing an assembly reference. Also, verify that your project and all referenced assemblies have been built.C:\WpfApplication1\Mainwindow.xaml 4 26 WpfApplication1

I built both projects multiple times and I am able to reference it in the code behind of my test project so, it got to be some syntax error or something stupid. Below is how am referencing it in xaml

Re: Can't reference an assembly in Xaml

Posted 09 April 2012 - 08:16 AM

That's not weird at all that you can reference the class in code. That simply means that the project is referencing the DLL correctly. Referencing a class from code and from XAML is different(as you can see).

Re: Can't reference an assembly in Xaml

Posted 09 April 2012 - 08:27 AM

eclipsed4utoo, on 09 April 2012 - 10:16 AM, said:

That's not weird at all that you can reference the class in code. That simply means that the project is referencing the DLL correctly. Referencing a class from code and from XAML is different(as you can see).

Re: Can't reference an assembly in Xaml

Posted 09 April 2012 - 09:00 AM

Hmm....I had no problems adding a Custom Control project(called CalendarControl) to a solution, adding a Custom Control to the project, inheriting from Calendar, building, adding a reference from the UI project to the DLL of the custom control project, adding the XMLNS, and adding the control to the form.

Now when I added the XMLNS, it gave me this when choosing it from IntelliSense...

Re: Can't reference an assembly in Xaml

Posted 09 April 2012 - 10:16 AM

eclipsed4utoo, on 09 April 2012 - 11:00 AM, said:

Hmm....I had no problems adding a Custom Control project(called CalendarControl) to a solution, adding a Custom Control to the project, inheriting from Calendar, building, adding a reference from the UI project to the DLL of the custom control project, adding the XMLNS, and adding the control to the form.

Now when I added the XMLNS, it gave me this when choosing it from IntelliSense...

So, i picked the actual dll generated in the debug folder of my custom control instead of the one presented in the projects tab when adding a reference and that fixed my issue. Pretty dumb... but what is that dll in the projects folder for then? Thanks very much for you help