pwsh bootstrap.ps1
dotnet build- Build outputs and native plugins live in
package-dev/; do not hand-edit generated assemblies or downloaded native artifacts. - See
docs/agent-guides/build.mdfor target ownership, Unity selection, and local native builds.
dotnet msbuild /t:DownloadNativeSDKs src/Sentry.Unity- Requires
gh. Use when native artifacts are missing;dotnet builddoes not download them.
pwsh scripts/run-tests.ps1
pwsh scripts/run-tests.ps1 -Mode PlayMode -Filter "MyTest"
pwsh scripts/run-tests.ps1 -Mode EditMode- The harness targets
samples/unity-of-bugs-local, using Pipeline for an open Editor orunity testheadlessly when none is running. - Make
unityavailable onPATH. To reuse an Editor, open the sample in Unity 6.6+ withcom.unity.pipelineand leave play mode stopped. - Run
dotnet buildbefore tests after SDK changes.Filternarrows selected tests. - Use batch MSBuild test targets only when Unity CLI is unavailable. See
docs/agent-guides/testing.mdfor commands and integration tests.
Read only guide relevant to task. Do not import all guides at startup.
| Area | Paths or task | Guide |
|---|---|---|
| Build targets and native bootstrap | Directory.Build.*, build/, build failures |
docs/agent-guides/build.md |
| GitHub Actions | .github/workflows/, CI failures |
docs/agent-guides/ci.md |
| Tests | test/, Unity test harness, integration tests |
docs/agent-guides/testing.md |
| Packaging and releases | package*/, .craft.yml, scripts/pack.ps1, scripts/repack.ps1 |
docs/agent-guides/packaging.md |
| Runtime integrations | src/Sentry.Unity/, especially Integrations/ |
docs/agent-guides/integrations.md |
| Android | src/Sentry.Unity.Android/, Android plugins or export |
docs/agent-guides/platform-android.md |
| iOS and macOS Cocoa | src/Sentry.Unity.iOS/, src/Sentry.Unity.Editor.iOS/, Apple plugins |
docs/agent-guides/platform-apple.md |
| Native desktop and consoles | src/Sentry.Unity.Native/, native plugins |
docs/agent-guides/platform-native.md |
| Unity Editor | src/Sentry.Unity.Editor/, Editor configuration or preprocessors |
docs/agent-guides/editor.md |
- Use direct, capitalized commit subjects without conventional-commit prefixes.
- Include the committing agent's own
Co-Authored-Byattribution when a commit is requested.