我有一个ResourceDictionary,其中包含一个ControlTemplate,我在其中引用了另一个程序集中的对象。
<ResourceDictionary
xmlns:gauge="clr-namespace:ActiproSoftware.Products.Gauge;assembly=ActiproSoftware.Gauge.Wpf351">
<ControlTemplate x:Key="Gauge270Template">
<gauge:CircularGauge/>
</ControlTemplate>
</ResourceDictionary>
这使我得到了以下错误:
Error 1 The type 'gauge:CircularGauge' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
附言:仪表组件已经构建完成,并且我可以从应用程序的其他部分引用它。