[AOT] Unit testing features with Native AOT #45860
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
linker-friendliness
Tracking linker friendliness
NativeAOT
Milestone
There are places where features use different APIs if the app is published with native AOT. For example, routing uses IL emit to generate custom lookup tables when
IsDynamicCodeSupported
is true, and falls back to dictionary lookup when it is false.We should have unit tests that execute tests with native AOT to verify these code paths work correctly. Code that tests
IsDynamicCodeSupported
orIsDynamicCodeCompiled
are likely candidates.Known places that should have native AOT testing:
https://github.com/dotnet/runtime has a pattern for this type of testing. We should look at what runtime do.
The text was updated successfully, but these errors were encountered: