所述“CLR-命名空间”的URI指的是不包括在装配一个命名空间 [英] The 'clr-namespace' URI refers to a namespace that is not included in the assembly

查看:411
本文介绍了所述“CLR-命名空间”的URI指的是不包括在装配一个命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的XAML,包括一些类,它们转换值。不过,我得到以下错误,当我编译:

I'm trying to include in my XAML some classes which convert values. However, I'm getting the following error when I compile:

未定义的CLR命名空间。该CLR的命名空间URI引用一个命名空间View.Summary.Converters未列入大会。(查看\查看)

Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'View.Summary.Converters' that is not included in the assembly.(View\View)

和XAML中它的示数上:

And the XAML it's erroring on:

xmlns:c="clr-namespace:View.Summary.Converters"

此外,这里是我的转换类/命名空间的轮廓:

Also, here is the outline of my conversion classes/namespace:

namespace View.Summary.Converters
{
    class CollapsedIfNegative : IValueConverter { }

    class VisibleIfNegative : IValueConverter { }

    class ErrorCodeToString : IValueConverter { }
}

我不得不删除的code的胆量,因为我工作的项目是高度机密。

I had to remove the guts of the code because the project I am working on is highly confidential.

推荐答案

我想通了,什么是错误的。虽然视觉工作室表明这是第一个错误,确有与我的编码,它$ P $被组装pvented转换器其他错误。因此,当VS去找大会,它不存在。

I figured out what was wrong. Although visual studio showed this as the first error, there were indeed other errors with my coding which prevented the converters from being assembled. Thus, when VS went to find the assembly, it was not there.

这篇关于所述“CLR-命名空间”的URI指的是不包括在装配一个命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆