How do I determine what platform my C# code is running on? for example whether it is running on Linux or windows so that I can execute different code at runtime.
I h
You can use System.Environment.OSVersion to check what kind of platform you're on at runtime.
System.Environment.OSVersion