diff --git a/Directory.Build.props b/Directory.Build.props index b5cdf261b8..c6b5e40b03 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -41,14 +41,12 @@ - + $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) 12.2 15.0 @@ -111,9 +109,6 @@ - - - $([MSBuild]::GetTargetFrameworkVersion($(TargetFramework))) - true - + + diff --git a/src/Sentry/Platforms/Native/Sentry.Native.targets b/src/Sentry/Platforms/Native/Sentry.Native.targets index 07845ef55a..befa26d123 100644 --- a/src/Sentry/Platforms/Native/Sentry.Native.targets +++ b/src/Sentry/Platforms/Native/Sentry.Native.targets @@ -76,7 +76,7 @@ - + @@ -86,7 +86,7 @@ built already on each native platform and fetched for the final .net build. --> diff --git a/src/Sentry/Platforms/Native/buildTransitive/Sentry.Native.targets b/src/Sentry/Platforms/Native/buildTransitive/Sentry.Native.targets index be2bf2bcd5..8dd9ec60ae 100644 --- a/src/Sentry/Platforms/Native/buildTransitive/Sentry.Native.targets +++ b/src/Sentry/Platforms/Native/buildTransitive/Sentry.Native.targets @@ -20,7 +20,7 @@ - true + true false diff --git a/src/Sentry/Sentry.csproj b/src/Sentry/Sentry.csproj index f5d358f8bc..b987d1042e 100644 --- a/src/Sentry/Sentry.csproj +++ b/src/Sentry/Sentry.csproj @@ -194,6 +194,8 @@ + + diff --git a/src/Sentry/buildTransitive/Sentry.props b/src/Sentry/buildTransitive/Sentry.props new file mode 100644 index 0000000000..c837e9af9e --- /dev/null +++ b/src/Sentry/buildTransitive/Sentry.props @@ -0,0 +1,9 @@ + + + + + <_SentryTargetFrameworkVersion>$([MSBuild]::GetTargetFrameworkVersion($(TargetFramework))) + <_SentryIsNet8OrGreater>$([MSBuild]::VersionGreaterThanOrEquals($(_SentryTargetFrameworkVersion), 8.0)) + <_SentryIsNet9OrGreater>$([MSBuild]::VersionGreaterThanOrEquals($(_SentryTargetFrameworkVersion), 9.0)) + + diff --git a/test/Directory.Build.props b/test/Directory.Build.props index ce5c98570f..11475f416c 100644 --- a/test/Directory.Build.props +++ b/test/Directory.Build.props @@ -14,7 +14,7 @@ false - true + true