Note that there are some explanatory texts on larger screens.

plurals
  1. POUndefined CLR namespace - No solution found
    primarykey
    data
    text
    <p>I've been researching for a while now trying to find a reason why the following would be occuring, but no solutions on StackOverflow or Google are able to help me.</p> <p>I have a custom UserControl that is attempting to reference a namespace within the same project:</p> <pre><code>xmlns:my="clr-namespace:ColorPicker" </code></pre> <p>however when I compile I get the following error:</p> <blockquote> <p>Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'ColorPicker' that is not included in the assembly.</p> </blockquote> <p>This is resulting in not being able to build my project or reference other custom controls within the xaml, generating these kinds of errors:</p> <blockquote> <p>The type 'my:ColorSelector' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.</p> </blockquote> <p>I've attempted all the solutions given in these posts:</p> <p><a href="https://stackoverflow.com/questions/3297660/adding-a-custom-namespace-to-xaml">adding a custom namespace to xaml</a></p> <p><a href="https://stackoverflow.com/questions/7130143/wpf-xmlns-the-clr-namespace-uri-refers-to-a-namespace-that-is-not-included-in">WPF xmlns: The &#39;clr-namespace&#39; URI refers to a namespace that is not included in the assembly</a></p> <p><a href="https://stackoverflow.com/questions/3425954/the-clr-namespace-uri-refers-to-a-namespace-that-is-not-included-in-the-assemb">The &#39;clr-namespace&#39; URI refers to a namespace that is not included in the assembly</a></p> <p><a href="https://stackoverflow.com/questions/5470158/undefined-clr-namespace">Undefined CLR namespace</a></p> <p>Also, just to be clear, I'm not getting any other errors about other files in this project, so it doesn't seem like it could be the result of other files not compiling.</p> <p><em>UPDATE</em>: A sample project that produces the error for me can be downloaded here: <a href="http://www.filefactory.com/file/28fbmhj3f4qj/n/ColorPicker_zip" rel="nofollow noreferrer">http://www.filefactory.com/file/28fbmhj3f4qj/n/ColorPicker_zip</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload