Oxyplot on VS2012 with Metro project

Aug 22, 2012 at 10:37 AM
Edited Aug 22, 2012 at 10:43 AM

Hi everyone,

with a couple of friends of mine we're starting one project of a Metro-style app and we're evaluating Oxyplot as our charting library.

But here we come to the problem: I've tried installing Oxyplot with NuGet, via Package Manager Console or manually adding the references, none of this methods worked.

The problems seems to be with metro project, because with wpf app I don't have this issue and everything works just fine.

Do you plan to add the support to Metro app?

So, let's recapitulate:
- VS 2012 Pro
- Win 8 RTM x64 eng
- Oxyplot 2012.3.127.1
- Metro project

I've actually attached a print screen of the failing setup as well as the output of the Package Manager Console.

Any help will be much appreciated, thanks





PM> Install-Package OxyPlot.Wpf
Successfully installed 'OxyPlot.Wpf 2012.3.127.1'.
Successfully uninstalled 'OxyPlot.Wpf 2012.3.127.1'.
Install failed. Rolling back...
Install-Package : Failed to add reference to 'OxyPlot'.
At line:1 char:1
+ Install-Package OxyPlot.Wpf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Aug 23, 2012 at 7:44 AM

Yes, a Metro version is planned, and a NuGet package will be added when it is done! I will start testing on Windows 8 soon. See the fork http://oxyplot.codeplex.com/SourceControl/network/forks/elliatab/MetroFix, I plan to merge this into the main branch soon.

Aug 24, 2012 at 1:44 PM

Is it possible to build a Metro project on Windows 7? Otherwise I need to move the build server to Windows 8 before I can create the nuget package automatically. The Oxyplot library will be PCL.

Aug 24, 2012 at 2:43 PM

Hi objo,
thanks for your reply.

So, first, I think we can wait the release of Oxyplot for Metro. We have much work to do before plotting the results, so, no problem. I'm happy to know that you're working on.

Second, I'm not really sure if you can build a Metro app in Win 7. When developping for WP7 there was an emulator of the phone, I don't know if there is something similar. If I have some spare time, I'll try to install VS2012 on Win 7 and let you know what happen.

Aug 24, 2012 at 10:35 PM
Edited Aug 24, 2012 at 10:38 PM

Well, it seems that you cannot create Metro project if running VS 2012 on Win 7...


Edit: this is how it looks like on Win 8


Aug 25, 2012 at 5:43 AM

(I will create the project on a Windows 8 machine, so that should be ok)

But can Msbuild build Metro projects on a windows 7 machine? The following link looks promising :)