Skip to content
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

Revert "Change behavior of copy action to not rewrite assemblies" #1936

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

mateoatr
Copy link
Contributor

@mateoatr mateoatr commented Apr 1, 2021

Reverts #1869

Reverting from now. I'm still working on an edge case that I found while linking a blazorwasm app just after System.Runtime.CompilationServices.Unsafe was marked as IsTrimmable: custom attributes having enum arguments living in assemblies that are forwarded seem to have problems -- so far, I've been able to circumvent this by marking the forwarded scopes of CAs arguments, but I still need to add appropriate tests and measure impact with this changes.

@mateoatr mateoatr requested review from marek-safar and sbomer April 1, 2021 15:49
@sbomer
Copy link
Member

sbomer commented Apr 1, 2021

Also worth noting that System.Runtime.CompilationServices.Unsafe was one of the things keeping the dependency on System.Runtime (the other being the app itself). Marking it IsTrimmable will probably shave more size off System.Runtime.

@marek-safar marek-safar merged commit e754a0a into main Apr 1, 2021
@marek-safar marek-safar deleted the revert-1869-copyOriginal branch April 1, 2021 15:58
@marek-safar
Copy link
Contributor

Makes sense (I didn't know about that so sorry for the extra work)

agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants