Atozed Forums
Unit generated from netstandard2.0 library misses NET.mscorlib - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: CrossTalk (https://www.atozed.com/forums/forum-2.html)
+---- Forum: CrossTalk General Discussion (https://www.atozed.com/forums/forum-7.html)
+---- Thread: Unit generated from netstandard2.0 library misses NET.mscorlib (/thread-2600.html)



Unit generated from netstandard2.0 library misses NET.mscorlib - gezaszabo - 12-18-2021

Hi,
I am trying to use a netstandard2.0 assembly from delphi. From the generated unit's uses list NET.mscorlib is misssing. I have added it manually and then the unit works. But I am wondering how well using a netstandard2.0 assembly will work and will I run into other issues.
Seems like using a netstandard2.0 library is not tested before CrossTalk is released which makes me worry.

Regards
Geza


RE: Unit generated from netstandard2.0 library misses NET.mscorlib - kudzu - 12-20-2021

.NET standard libraries are binary compatible with .NET macro. I believe the latest CT is build against 4.6.1 and I think for proper .net 2.0 std we need to update to 4.6.2. Its a simple rebuild and I have asked Alexandre to update the build.

That being said, if you have 4.6.2 installed, even with CT linking to 4.6.1, CT should be able to use .NET standard 2.0 assemblies as is.

I'm not sure why you needed to add the reference manually, but once you do it should load and run the .NET 2.0 assembly OK as they are binary compatible.


RE: Unit generated from netstandard2.0 library misses NET.mscorlib - gezaszabo - 12-20-2021

Thanks. Yes in my tests I was able to use the .Net standard 2.0 assemblies. the only issue is the missing unit from the uses list. Has to be added each time the code is generated.


RE: Unit generated from netstandard2.0 library misses NET.mscorlib - kudzu - 12-21-2021

For now please just add that unit then. Smile