我正在尝试在外部 dll 中创建一个名为 DataTemplate.xaml 的 ResourceFile 并在 WP7 页面中使用它。当我在页面标题中执行以下操作时,出现错误
<ResourceDictionary Source="pack://application:,,,/WP7SharedClassLibrary;component/DataTemplate.xaml" />
错误是“当前项目不支持‘应用程序’作为包 URI 的权限组件。”
有没有其他人遇到过这个并解决了这个问题?