diff --git a/Directory.Build.props b/Directory.Build.props
index 3b12ca17d5..5e8a9b3c2c 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -50,11 +50,6 @@
true
-
-
- false
-
-
- false
false
diff --git a/build.cmd b/build.cmd
index 8ae96e27aa..01c0cea7e6 100644
--- a/build.cmd
+++ b/build.cmd
@@ -1,3 +1,2 @@
-set UseSentryCLI=false
dotnet build Sentry.sln -c Release
dotnet test Sentry.sln -c Release --no-build
diff --git a/build.sh b/build.sh
index fdead9b9f3..01c0cea7e6 100755
--- a/build.sh
+++ b/build.sh
@@ -1,3 +1,2 @@
-export UseSentryCLI=false
dotnet build Sentry.sln -c Release
dotnet test Sentry.sln -c Release --no-build
diff --git a/samples/Directory.Build.props b/samples/Directory.Build.props
index 59e07989bb..927ac00a5b 100644
--- a/samples/Directory.Build.props
+++ b/samples/Directory.Build.props
@@ -6,11 +6,6 @@
false
-
-
- false
-
-
-
- net6.0
- false
-
-
- net7.0
- true
+
+
+ true
diff --git a/src/Sentry/buildTransitive/Sentry.targets b/src/Sentry/buildTransitive/Sentry.targets
index 04b2392a19..a5c77238d3 100644
--- a/src/Sentry/buildTransitive/Sentry.targets
+++ b/src/Sentry/buildTransitive/Sentry.targets
@@ -34,8 +34,13 @@
false
false
-
- true
+
+ true
@@ -120,53 +125,88 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ true
+ $(PublishDir)
+
+ CopyNativeBinary
+
+
+
+
+
+
+
+
+
+ false
+ $(OutputPath)
+ Build
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(NativeBinary)$(NativeSymbolExt)
+ @(IntermediateAssembly->'$(SentryCLIUploadDirectory)%(FileName).pdb')
+ @(IntermediateAssembly->'$(SentryCLIUploadDirectory)%(FileName)%(Extension)')
+ $([System.IO.Path]::GetDirectoryName('$(SentryCLIDebugInfoFile)'))
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- <_SentryDebugInfoFile>@(IntermediateAssembly->'$(IntermediateOutputPath)%(FileName).pdb')
- <_SentryDebugInfoFile Condition="!Exists('$(_SentryDebugInfoFile)')">@(IntermediateAssembly->'$(IntermediateOutputPath)%(FileName)%(Extension)')
- <_SentrySourceBundle>@(IntermediateAssembly->'$(IntermediateOutputPath)%(FileName).src.zip')
-
-
-
-
-
-
-
-
-
-
+
diff --git a/test/Directory.Build.props b/test/Directory.Build.props
index 0b3d74d32c..7010ce8f21 100644
--- a/test/Directory.Build.props
+++ b/test/Directory.Build.props
@@ -9,11 +9,6 @@
true
-
-
- false
-
-