| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
In newer versions of .NET (6 or later), Mono.Runtime does not exist even if the runtime is Mono. Mono.RuntimeStructs is one of the types which is existed both older and newer Mono.
There was a problem hiding this comment.
Thanks
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
In newer versions of .NET (6 or later), Mono runtime is still used for some targets like mobile OSes, rather than CoreCLR.
However, currently, Mono.Runtime class does not exist in latest Mono-flavored System.Private.CoreLib library.
This causes the problem of MonoProtection (introduced by #1035) not being enabled unintentionally.
The bug in Mono that is the cause of introducing MonoProtection is not fixed yet so MonoProtection is still needed.
Mono.RuntimeStructs is one of the types which exist in both the older Mono and newer Mono.
So this pullreq modifies to use this type to determine the current runtime rather than Mono.Runtime.
Other projects like BenchmarkDotnet also uses Mono.RuntimeStructs to make decisions.