We currently need to build apphost because for some reason PublishAot ends up needing it in some of our test legs:
|
buildArgs: -s clr.runtime+clr.aot+host.native+libs -rc $(_BuildConfig) -lc Release -hc Release |
Without this line, the CI fails with:
Could not copy the file "/__w/1/s/artifacts/bin/trimmingTests/projects/System.Diagnostics.DiagnosticSource.NativeAotTests/DiagnosticSourceEventSourceTests/linux-x64/obj/Release/net8.0/linux-x64/apphost" because it was not found.
This is probably not just a test issue, but also a product issue. Historically the NativeAOT targets were just an addon to the SDK targets that hacked into the SDK (we e.g. delete outputs the SDK produces in publish and replace them with NativeAOTd stuff).
The SDK probably needs to become more aware of what NativeAOT does and suppress some behaviors.
We currently need to build apphost because for some reason PublishAot ends up needing it in some of our test legs:
runtime/eng/pipelines/runtime.yml
Line 206 in cdb9f5f
Without this line, the CI fails with:
This is probably not just a test issue, but also a product issue. Historically the NativeAOT targets were just an addon to the SDK targets that hacked into the SDK (we e.g. delete outputs the SDK produces in publish and replace them with NativeAOTd stuff).
The SDK probably needs to become more aware of what NativeAOT does and suppress some behaviors.