简体   繁体   English

如何将System.Web.UI.DataVisualization.Charting dll放入WebMatrix 3?

[英]How do I get System.Web.UI.DataVisualization.Charting dll into WebMatrix 3?

I want to use the full charting options available in ASP.NET Web Pages in WebMatrix 3. 我想使用WebMatrix 3的ASP.NET网页中可用的完整图表选项。

I think this means using System.Web.UI.DataVisualization.Charting 我认为这意味着使用System.Web.UI.DataVisualization.Charting

When adding: 添加时:

using System.Web.UI.DataVisualization.Charting

to the top of my page, I get the error: 在页面顶部,出现错误:

Compiler Error Message: CS0234: The type or namespace name 'DataVisualization' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)

There are plenty of tutorials out there (including on SO) demonstrating how to download and reference the dll into Visual Studio, but as far as I can see there's nothing for us WebMatrix users. 有很多教程(包括SO方面的内容)演示了如何下载dll并将其引用到Visual Studio中,但据我所知,对于我们的WebMatrix用户而言,这没有什么用。

Does this mean that it can't be used in a WebMatrix site? 这是否意味着它不能在WebMatrix网站中使用? If so, why?? 如果是这样,为什么?

If anyone knows how to include the relevant namespace in WM, I'd be very grateful if you'd explain it here. 如果有人知道如何在WM中包括相关的名称空间,请在这里解释一下,将不胜感激。

WebMatrix doesn't provide a mechanism for adding references. WebMatrix不提供添加引用的机制。 However, you can work around this by right clicking on the bin folder and choosing Add Existing File . 但是,可以通过右键单击bin文件夹并选择Add Existing File来解决此问题。 Then you need to locate System.Web.Datavizualization.dll , which on my machine is located in C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319. 然后,您需要找到System.Web.Datavizualization.dll ,它在我的计算机上位于C:\\ Windows \\ Microsoft.NET \\ Framework \\ v4.0.30319。 Once you have a copy of that dll in your bin folder, you are in business. 在bin文件夹中拥有该dll的副本后,您就可以从事业务了。

I would however recommend moving across to Visual Studio. 但是,我建议转到Visual Studio。 Then it's simply a case of using File » Open » Web Site to open your WebMatrix site folder. 这只是使用文件»打开»网站打开WebMatrix站点文件夹的一种情况。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 .NET Core 应用程序中使用 System.Web.UI.DataVisualization.Charting? - How do I use System.Web.UI.DataVisualization.Charting in .NET Core apps? 如何使用System.Web.UI.DataVisualization.Charting - How to work with System.Web.UI.DataVisualization.Charting IE8上未显示System.Web.UI.DataVisualization.Charting图表 - System.Web.UI.DataVisualization.Charting charts are not displaying on IE8 System.Web.UI.DataVisualization.Charting .net 4.0 中缺少错误? - System.Web.UI.DataVisualization.Charting missing error in .net 4.0? iTextSharp将System.Web.UI.DataVisualization.Charting转换为pdf - iTextSharp convert a System.Web.UI.DataVisualization.Charting to pdf 找不到命名空间System.Web.UI.DataVisualization.Charting - Cannot find namespace System.Web.UI.DataVisualization.Charting System.Web.UI.DataVisualization.Charting中的雷达图选择性标签旋转? - Radar chart selective label rotation in System.Web.UI.DataVisualization.Charting? 有没有一种方法可以使用System.Web.UI.DataVisualization.Charting旋转烛台图表以水平显示,而不是垂直显示? - Is there a way using System.Web.UI.DataVisualization.Charting to rotate a Candlestick chart to display horizontally instead of vertically? 使用System.Web.UI.DataVisualization.Charting命名空间更改饼图上的标签颜色 - Changing the label color on a Pie Chart using System.Web.UI.DataVisualization.Charting namespace Visual Studio 2010与.NET 4.0无法识别System.Web.UI.DataVisualization.Charting - Visual Studio 2010 with .NET 4.0 not recognising System.Web.UI.DataVisualization.Charting
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM