I am currently working on a proof of concept to move make our software cross platform. Currently, we use the WPF charting package but we have the full bundle so we have access to all the charts. I’m working on a Maui Blazor app where the UI and its logic are stored in a razor class lib and most of the services are stored in the shared WebAssembly project. Ideally, I would like to create the chart data inside a service and then create the appropriate views for each platform using the platform specific charts. Eventually my plan is to have a Blazor WASM project that we host online (where users can view their data), a Maui app that will run on Windows and Mac, and a WPF app that will host the project on computers that aren’t running Windows 10 and 11.
Are there any plans to implement a shared library of some type for the IRenderableSeriesViewModel, IDataSeries, IPaletteProvider, etc. where we could reference these interfaces regardless of platform?
- Tim Stephansen asked 2 months ago
- last active 2 months ago
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 22.214.171.12405 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="126.96.36.1990555" /> </ItemGroup> <ItemGroup Condition="'$(TargetFramework)' == 'net461'"> <PackageReference Include="SciChart" Version="188.8.131.5205" /> <PackageReference Include="Xamarin.Forms" Version="184.108.40.2060555" /> </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!
- Jonas Olsson asked 5 years ago
- last active 3 years ago