开发者

Would you recommend Iron Ruby, Iron Python, or PowerShell for making a C# application a script host?

开发者 https://www.devze.com 2023-01-11 19:40 出处:网络
Would you recommend Iron Ruby, Iron Python, or PowerShell for making a C# application a script host? After some quick tinkering, right now I\'m leaning towards powershell for two main reasons (note t

Would you recommend Iron Ruby, Iron Python, or PowerShell for making a C# application a script host?

After some quick tinkering, right now I'm leaning towards powershell for two main reasons (note these a purely my opinions and if they are wrong, I'd love to know!!!):

1) It's simple to create a runspace with classes in your application; therefor it's easy to make your application scriptable.

2) I've heard some rumors that IronRuby and IronPython are losing support from Microsoft, so they may be a poor long term solution?

As this is my first time adding scripting to an application though, I'd welcome all the advice I can get from people who have been down this road before.

Specifically, besides letting me know whether you agree with my two points above, I'd like to know if IronRuby and IronPython a开发者_如何转开发re much easier to use (for a user, not developer) than powershell, and if in your experience using the DLR is as easy as just passing an object to a powershell runspace? And if I added support for the DLR and IR/IP scripting would my application still be backwards compatible with XP?


EDIT in June, 2022

With 12 years behind us, the original answer is terribly bad

0

精彩评论

暂无评论...
验证码 换一张
取 消