aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-21 17:34:40 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-21 17:34:40 +0100
commitc6ca894ad25ed736e58464dfb0b224145691f529 (patch)
tree36f4156bf66ae62f298507abeec1ddd21f51763f /src/Interface.cs
parent7c735fa149bf23223eda734f19d5547797ca8ac2 (diff)
add test if run on Mono, throw exception if not
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs4
1 files changed, 4 insertions, 0 deletions
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),