I have a lot of code modules in my project.
I use a lot of custom classes in markup, so I have lots of references along the lines of
<local:specialButton .... >
etc.
And at the top of each XAML source file I have
<
Mapping XmlNamespace="local" ClrNamespace="my full namespace" Assembly="myAssembly" ><
Application (or whatever) x:Class="blah" xmlns="http://schemas.microsoft.com/winfx/avalon/2005" xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005" xmlns:local="local">All was fine, until I moved from Nov CTP to Jan CTP.
Suddenly I have 186 errors when I try to build. They are mostly
Error 4 Assembly 'myAssembly' could not be found. Are you missing an assembly reference
and
Error 7 Unknown tag 'BasePanel' in namespace 'local'. Note that tag names are case sensitive. Line 17 Position 6.
Bizarrely, I have made no substantive changes to the project (I've been literally moving whitespace around wondering if there's a syntax quirk I'm missing) and the error count on successive compiles seems to be falling.
Some errors go away on one compile and then return on the next with absolutely zero code changes.
- I seem to have the correct syntax for the Mapping line
- I sure I have the correct name for the Assembly (though it doesn't seem to be able to find it).
- I've made no changes in the main body of the XAML files where the local: references are occurring.
I'd go back to Nov CTP (I've now lost 2 full days on this) but the documentation appears to suggest that the current version is getting close to release so whatever the problem is I should learn to live with it.
or maybe this has nothing whatsoever to do with the Jan CTP
I read somewhere that the Cider viewer doesn't happily cope with custom classes in the XAML. I can live with that (after all I've been getting warnings for every custom class usage in the XAML since the beginning of time but they always compiled and ran before now).
Any help much appreciated - hair being torn out by the hour.

Worked with Nov CTP, completely broken with Jan CTP, help appreciated
silver23
Hi,
Try
xmlns:l="local"
<l:specialButton .... >
If that does'nt work, try adding your control code into your main project and doing away with the assembly referance in the Application tag. I would also moving the xmlns referance around, try it at the page level/grid level etc.
HTH
Andy
neris
My controls are all in my main project, as it happens.
I only added an assembly reference at all because when I moved to Jan CTP it started complaining that there wasn't one in each module.
Prior to that I had no assembly references anywhere.
I will try your namespace moving hint.
Thanks