Does OxyPlot work in .NET 3.5?

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

guilhermecgs wrote at 2013-10-11 19:14:

Is there any release of OxyPlot for .NET 3.5?

I couldn't find it in http://oxyplot.codeplex.com/, but maybe there is an old version...

objo wrote at 2013-10-15 15:09:

No, there is no releases for .NET 3.5.
The core is PCL, and this is not supported by 3.5 (http://msdn.microsoft.com/en-us/library/gg597391.aspx).
You need to build the core for .NET 3.5 yourself.
The WPF, Winforms, pdf etc. libraries should also be possible to compile for 3.5.

ryoujr wrote at 2013-10-15 21:17:

Hello objo,

I was also looking for any solution for .NET 3.5. So, could you please elaborate more on this how I can make my own libraries for .NET 3.5 (how to build the core for .NET 3.5 and so on)? I'm new to PCL stuff.

Thank you very much.

andygough1974 wrote at 2013-10-16 19:57:

Hi Objo

Can you clarify what you mean by "core" please?

Many thanks

ryoujr wrote at 2013-10-18 00:14:

Hello Objo,

Based on your comment which said it should be possible to build oxyplot libraries for .NET 3.5, I started working on this.
I'm using 3 libraries (OxyPlot, OxyPlot.Wpf, OxyPlot.Xps) and I just made a new project with "Class Library" option for a OxyPlot and added all required files to the project to remove PCL stuff. (Seems you mentioned this to Core)
Now, it seems okay for this OxyPlot, but when I try to build WPF and XPS libraries by changing .net version to 3.5, it showed several errors which include "ManipulationCompletedEventArgs not defined"
I found that this was also supported from .NET 4.0, and others also looked something like this.
So, I would appreciate it if you could elaborate more on this procedure to make it working on .NET 3.5, and if I was doing something wrong, I hope you can correct me.

Thank you.

guilhermecgs wrote at 2013-10-18 00:32:

Hello Andy and others,

I am no expert at Oxyplot, but as a developer I wouldn't try to change the source code to make it compatible to .NET 3.5.
  1. It will probably need tons of time to make it work, (if it work)
  2. There's going to be several bugs
  3. You will be by your on
  4. There is several other options, such as DynamicDataDisplay
If you do have time and you want to contribute to the community, go ahead, thats great. But wouldn't it be easier to just change your framework to .NET 4?
Also, if you want to contribute to the community, make sure your improvement or functionality is needed by other people. I suggested you contact the main developers of this project and try to include this feature in the product roadmap.

objo wrote at 2013-10-19 09:26:

I have added NET 3.5 project files for the core, WPF and XPS projects.
The WPF touch event handlers are moved into a partial class that is not compiled in the NET 3.5 project.
I am not adding the NET 3.5 solution into the build for NuGet, you need to build OxyPlot yourself if you want to use it with this version of the .NET framework.

ryoujr wrote at 2013-10-19 17:25:

Thank you very much Objo.

So, if I understand correctly, maybe I should update to the latest build, then I can build my own NET 3.5 libraries without above issues.