You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: MSB4185: The function "IsWindows" on type "System.OperatingSystem" is not available (#4160)
* fix: MSB4185: The function "IsWindows" on type "System.OperatingSystem" is not available
Resolves#4141:
- #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.
---------
Co-authored-by: Allan Ritchie <allan.ritchie@gmail.com>
Co-authored-by: Martin Costello <martin@martincostello.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
### Fixes
11
11
12
12
- Work around iOS SHA1 bug ([#4143](https://github.com/getsentry/sentry-dotnet/pull/4143))
13
+
- 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))
Copy file name to clipboardExpand all lines: src/Sentry/buildTransitive/Sentry.targets
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
<ErrorText="Android projects using Sentry cannot build using AndroidEnableAssemblyCompression = false due to a Microsoft issue. Please follow https://github.com/dotnet/android/issues/9752" />
0 commit comments