![](/img/trans.png)
[英]the name <...> does not exist in the namespace clr-namespace <...>
[英]UIRoot does not exist in the clr-namespace?
我正在使用一個外部庫,該庫從XAML為我的游戲中的UI生成一個類,所有內容都可以正常運行,並且除了一部分以外,它可以按預期工作。 它說Root元素在名稱空間中不存在,因此我不能使用設計器,庫的創建者本人甚至都不知道為什么這樣做,它對他來說很好用。
<!--ek:UIRoot was not found/ does not exist in the namespace-->
<ek:UIRoot
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ek="clr-namespace:EmptyKeys.UserInterface.Designer;assembly=EmptyKeys.UserInterface.Designer"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<TextBlock Text="Hello World" Grid.Row="0" />
<TextBlock Text="This is EmptyKeys In monogame" Grid.Row="1" />
</Grid>
</ek:UIRoot>
但是它確實 該項目是.net4.5和anycpu,與該庫所基於的庫相同,我已經多次重建了該解決方案。 (這些是解決類似問題的方法)
我想念什么嗎?
我需要取消阻止該dll,因為它來自另一台計算機http://blogs.msdn.com/b/delay/p/unblockingdownloadedfile.aspx
該示例是一個zip文件,但它適用於dll
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.