我在WP7中为聊天应用写了这篇文章,我需要把它放到项目中
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Controls="clr-namespace:Chat.Controls">我得到了这个错误
Error 7 Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'Chat.Controls' that is not included in the assembly. C:\Users\Amin\Documents\Visual Studio 2010\Projects\Chat\Chat\WP7_Chat\Control.xaml 4 36 Chat需要添加程序集还是什么??
发布于 2012-04-16 22:29:26
执行xmlns:Controls="clr-namespace:Chat.Controls"意味着您正在使用当前程序集的本地命名空间(在与该部分XAML相同的项目中),但是编译器指出该命名空间不存在。
因此,要么名称空间错误,要么缺少名称空间后面的程序集(类似于xmlns:Controls="clr-namespace:Chat.Controls;assembly=Chat.Controls"
https://stackoverflow.com/questions/10175904
复制相似问题