Windows phone 7 未定义的命名空间windows phone 7
我为WP7中的聊天应用程序写了这个,我需要把它放到项目中Windows phone 7 未定义的命名空间windows phone 7,windows-phone-7,Windows Phone 7,我为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"
<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">
需要我添加一个程序集还是做什么?执行
xmlns:Controls=“clr namespace:Chat.Controls”
表示您使用的是当前程序集的本地命名空间(与该XAML片段在同一个项目中),但编译器说它不存在
因此,要么是名称空间错误,要么是名称空间后缺少程序集(类似于
xmlns:Controls=“clr namespace:Chat.Controls;assembly=Chat.Controls”
程序集中是否有名称空间Chat.Controls?因此,您只是回答了自己的问题;)如果名称空间未在程序集中声明,当然它是未定义的。好吧,我试图声明它,但在汇编中找不到它。你是从某处复制代码并试图在xaml中使用它吗?是的,它是本地的,但我如何添加它?
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