我正在使用 Prism 4 创建一个应用程序 silverlight 5,当我使用 UnityBootstrapper 运行 bootstrap 时,我遇到了下一个错误:
无法加载文件或程序集“System.Windows.Controls, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或其依赖项之一。该系统找不到指定的文件。
ConfigureRegionAdapterMappings 方法中的此错误:
protected override RegionAdapterMappings ConfigureRegionAdapterMappings()
{
// Call base method
var mappings = base.ConfigureRegionAdapterMappings(); <-- I get the error here!
if (mappings == null) return null;
// Add custom mappings
// Set return value
return mappings;
}
奇怪的是,如果我将项目更改为 Silverlight 4,那么它就可以正常工作(?)。
请你帮助我好吗?
谢谢!
最佳答案
这是因为prism 4 库针对的是silverlight 4。您必须下载prism 的源代码,并且必须将所有silverlight 项目引用更改为silverlight5 并重新编译它,然后设置对新二进制文件的引用
关于silverlight - 无法使用prism4在silverlight 5中加载文件或程序集 'System.Windows.Controls',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7594491/