From: Jean-Philippe Bruyère Date: Wed, 21 Feb 2018 16:34:40 +0000 (+0100) Subject: add test if run on Mono, throw exception if not X-Git-Tag: 0.7.3~4^2~46 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=b24c3ed66620aa63f7ae2b1e24ad5db0114d913a;p=jp%2Fcrow.git add test if run on Mono, throw exception if not --- diff --git a/src/Interface.cs b/src/Interface.cs index 8c3792d5..485101e6 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -67,6 +67,10 @@ namespace Crow { #region CTOR static Interface(){ + if (Type.GetType ("Mono.Runtime") == null) { + throw new Exception (@"C.R.O.W. run only on Mono, download latest version at: http://www.mono-project.com/download/stable/"); + } + CrowConfigRoot = System.IO.Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),