Skip to content

chore: restructure dotnet build targets for local development#2680

Open
bitsandfoxes wants to merge 10 commits into
mainfrom
chore/build-native-sdks-locally
Open

chore: restructure dotnet build targets for local development#2680
bitsandfoxes wants to merge 10 commits into
mainfrom
chore/build-native-sdks-locally

Conversation

@bitsandfoxes
Copy link
Copy Markdown
Contributor

@bitsandfoxes bitsandfoxes commented May 13, 2026

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 Outdated
Copy link
Copy Markdown
Contributor Author

@bitsandfoxes bitsandfoxes May 19, 2026

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.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

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 Outdated
Comment thread build/native-sdks.targets
Comment thread build/native-sdks.targets
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.

1 participant