diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 106a374a3..911590a08 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -49,7 +49,11 @@ Sentry Native is a sub module from Sentry Unity and for building it, currently r ## Build the project -On the root of the repository, write: +[Optional] You can save some time on the initial build by downloading the prebuild Native SDK artifacts from the last successful build of the `main` branch (requires [GH CLI](https://cli.github.com/) to be installed locally). + +`dotnet msbuild /t:DownloadNativeSDKs src/Sentry.Unity` + +To build the whole project (including native SDKs if you've skipped the previous step), run: `dotnet build` diff --git a/Directory.Build.targets b/Directory.Build.targets index 5e79f763f..ef145f165 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -14,17 +14,18 @@ $(RepoRoot)samples/unity-of-bugs/ProjectSettings/ProjectVersion.txt ../../artifacts/test/playmode/results.xml ../../artifacts/test/editmode/results.xml + $(RepoRoot)package-dev/Plugins/ $(RepoRoot)modules/sentry-cocoa/ - $(RepoRoot)package-dev/Plugins/iOS/Device/Sentry.framework/ - $(RepoRoot)package-dev/Plugins/iOS/Simulator/Sentry.framework/ + $(SentryArtifactsDestination)/iOS/Device/Sentry.framework/ + $(SentryArtifactsDestination)/iOS/Simulator/Sentry.framework/ $(RepoRoot)modules/sentry-java/ - $(RepoRoot)package-dev/Plugins/Android/Sentry/ + $(SentryArtifactsDestination)/Android/Sentry/ $(RepoRoot)modules/sentry-native/ - $(RepoRoot)package-dev/Plugins/Windows/Sentry/ + $(SentryArtifactsDestination)/Windows/Sentry/ @@ -492,4 +493,24 @@ void PrintFailedTests(XElement element) + + + + + + + + + + + + + + + + +