Question

I'm trying to integrate some open source directly into my own program because I need to track down a completely unrelated bug which, without actually importing the code, I can't seem to trace back to the source.

So, I imported this code into my own program:

This is the code that works in the open source:

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Sparrow.Chart">
    <local:BorderThicknessToLeftAndRightConverter x:Key="borderThicknessConverterXAxis"/>
    <local:BorderThicknessToTopBottomConverter x:Key="borderthicknessConverterYAxis"/>

The identical code fails to work in my program after the import. The namespaces being referenced by the clr-namespace line are identical, except my code throws all kinds of errors, saying that "BorderThicknessToTopBottomConverter (and pretty much every other item referenced by "local:" cannot be found within the referenced namespace.

Was it helpful?

Solution

I sometimes encounter identical situation. What I usually do is comment all items (in your case all items referenced by the "local" namespace), rebuild the solution, uncomment all items and rebuild again. It might help you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top