简体   繁体   English

如何安装OxyPlot NuGet软件包?

[英]How to Install OxyPlot NuGet Package?

Good Day. 美好的一天。 I'm trying to Install an OxyPlot NuGet Package here in my Visual Studio 2015. However, I'm not successful in doing so. 我正在尝试在Visual Studio 2015中的此处安装OxyPlot NuGet软件包。但是,我这样做没有成功。 I'll use it in creating a Pie Chart in my Xamarin.Forms Portable Application. 我将在Xamarin.Forms可移植应用程序中创建饼图时使用它。

First I've installed OxyPlot.Core v1.0.0-unstable2100 , then OxyPlot v1.0.0-unstable2100 , but when I tried to install the last one I need which is OxyPlot.Xamarin.Forms , it prompt an error saying 首先,我已经安装OxyPlot.Core V1.0.0-unstable2100,然后OxyPlot V1.0.0-unstable2100,但是当我试图安装最后一个我需要的是OxyPlot.Xamarin.Forms,它提示一个错误说

Unable to find a version of 'OxyPlot.Core' that is compatible with 'OxyPlot.WindowsForms 1.0.0-unstable2100 constraint: OxyPlot.Core (= 1.0.0-unstable2100)', 'OxyPlot.Wpf 1.0.0-unstable2100 constraint: OxyPlot.Core (= 1.0.0-unstable2100)', 'OxyPlot.Xamarin.Forms 1.0.0-unstable1983 constraint: OxyPlot.Core (= 1.0.0-unstable1983)'. 找不到与'OxyPlot.WindowsForms 1.0.0-unstable2100约束兼容的'OxyPlot.Core'版本:OxyPlot.Core(= 1.0.0-unstable2100),OxyPlot.Wpf 1.0.0-unstable2100约束: OxyPlot.Core(= 1.0.0-unstable2100)','OxyPlot.Xamarin.Forms 1.0.0-unstable1983约束:OxyPlot.Core(= 1.0.0-unstable1983)'。

What do you think is the reason behind this? 您认为这背后的原因是什么?

Is there an order to follow in Installing OxyPlot Packages? 安装OxyPlot程序包时要遵循的命令吗? Which package do I need to install first? 首先需要安装哪个软件包?

Thanks for your help. 谢谢你的帮助。

There's no need to install anything in a certain order when it comes to NuGet . 关于NuGet,无需按特定顺序安装任何东西。 Any kind of dependencies that are needed will get downloaded automatically. 所需的任何依赖项都将自动下载。 In other words, when you add the OxyPlot.Xamarin.Forms -package to your project, the correction version of OxyPlot.Core will be added as well. 换句话说,当你添加OxyPlot.Xamarin.Forms -package到项目中,校正版本OxyPlot.Core也会被添加。

The OxyPlot.Xamarin.Forms -package can be found on the official nuget.org NuGet feed as well, but since it's a prerelease , make sure you have selected the Include Prerelease selection in the Manage NuGet Packages window of Visual Studio. OxyPlot.Xamarin.Forms也可以在官方nuget.org NuGet feed上找到,但是由于它是prerelease,请确保已在Visual Studio的Manage NuGet Packages窗口中选择Include Prerelease选项。

I've just tested it and it seems to work. 我刚刚测试过,它似乎可以工作。 Good luck! 祝好运!

Please see: http://www.oxyplot.org/announcements/nuget-packages 请参阅: http : //www.oxyplot.org/announcements/nuget-packages

To use these packages, you must add the myget feed https://www.myget.org/F/oxyplot as a package source. 要使用这些软件包,必须将myget feed https://www.myget.org/F/oxyplot添加为软件包源。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM