diff --git a/.gitignore b/.gitignore index 5e79d0f3c..6162be06a 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ package-dev/**/*.dll package-dev/**/*.meta package-dev/**/*.pdb package-dev/**/*.xml +package-dev/**/TestSentryOptions.json # Build output of Sentry.Unity sentry-unity/Assets/Plugins/Sentry/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4dd141cd6..4509d09d3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,12 +15,12 @@ Overall, there are two "flows" to take into account - `Development` and `Release ## Finding the Unity installation -The `UnityPath` configured in `src/Directory.Build.props` does a lookup at different locations to find Unity. +The `UnityPath` in `src/Directory.Build.props` does a lookup at different locations to find Unity. This is different per operating system. You can adjust it as needed: ```xml - + YOUR_PATH diff --git a/src/Directory.Build.props b/src/Directory.Build.props index f9e975c45..c45fee843 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,4 +1,5 @@ + 0.0.9 9 @@ -9,18 +10,53 @@ package-dev ../../$(PackageFolderName)/Runtime ../../$(PackageFolderName)/Editor + + $(NoWarn);NU1701 + - - C:\Program Files\Unity\Hub\Editor\$(UnityVersion)\Editor\Data\Managed - /Applications/Unity/Hub/Editor/$(UnityVersion)/Unity.app/Contents/Managed/ + + + C:\Program Files\Unity\Hub\Editor\$(UnityVersion)\Editor + + C:\Program Files\Unity\Editor + $(UnityRoot)\Data\Managed + $(UnityRoot)\Unity.exe + buildWindows64Player + game.exe + + + + /Applications/Unity/Hub/Editor/$(UnityVersion)/Unity.app/ - C:\Program Files\Unity\Editor\Data\Managed - /Applications/Unity/Unity.app/Contents/Managed + /Applications/Unity/Unity.app/ + $(UnityRoot)/Contents/Managed + $(UnityRoot)/Contents/MacOS/Unity + buildMacOS64Player + game + + + + + + + + + diff --git a/src/Sentry.Unity.Editor/Sentry.Unity.Editor.csproj b/src/Sentry.Unity.Editor/Sentry.Unity.Editor.csproj index 7ce0088d3..97aede6ed 100644 --- a/src/Sentry.Unity.Editor/Sentry.Unity.Editor.csproj +++ b/src/Sentry.Unity.Editor/Sentry.Unity.Editor.csproj @@ -7,11 +7,11 @@ - $(UnityPath)\UnityEngine.dll + $(UnityManagedPath)\UnityEngine.dll false - $(UnityPath)\UnityEditor.dll + $(UnityManagedPath)\UnityEditor.dll false diff --git a/src/Sentry.Unity/Sentry.Unity.csproj b/src/Sentry.Unity/Sentry.Unity.csproj index a44f962ef..d66aeffe7 100644 --- a/src/Sentry.Unity/Sentry.Unity.csproj +++ b/src/Sentry.Unity/Sentry.Unity.csproj @@ -6,7 +6,7 @@ - $(UnityPath)\UnityEngine.dll + $(UnityManagedPath)\UnityEngine.dll false diff --git a/src/test/Directory.Build.props b/src/test/Directory.Build.props index 819551158..ee45ce8e2 100644 --- a/src/test/Directory.Build.props +++ b/src/test/Directory.Build.props @@ -17,7 +17,7 @@ - $(UnityPath)/UnityEngine.dll + $(UnityManagedPath)/UnityEngine.dll false diff --git a/src/test/Sentry.Unity.Editor.Tests/Sentry.Unity.Editor.Tests.csproj b/src/test/Sentry.Unity.Editor.Tests/Sentry.Unity.Editor.Tests.csproj index 9e2d6d04f..897b52310 100644 --- a/src/test/Sentry.Unity.Editor.Tests/Sentry.Unity.Editor.Tests.csproj +++ b/src/test/Sentry.Unity.Editor.Tests/Sentry.Unity.Editor.Tests.csproj @@ -5,7 +5,7 @@ - $(UnityPath)/UnityEditor.dll + $(UnityManagedPath)/UnityEditor.dll false