Is there a stable hostfxr ABI? #86100
-
Assuming I have some native C++ code that will be compiled as a library and shipped to customers. In that library I'd like to call .NET code provided by the user. Assuming the user is using .NET >= 6.0 and the C++ code uses hostfxr, will my library be able to load .NET assemblies generated by newer versions? And if so, is that guaranteed somewhere? I'm thinking of something similar to https://docs.python.org/3/c-api/stable.html#stable-application-binary-interface |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The API exposed by |
Beta Was this translation helpful? Give feedback.
The API exposed by
hostfxr
are considered stable, even across major versions. You can find the documentation how to use them here: https://learn.microsoft.com/en-us/dotnet/core/tutorials/netcore-hosting.