MichalStrehovsky / PublishAotCross

NuGet package to help you cross-compile Native AOT to different OSes/architectures
MIT License
96 stars 11 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 3 months ago

Ptkatz commented 3 months 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 3 months 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