Oxyplot on VS2012 with Metro project

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

poweramd wrote at 2012-08-22 11:37:

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

 


http://i.imgur.com/gAnho.png

 

 

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

objo wrote at 2012-08-23 08:44:

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.


objo wrote at 2012-08-24 14:44:

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.


poweramd wrote at 2012-08-24 15:43:

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.


poweramd wrote at 2012-08-24 23:35:

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

http://i.imgur.com/dekJo.png

Edit: this is how it looks like on Win 8

http://i.imgur.com/FvVdp.png


objo wrote at 2012-08-25 06:43:

(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 :)

http://stackoverflow.com/questions/11604794/msbuild-windows-8-metro