From b24c3ed66620aa63f7ae2b1e24ad5db0114d913a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Wed, 21 Feb 2018 17:34:40 +0100 Subject: [PATCH] add test if run on Mono, throw exception if not --- src/Interface.cs | 4 ++++ 1 file changed, 4 insertions(+) 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), -- 2.47.3