Skip to content

fix: MSB4185: The function "IsWindows" on type "System.OperatingSystem" is not available #4160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 1, 2025

Conversation

jamescrosswell
Copy link
Collaborator

Resolves #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.

…m" 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.
@jamescrosswell jamescrosswell marked this pull request as ready for review May 1, 2025 08:51
Co-authored-by: Martin Costello <[email protected]>
@jamescrosswell jamescrosswell merged commit 8978bc4 into main May 1, 2025
26 checks passed
@jamescrosswell jamescrosswell deleted the is-windows branch May 1, 2025 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants