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: v0.9.5-beta~153^2~41 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=c6ca894ad25ed736e58464dfb0b224145691f529;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),