The tag 'XXX' does not exist in XML namespace 'clr-namespace:YYY'

前端 未结 10 1026
渐次进展
渐次进展 2021-02-07 11:59

I have implemented a converter to convert Int32 to String to be able to binding a property to a textBox.

I implement this converter in the namespace MyApp.Converters and

相关标签:
10条回答
  • 2021-02-07 12:18

    Another possible solution to this problem is that you're not using the same version of .Net in your project and your library.

    0 讨论(0)
  • 2021-02-07 12:24

    I see two possible causes. The first is that you misspelled "assembly" as "aseembly" in the first starred line. Changing the spelling might be enough. The second possibility is that you haven't added MyApp.dll to your project references, which appear like this

    enter image description here

    in Visual Studio.

    0 讨论(0)
  • 2021-02-07 12:25

    In my situation, I had the same problem with xmlns:local="clr-namespace:<mydefaultnamespace>". I solved this changing the order of the includes. I put it first and all was solved. A strange behaviour, but this was my workaround that I found in my situation.

    0 讨论(0)
  • 2021-02-07 12:31

    In my case, the assembly which contained the namespace was not physically there.

    I checked the references of the assembly that had the build error and looked at the properties of the referenced assembly in question.

    I navigated to the path and discovered the assembly was indeed missing (which I realised was my own doing), giving rise to the misleading error.

    0 讨论(0)
提交回复
热议问题