Skip to content

chore: restructure dotnet build targets for local development - #2680

Merged
bitsandfoxes merged 10 commits into
mainfrom
chore/build-native-sdks-locally
May 20, 2026
Merged

bitsandfoxes merged 10 commits into
mainfrom
chore/build-native-sdks-locally

Conversation

@bitsandfoxes

@bitsandfoxes bitsandfoxes commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

QOL feature for local development, so we (I) don't have to clean and build with every change.
Sample usage:

  • dotnet build - builds the entire SDK stack including native sdks
  • dotnet msbuild /t:BuildAndroidSDK src/Sentry.Unity cleans the output artifacts, and rebuilds sentry-native and sentry-java

#skip-changelog

@bitsandfoxes bitsandfoxes changed the title allow force rebuild for mobile native sdks chore: allow force rebuild for mobile native sdks May 13, 2026
Base automatically changed from chore/anr-native-samples to main May 18, 2026 14:42
@bitsandfoxes bitsandfoxes changed the title chore: allow force rebuild for mobile native sdks chore: restructure dotnet build targets for local development May 19, 2026
@bitsandfoxes
bitsandfoxes marked this pull request as ready for review May 19, 2026 08:38
Comment thread build/local-dev.targets

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the targets used to build players for tests, or utility to help with setup.

Comment thread build/native-sdks.targets

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These targets are intended to allow for iterative building, to overwrite the output inside of package-dev/Plugins/ on each call. No more manual deletion before building.
The Ensure targets are hooked up to the regular build to allow calling dotnet build from the root and the repo automatically builds itself and its native layer.

Comment thread build/native-sdks.targets Resolved

@bitsandfoxes bitsandfoxes May 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a helper to build sentry-native for sentry-java locally. These will get picked up from sentry-java via mavenLocal.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7c5fd74. Configure here.

Comment thread .github/workflows/sdk.yml Resolved
Comment thread build/native-sdks.targets Resolved
Comment thread build/native-sdks.targets Resolved
@bitsandfoxes
bitsandfoxes requested a review from a team May 20, 2026 08:27
@bitsandfoxes
bitsandfoxes merged commit 423f6cd into main May 20, 2026
79 checks passed
@bitsandfoxes
bitsandfoxes deleted the chore/build-native-sdks-locally branch May 20, 2026 09:03
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.

2 participants