protected ExecutorBase CreateExecutor() { try { #if NET40 || NET45 return(new AppDomainExecutor( Assembly.Value(), DataDir.Value(), Config.Value(), RootNamespace.Value(), Language.Value())); #elif NETCOREAPP return(new ReflectionExecutor( Assembly.Value(), DataDir.Value(), Config.Value(), RootNamespace.Value(), Language.Value())); #else #error Unexpected target framework #endif } catch (FileNotFoundException ex) when(new AssemblyName(ex.FileName).Name == "EntityFramework") { throw new CommandException( string.Format( MyResources.EntityFrameworkNotFound, Path.GetFileNameWithoutExtension(Assembly.Value())), ex); } }