MichalStrehovsky / PublishAotCross

NuGet package to help you cross-compile Native AOT to different OSes/architectures
MIT License
82 stars 7 forks source link

My C# project prompts that libssl is needed after Native AOT compilation, so how can I link libssl into the program? #9

Open Ptkatz opened 1 month ago

Ptkatz commented 1 month ago

image

My C# project prompts that libssl is needed after Native AOT compilation, so how can I link libssl into the program?

MichalStrehovsky commented 1 month ago

It's not possible with PublishAotCross. You can do it with regular .net build but it's not recommend: https://github.com/dotnet/runtime/blob/9fe8c95c890b0e68c77c7970f8413b1375afe18f/src/coreclr/nativeaot/docs/compiling.md#L72