From 50fd53f7b09434ce1af1c4cbc1dc8414f54d922a Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Thu, 1 May 2025 17:33:19 +1200 Subject: [PATCH 1/3] fix: MSB4185: The function "IsWindows" on type "System.OperatingSystem" is not available Resolves #4141: - https://github.com/getsentry/sentry-dotnet/issues/4141 When building .NET Framework applications, only whitelisted `System.*` property function invocations (e.g., `System.OperatingSystem.IsWindows()` are allowed). This PR avoid using an unlisted functions in the transitive build targets. --- src/Sentry/buildTransitive/Sentry.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sentry/buildTransitive/Sentry.targets b/src/Sentry/buildTransitive/Sentry.targets index 01ac89fb2a..6169666d28 100644 --- a/src/Sentry/buildTransitive/Sentry.targets +++ b/src/Sentry/buildTransitive/Sentry.targets @@ -15,7 +15,7 @@ - + From 4ef4b05f367e574d8e12d3d63844dce2f312a29f Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Thu, 1 May 2025 17:37:07 +1200 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22b7ee7380..61a4c5115d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Fixes - Work around iOS SHA1 bug ([#4143](https://github.com/getsentry/sentry-dotnet/pull/4143)) +- Fixes build error when building .NET Framwork applications using Sentry 5.6.0: `MSB4185 :The function "IsWindows" on type "System.OperatingSystem" is not available` ([#4160](https://github.com/getsentry/sentry-dotnet/pull/4160)) ### Dependencies From a0c01e00421c035897685fc24f91e543c298ba62 Mon Sep 17 00:00:00 2001 From: Allan Ritchie Date: Thu, 1 May 2025 09:07:17 -0400 Subject: [PATCH 3/3] Update CHANGELOG.md Co-authored-by: Martin Costello --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61a4c5115d..cf37dc9d80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ ### Fixes - Work around iOS SHA1 bug ([#4143](https://github.com/getsentry/sentry-dotnet/pull/4143)) -- Fixes build error when building .NET Framwork applications using Sentry 5.6.0: `MSB4185 :The function "IsWindows" on type "System.OperatingSystem" is not available` ([#4160](https://github.com/getsentry/sentry-dotnet/pull/4160)) +- Fixes build error when building .NET Framework applications using Sentry 5.6.0: `MSB4185 :The function "IsWindows" on type "System.OperatingSystem" is not available` ([#4160](https://github.com/getsentry/sentry-dotnet/pull/4160)) ### Dependencies