Skip to content

Add KeepNativeSymbols to CommonArgs in build props#3509

Merged
mmitche merged 1 commit intodotnet:mainfrom
mynameisbogdan:common-args-keepnativesymbols
Nov 24, 2025
Merged

Add KeepNativeSymbols to CommonArgs in build props#3509
mmitche merged 1 commit intodotnet:mainfrom
mynameisbogdan:common-args-keepnativesymbols

Conversation

@mynameisbogdan
Copy link
Contributor

@mynameisbogdan mynameisbogdan commented Nov 23, 2025

Allowing KeepNativeSymbols to be passed via CommonArgs since it's being enable for source builds by default in the runtime at

<KeepNativeSymbols Condition="'$(KeepNativeSymbols)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">true</KeepNativeSymbols>
generating bigger in size artifacts.

@mmitche
Copy link
Member

mmitche commented Nov 24, 2025

@mynameisbogdan Do you need this in 10.0 or only 11.0?

@mynameisbogdan
Copy link
Contributor Author

Would be nice to land in 10 as well, please.

@mmitche mmitche merged commit a81627a into dotnet:main Nov 24, 2025
11 checks passed
@mmitche
Copy link
Member

mmitche commented Nov 24, 2025

/backport to release/10.0

@github-actions
Copy link
Contributor

Started backporting to release/10.0 (link to workflow run)

@mynameisbogdan mynameisbogdan deleted the common-args-keepnativesymbols branch November 24, 2025 20:35
@github-actions
Copy link
Contributor

@mmitche an error occurred while backporting to release/10.0. See the workflow output for details.

@Thefrank
Copy link

will this be for release/10.0.1xx or release/10.0.2xx?

@mthalman
Copy link
Member

mthalman commented Dec 2, 2025

/backport to release/10.0.1xx

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2025

Started backporting to release/10.0.1xx (link to workflow run)

@mthalman
Copy link
Member

mthalman commented Dec 2, 2025

/backport to release/10.0.2xx

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2025

Started backporting to release/10.0.2xx (link to workflow run)

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2025

@mthalman backporting to release/10.0.1xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Add KeepNativeSymbols to CommonArgs in build props
Using index info to reconstruct a base tree...
M	repo-projects/Directory.Build.props
Falling back to patching base and 3-way merge...
Auto-merging repo-projects/Directory.Build.props
CONFLICT (content): Merge conflict in repo-projects/Directory.Build.props
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Add KeepNativeSymbols to CommonArgs in build props
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2025

@mthalman backporting to release/10.0.2xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Add KeepNativeSymbols to CommonArgs in build props
Using index info to reconstruct a base tree...
M	repo-projects/Directory.Build.props
Falling back to patching base and 3-way merge...
Auto-merging repo-projects/Directory.Build.props
CONFLICT (content): Merge conflict in repo-projects/Directory.Build.props
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Add KeepNativeSymbols to CommonArgs in build props
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@mthalman
Copy link
Member

mthalman commented Dec 2, 2025

@mynameisbogdan - You'll need to manually apply these changes to the release/10.0.1xx branch and create a PR for that.

@mynameisbogdan
Copy link
Contributor Author

Okay, thank you for the heads up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants