silverlight工具包参考问题

Ale*_*lex 2 c# silverlight silverlight-toolkit windows-phone-7

我从http://silverlight.codeplex.com/安装了2011年8月推出的windows phone silverlight工具包.

安装(并重新启动计算机)后,我尝试C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Toolkit\Aug11\Bin\Microsoft.Phone.Controls.Toolkit.dll在我的VS项目中引用silverlight工具包(位于).

当我尝试这样做时,我得到一个错误说" A reference to a higher version or incompatible assembly cannot be added to the project".为什么这样,我该如何解决?我的VS是Windows Phone的Visual Studio Express版.

需要注意的是,在参考列表中,我还包括了Windows.Phone和Windows.Phone.Controls(可能参考"更高版本")

db4*_*b42 10

允许visual studio通过解锁该dll来引用这些dll.

  1. 右键单击要引用的每个dll文件
  2. 选择"属性",然后单击"取消阻止"按钮.

参考:http://pcmusings.wordpress.com/2012/10/31/vs2012-windows-phone-and-the-reference-to-a-higher-version-error/