Skip to content

Drop unnecessary version checks

6ee1a4a
Select commit
Loading
Failed to load commit list.
Open

ref: replace concrete TargetFramework string comparisons with TargetFrameworkIdentifier/Version properties #5240

Drop unnecessary version checks
6ee1a4a
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden: find-bugs completed May 17, 2026 in 3m 31s

1 issue

find-bugs: Found 1 issue (1 low)

Low

`.NETFramework` condition omits version check, deviating from PR's own stated mapping - `test/Sentry.DiagnosticSource.Tests/Sentry.DiagnosticSource.Tests.csproj:30`

The condition '$(TargetFrameworkIdentifier)' == '.NETFramework' is missing the version guard And '$(TargetFrameworkVersion)' == 'v4.8' that the PR description explicitly documents as the correct replacement for '$(TargetFramework)' == 'net48'. This makes the condition match any .NET Framework version, not just 4.8.

Also found at:

  • src/Sentry.Extensions.Logging/Sentry.Extensions.Logging.csproj:18-21

⏱ 2m 58s · 232.1k in / 29.1k out · $1.20