我正在尝试使用图表在 Visual Studio 2012 中创建图形。我有 .Net 4.0 但是当这样写时:
using System.Windows.Forms.DataVisualization.Charting;
我收到错误:
The type or namespace name 'DataVisualization' does not exist in the namespace 'System.Windows.Forms'
我该如何解决这个问题?
谢谢!
在解决方案资源管理器面板中添加对
System.Windows.Forms.DataVisualization
的引用。
已编译的程序集不使用解决方案项。 请点击此链接。 这是完整图表的链接