none
WP7 项目升级到WP8项目提示,提示引用失败! RRS feed

  • 问题

  • 如下图所示,部分页面提示,对Microsoft.Phone.Controls 的引用失败

     错误 1 Cannot resolve dependency to assembly 'Microsoft.Phone.Controls, Version=7.0.0.0, Culture=neutral, PublicKeyToken=24eec0d8c86cda1e' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.  

    2014年3月5日 2:23

答案

  • 你好,

    因为Microsoft.Phone.Controls 这个程序集在WP8项目中与WP7项目中的版本不一致所以才用这个错误的。WP8程序中,这个程序集的版本是8.0.0.0。当项目升级后,也需要引用最新的程序集。

    谢谢!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年3月6日 2:30
    版主

全部回复

  • 你好,

    你先把当前项目中的 Microsoft.Phone.Controls 引用移除,然后重新添加一个新的 Microsot.Phone.Controls 引用。因为Windows Phone 8项目中 Microsoft.Phone.Controls 的版本是8.0。然后重新编译下你的项目就OK了。

    谢谢!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年3月5日 9:32
    版主
  • 现在就是8.0的版本,但奇怪的是改成7.0的版本有可以用了!
    2014年3月6日 2:25
  • 你好,

    因为Microsoft.Phone.Controls 这个程序集在WP8项目中与WP7项目中的版本不一致所以才用这个错误的。WP8程序中,这个程序集的版本是8.0.0.0。当项目升级后,也需要引用最新的程序集。

    谢谢!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年3月6日 2:30
    版主