I am developing a class library that will be used in both Unix and Windows.
I had a case where Mono's System.Web.HttpClient adds an unwanted header (that .NET Windows does not). But I found a workaround that I can use to prevent side effect of Mono runtime.
To do that I need to find out if the binary is running on Mono runtime and I can simply add an if
statement and distribute my DLL afterwards.
Is there such flag / function to figure that out? Thanks.