标签云

微信群

扫码加入我们

WeChat QR Code

I have a windows phone 7.1 project that I want to create a chart in using the silverlight 5.0 chart control. I've installed the December 2011 version of the Silverlight Toolkit.No other versions exist on my computer.When I try to set a reference to the the System.Windows.Controls.DataVisualization.Toolkit.dll that is located in C:\Program Files (x86)\Microsoft SDKs\Silverlight\v5.0\Toolkit\dec11 an error message occurs. The message says "A higher reference version or incompatable assembly cannot be added to the project."I'm using Visual Studio 2010 and the Target Windows Phone OS version is set to Windows Phone OS 7.1 which is the usual reason I've seen for this error message.Does anybody know how to resolve this?


I downloaded the Silverlight for Windows Phone toolkit and installed it (after removing another it apparently detected). Now I'm trying to find a reference to System.Windows.Controls.DataVisualization.Charting which doesn't show up when I try to add a reference on the .Net Tab of the add reference form nor can I find a a path that will lead me to this dll when I use the Browse tab of the add reference form.

2019年04月22日12分53秒

Add the reference to the project. Rebuild it (make sure it compiles) Open the designer. Add this to the top. xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"

2019年04月22日12分53秒

The path wont be in the .Net tab. You have to Browse to it: C:\Program Files\Microsoft SDKs\Silverlight\v5.0\Toolkit\dec11\Bin

2019年04月22日12分53秒

What is the path where it is stored -- I'm using Windows 7.

2019年04月22日12分53秒

Thanks for the path -- didn't see it just then.

2019年04月22日12分53秒