用于嵌入 C#/.NET 应用程序的脚本语言? [英] Scripting language for embedding into C#/.NET applications?

查看:26
本文介绍了用于嵌入 C#/.NET 应用程序的脚本语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[我能找到的唯一类似问题很久以前就得到了回答,并且包含对大部分 IronPython 的引用.我也想考虑其他选择]

[The only similar question I can find was answered long ago and contains a reference to mostly IronPython. I want to consider other options as well]

我们有一个用 C# 编写的复杂数据分析应用程序.该应用程序应为用户提供一种自定义其数据分析任务的复杂方法.目前,我们混合使用配置文件和 Excel 表来指定这一点,但它变得笨拙,因此我们正在寻找一种脚本语言来嵌入.

We have a complex data analysis application written in C#. The application should provide users with a sophisticated means of customizing their data analysis tasks. Currently, we use a mixture of configuration files and Excel tables to specify this, but it gets unwieldy, so we're looking for a scripting language to embed.

用于 C#/.NET 嵌入的最佳简单脚本语言是什么?是否有可能以某种方式嵌入类似于 Excel/Word 的 VBA?或者是否使用了 JavaScript/Lua?

What's the best simple scripting language for C#/.NET embedding? Is it possible to somehow embed VBA similarly to Excel/Word? Or is perhaps JavaScript/Lua are used?

不用说,将主应用程序中的一些 API 和对象暴露到嵌入式脚本中应该很容易.

Needless to say, it should be easy to expose some API and objects from the main application into the embedded scripts.

推荐答案

我知道其他问题参考 IronPython,但我仍然觉得它应该在这里,因为我认为这是最好的选择之一.

I know the other question references IronPython, but I still feel like it should be here because I think it's one of the best options.

另一个不错的选择是 IronRuby.我看到的主要区别在于,您的开发人员/用户是否有任何可转移的 Python 或 Ruby 经验.

Another great option would be IronRuby. The main difference I see would be if your developers/users had any experience with either Python or Ruby that could be transferable.

实际上,最终您的最佳选择将是一种最容易被用户适应的语言.除非他们接受它并且能够比使用旧方法时更有效率,否则不值得付出努力.

Really, in the end your best option is going to be a language that is most easily adapted to by the users. Unless they accept it and are able to be more productive than they were with the old method it isn't worth the effort.

这篇关于用于嵌入 C#/.NET 应用程序的脚本语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆