Search code examples
c#silverlightwindows-phone-7silverlight-toolkit

silverlight toolkit reference issue


i installed the august 2011 windows phone silverlight toolkit from http://silverlight.codeplex.com/ .

After installing (and restarting the computer), i try to refference the silverlight toolkit( located in C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Toolkit\Aug11\Bin\Microsoft.Phone.Controls.Toolkit.dll) in my VS project.

When i try to do this, i get an error saying "A reference to a higher version or incompatible assembly cannot be added to the project". Why is this and how can i fix it? My VS is Visual Studio express edition for windows phone.

To be noted, in the reference list, i also have included Windows.Phone and Windows.Phone.Controls (refering to the "higher version" maybe)


Solution

  • The August version of the toolkit specifically targets version 7.1 of the SDK.
    You'll get this message if the application you're trying to reference this from targets 7.0.

    To upgrade your app, right click on the project in Solution Explorer and select the 'Upgrade to Windows Phone 7.1' option or select the option in the project properties page.