It's checked here:
https://github.com/scriptcs/scriptcs/blob/dev/src/ScriptCs.Hosting/ScriptServicesBuilder.cs#L56
though via a custom ITypeResolver. Refactoring to a Utility would be ok as
long as it is testable, but I don't think this is at all urgent, as we only
check 2 places.


On Mon, Jun 2, 2014 at 12:26 AM, Kristian Hellang <notifications@github.com>
wrote:

> In src/ScriptCs.Engine.Mono/MonoModule.cs:
>
> > @@ -12,9 +12,15 @@ public void Initialize(IModuleConfiguration config)
> >          {
> >              Guard.AgainstNullArgument("config", config);
> >
> > -            Console.WriteLine("Mono Engine initialized!");
> > +            if (Type.GetType("Mono.Runtime") == null)
>
> Do we do this check multiple places? I'd be nice with an
> EnvironmentUtility in core, à la NuGet
> <https://nuget.codeplex.com/SourceControl/latest#src/Core/Utility/EnvironmentUtility.cs>
> .
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/scriptcs/scriptcs/pull/737/files#r13273222>.
>