-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you build with trimming enabled, future builds with it disabled will produce incorrect output #53612
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescriptioncc @radical If I do an incremental build with
Obliterating my artifacts folder and then doing a full build is usually the fix for this. Will come back and paste in my exact build command lines later once my rebuild is done. Configurationdotnet/runtime/main current as of today Regression?No
|
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
@radical status on this? |
This issue is with local I'm working on incremental builds now, so after that we can see if this becomes a problem for user projects. |
@radical is this fixed? |
No, this will be fixed after the publish->build changes. This one will need to copy the untrimmed assemblies to a single path, and use that for mono-aot-cross. |
There are two parts to the build here:
I think the issue here is from (1).
This gets fixed in #57556 . I couldn't reproduce the exact issue here, but that also might be because we recently added support for incremental wasm builds. So, we'll have to see if you hit this issue again, and then debug. |
Should be fixed by #58913 . |
Description
cc @radical
If I do an incremental build with
EnableAggressiveTrimming=true
, then do another one later with it=false
after changing some .cs files, not everything is rebuilt so you get outputs that have type load failures and such, like so:fail: console.error: Unhandled exception in _finalize_startup Error: System.TypeLoadException: Could not load type of field 'System.Runtime.InteropServices.JavaScript.Runtime:_boundObjects' (0) due to: Could not resolve type with token 01000012 from typeref
Obliterating my artifacts folder and then doing a full build is usually the fix for this.
Will come back and paste in my exact build command lines later once my rebuild is done.
Configuration
dotnet/runtime/main current as of today
Regression?
No
The text was updated successfully, but these errors were encountered: