Closed steveharter closed 3 months ago
What tests are you trying to run exactly? /p:TestNativeAot=true
is a modifier for libraries unit test to build with native AOT. But this is passing /p:TestAssemblies=false
, so it will not build libraries unit tests. Did you mean to pass /p:TestAssemblies=false /p:RunNativeAotTestApps=true
instead?
I am trying to run the trimming tests on a NativeAot build.
/p:RunNativeAotTestApps=true is the option to use then - do not pass /p:TestTrimming=true or /p:TestNativeAot=true
I assume this is resolved (/p:RunNativeAotTestApps=true
is how it runs in the CI so it should work).
Env:
Repro:
Result: a bunch of errors like this:
The
apphost.exe
file does not exist in the directory; the directory exists however.This worked for me 2-3 weeks ago.