For cross-platform development, I\'m trying to make a .NET Core shared library. I used the Class Library (package) project template in VS 2015. My library nee
If you don't want your original code full of #if ... #else ... #endif statements, you could use a helper library like https://www.nuget.org/packages/ReflectionBridge/ which provides some extensions which define a bridge for the differences between Type and TypeInfo.
(Source code at https://github.com/StefH/ReflectionBridge)