未定义的 CLR 命名空间 [英] Undefined CLR namespace

查看:51
本文介绍了未定义的 CLR 命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下几点:

错误指出clr-namespace"URI 引用了未包含在程序集中的命名空间{0}".

我已经构建和重建,但没有任何反应.我确信这一定能奏效,因为我下载的 WPF 演示应用程序的所有内容都相同.怎么回事?

I've build and rebuild but nothing happens. I'm sure this must work, because a WPF demo app that I downloaded has everything the same. What's going on?

推荐答案

假设您的 ViewModel 文件夹不为空(或者实际上存在一个以 BlooblieBlablie.ViewModel 作为其命名空间的类型),并且 BlooblieBlablie 是程序集名称,以下应该有效:

Assuming your ViewModel folder isn't empty (or there actually is a type with BlooblieBlablie.ViewModel as its namespace), and BlooblieBlablie is the assembly name, the following should work:

xmlns:vm="clr-namespace:BlooblieBlablie.ViewModel;assembly=BlooblieBlablie"

这篇关于未定义的 CLR 命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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