UIRoot 不存在于 clr 命名空间中?
UIRoot does not exist in the clr-namespace?
我正在使用一个外部库,该库从 XAML 为我的游戏中的 UI 生成 class,一切都很好,除了一部分之外,它按预期工作。它说命名空间中不存在 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
我正在使用一个外部库,该库从 XAML 为我的游戏中的 UI 生成 class,一切都很好,除了一部分之外,它按预期工作。它说命名空间中不存在 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>
但确实如此
我是不是漏掉了什么?
我需要解锁 dll,因为它来自另一台计算机 http://blogs.msdn.com/b/delay/p/unblockingdownloadedfile.aspx
示例是一个 zip,但它同样适用于 dll