SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
I’m trying to use SciChart in my Xamarin Visual Studio Cross platform application. After installing the SciChart package in the Package Manager console I got the dependency reference error:
Package SciChart 220.127.116.1105 was restored using '.NETFramework, Version=v4.6.1' instead of the project target framework 'NETStandard,Version=v2.0'. This papckage may not be fully compatible with your project .
I know that .NET framework 4.6.1 is different from .NETStandard2.0.
I’ve read some articles about how to target multiple .NET versions in the same application by modifying the .csproj file, but I can’t get it work anyway.
I’ve modified the csproj file like this
<PropertyGroup> <TargetFrameworks>netstandard2.0;net461</TargetFrameworks> </PropertyGroup> <ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0'"> <PackageReference Include="Xamarin.Forms" Version="18.104.22.1680555" /> </ItemGroup> <ItemGroup Condition="'$(TargetFramework)' == 'net461'"> <PackageReference Include="SciChart" Version="22.214.171.12405" /> <PackageReference Include="Xamarin.Forms" Version="126.96.36.1990555" /> </ItemGroup>
This action removes all dependency errors, but I still can’t use the libraries.
Does anyone know how to solve this issue?
Thanks in advance!
At the moment SciChart iOS/Android only supports Xamarin Native, meaning it can be used in Xamarin.iOS and Xamarin.Android projects. It has not been built to support Xamarin.Forms out of the box.
It is possible however to use SciChart in Xamarin Forms, however you will need to write a custom renderer for the chart control for the ios + android platforms.
Finally please note that our windows charts are not built for UWP so the windows side of Xamarin is missing.
This may be something we support in the future, but right now we are not working on it.
Please login first to submit.