Commit 8978bc4
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 <[email protected]>
Co-authored-by: Martin Costello <[email protected]>1 parent 39e58f0 commit 8978bc4
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments