Skip to content

Comments

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

Merged
jamescrosswell merged 3 commits intomainfrom
is-windows
May 1, 2025
Merged

fix: MSB4185: The function "IsWindows" on type "System.OperatingSystem" is not available#4160
jamescrosswell merged 3 commits intomainfrom
is-windows

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

Development

Successfully merging this pull request may close these issues.

The function "IsWindows" on type "System.OperatingSystem" is not available for execution as an MSBuild property function.

3 participants