Multitarget .licx error
Posted: Fri Aug 16, 2024 12:22 am
Hello,
I have a C# project that has 2 targets: net4.7.2 and net6-windows.
I am trying to include license file for both targets and got the following error when the two target set or only net6-windows:
>net6.licenses.licx(1): Error LC0004 : Exception occurred creating type 'Steema.TeeChart.Chart, TeeChart, Version=6.2024.7.29, Culture=neutral, PublicKeyToken=9c8126276c77bdb7' System.ArgumentNullException: Value cannot be null.
If I set target to net4.7.2 only then the following licenses.licx file works good:
Steema.TeeChart.Chart, TeeChart, Version=4.2024.7.29, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
Combining two lines into a single .licx file does not help. Having only above as embedded resource (licenses.licx) gives an error:
5>licenses.licx(1): Error LC0004 : Exception occurred creating type 'Steema.TeeChart.Chart, TeeChart, Version=6.2024.7.29, Culture=neutral, PublicKeyToken=9c8126276c77bdb7' System.ArgumentNullException: Value cannot be null.
I see that package version is 4.2024.7.29 but the version of net6 dll is 6.2024.7.29 that may cause that issue.
What is the right licenses.licx file for net6-windows target for 4.2024.7.29 version and how to set up those file for mutli target proj file?
Version:
<PackageVersion Include="Steema.TeeChart.NET" Version="4.2024.7.29" />
Thanks,
Konstantin.
I have a C# project that has 2 targets: net4.7.2 and net6-windows.
I am trying to include license file for both targets and got the following error when the two target set or only net6-windows:
>net6.licenses.licx(1): Error LC0004 : Exception occurred creating type 'Steema.TeeChart.Chart, TeeChart, Version=6.2024.7.29, Culture=neutral, PublicKeyToken=9c8126276c77bdb7' System.ArgumentNullException: Value cannot be null.
If I set target to net4.7.2 only then the following licenses.licx file works good:
Steema.TeeChart.Chart, TeeChart, Version=4.2024.7.29, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
Combining two lines into a single .licx file does not help. Having only above as embedded resource (licenses.licx) gives an error:
5>licenses.licx(1): Error LC0004 : Exception occurred creating type 'Steema.TeeChart.Chart, TeeChart, Version=6.2024.7.29, Culture=neutral, PublicKeyToken=9c8126276c77bdb7' System.ArgumentNullException: Value cannot be null.
I see that package version is 4.2024.7.29 but the version of net6 dll is 6.2024.7.29 that may cause that issue.
What is the right licenses.licx file for net6-windows target for 4.2024.7.29 version and how to set up those file for mutli target proj file?
Version:
<PackageVersion Include="Steema.TeeChart.NET" Version="4.2024.7.29" />
Thanks,
Konstantin.