Mulititarget runtime exception in TeeChart ctr in net6-windows
Posted: Fri Aug 16, 2024 12:35 am
Hello,
I have a C# proj that has 2 targets net.6-windows and net4.7.2.
When I run the app for net.6-windows I got the following exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Steema.TeeChart.Export.TemplateExport..ctor(Chart chart)
at Steema.TeeChart.Export.Exports.get_Template()
at Steema.TeeChart.Export.Exports.rif(TChart blu)
at Steema.TeeChart.TChart.rfc()
at Steema.TeeChart.TChart..ctor()
Here are some packages used:
<PackageVersion Include="System.Text.Json" Version="8.0.4" />
<PackageVersion Include="SixLabors.ImageSharp" Version="3.1.5" />
<PackageVersion Include="SixLabors.ImageSharp.Drawing" Version="2.1.4" />
<PackageVersion Include="PdfSharpCore" Version="1.3.65" />
<PackageVersion Include="Steema.TeeChart.NET" Version="4.2024.7.29" />
App built for net 4.7.2 does not have this issue.
Thanks,
Konstantin.
I have a C# proj that has 2 targets net.6-windows and net4.7.2.
When I run the app for net.6-windows I got the following exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Steema.TeeChart.Export.TemplateExport..ctor(Chart chart)
at Steema.TeeChart.Export.Exports.get_Template()
at Steema.TeeChart.Export.Exports.rif(TChart blu)
at Steema.TeeChart.TChart.rfc()
at Steema.TeeChart.TChart..ctor()
Here are some packages used:
<PackageVersion Include="System.Text.Json" Version="8.0.4" />
<PackageVersion Include="SixLabors.ImageSharp" Version="3.1.5" />
<PackageVersion Include="SixLabors.ImageSharp.Drawing" Version="2.1.4" />
<PackageVersion Include="PdfSharpCore" Version="1.3.65" />
<PackageVersion Include="Steema.TeeChart.NET" Version="4.2024.7.29" />
App built for net 4.7.2 does not have this issue.
Thanks,
Konstantin.