-
Notifications
You must be signed in to change notification settings - Fork 128
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
How to link only specific assemblies? #2981
Comments
You should be able to do one of the following:
The first option is probably what you want, unless you have a specific reason not to trim |
OK, so I read the source code right then, using |
This is related to the change to have TrimMode use two new values:
full
andpartial
: #2856There doesn't seem to be an obvious way to only trim specific assemblies anymore.
Previously this could be accomplished by setting TrimMode=copy in the project file, and then selectively change the trim mode for the assemblies I'd like to be trimmed.
If I keep doing this, all assemblies that has opted in to trimmed will be copied, and all assemblies that have not opted in to trimming will be trimmed... which seems quite backwards. Looking at the source code it seems it would work to set _TrimmerDefaultAction=copy to have the assemblies that have not opted in to trimming be copied, but this doesn't seem like the right solution.
Example binlog: build-Mac-20220818_110527.binlog.zip
This project sets TrimMode=copy, but looking at the linker diagnostics some assemblies are linked:
CC @agocke
The text was updated successfully, but these errors were encountered: