如何使用 Microsoft.Scripting.Hosting? [英] How to use Microsoft.Scripting.Hosting?

查看:35
本文介绍了如何使用 Microsoft.Scripting.Hosting?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要将一些 IronPython 代码嵌入到 C# 中,我想使用 ScriptEngine

To embed some IronPython Code into C# I want to use the ScriptEngine

using IronPython.Hosting;
using Microsoft.Scripting.Hosting;

我找到了 IronPython 的参考,但 Scripting.Hosting 的必要参考在哪里?我在面向 .Net 3.5 的 VisualStudio 2008 中找不到它.

I found the reference for IronPython, but where is the necessary reference for Scripting.Hosting? I can't find it within VisualStudio 2008, targeting .Net 3.5.

推荐答案

这看起来像是 DLR 二进制文件的一部分……更多信息在这里:

It looks like this is part of the DLR binaries ... more information here:

https://blogs.msdn.com/seshadripv/archive/2008/06/24/how-to-write-a-simple-dlr-host-in-c-using-托管 api.aspx

这篇关于如何使用 Microsoft.Scripting.Hosting?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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