OxyPlot on Silverlight 5 vs2010

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

ChevyCP wrote at 2013-06-19 15:27:

Hi, I use this for wpf, but am now trying to get it going on a silverlight 5 project in visual studio 2010 with no luck. I don't see the .silverlight.dll's and I am not able to compile the software. Which dlls work for this combo? The base oxyplot dll gives me errors when I add it. Thanks!

objo wrote at 2013-06-19 20:41:

Install portable library tools to compile the OxyPlot on VS2010.
http://visualstudiogallery.msdn.microsoft.com/b0e0b5e9-e138-410b-ad10-00cb3caf4981

To get the assemblies, use
nuget: http://nuget.org/List/Packages/OxyPlot.Silverlight
or download OxyPlot-SL5-x.x.x.x.zip

Reference OxyPlot.dll (a portable class library) and OxyPlot.Silverlight.dll

objo wrote at 2013-06-20 08:57:

I included all assemblies in the same download from build #51.
It's a larger file (28Mb), but it should be easier to find the assemblies you need.

ChevyCP wrote at 2013-06-20 16:52:

Thanks, that did the trick. Although that portable library plug-in introduced the following warning in my error list, but it seems to work anyway.

Warning 1 The following exception occurred creating the MEF composition container:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
The default code generator will be used. C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Ria.Client.targets 303 5

ChevyCP wrote at 2013-06-20 18:47:

By removing the contents from the bin folder and recompiling, it removed this warning