To enable running tests with AOT, we need to use $(EnableAggressiveTrimming)==true, to reduce the AOT build time. Enabling this introduces some build issues, or test failures though.
To reproduce locally:
$ /dotnet.sh build /p:Configuration=Release /p:TargetOS=Browser /p:TargetArchitecture=wasm /t:Test /path/to/project/file /p:EnableAggressiveTrimming=true
- If you are not able to reproduce it with the above, then try building with
/p:BuildAOTTestsOnHelix=true to the above command line
- If you still cannot reproduce, then ask on the discord channel, as it might be a helix issue
tips:
- make sure to assign the issue to yourself, if you are working on it
- You can add
/p:DebuggerSupport=true to get line numbers
To enable running tests with AOT, we need to use
$(EnableAggressiveTrimming)==true, to reduce the AOT build time. Enabling this introduces some build issues, or test failures though.To reproduce locally:
$ /dotnet.sh build /p:Configuration=Release /p:TargetOS=Browser /p:TargetArchitecture=wasm /t:Test /path/to/project/file /p:EnableAggressiveTrimming=true/p:BuildAOTTestsOnHelix=trueto the above command linetips:
/p:DebuggerSupport=trueto get line numbers