VS.Net 2010 中缺少 System.Scripting - 在哪里可以找到它?
我安装了 VS.Net 2010 来尝试一些新的 C# 功能,并且我尝试使用 IDynamicObject 接口,但我不能,因为它找不到 System.Scripting 命名空间。我需要安装什么才能得到这个?
谢谢!
I installed VS.Net 2010 to play around with some of the new C# features and I'm trying to use the IDynamicObject interface but I can't because it can't find the System.Scripting namespace. What do I need to install to get this?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为这可能已被重命名:
http ://msdn.microsoft.com/en-us/library/system.dynamic.idynamicmetaobjectprovider(VS.100).aspx
但也许更了解这一点的人肯定知道。只是分享以防它可以帮助您解锁。
(我知道 DLR 位于 .Net 4.0 和 VS2010-Beta2 中,因为它们刚刚发布了在其上运行的 Iron Python/Ruby 的匹配更新。)
I think possibly this has been renamed:
http://msdn.microsoft.com/en-us/library/system.dynamic.idynamicmetaobjectprovider(VS.100).aspx
but perhaps someone more in tune with this knows for sure. Just sharing in case it helps unblock you.
(I know the DLR is in .Net 4.0 and VS2010-Beta2, since they just release matching updates of Iron Python/Ruby that run atop it.)
您可以从 codeplex 下载 DLR 库。我相信它们应该内置到.NET 4.0中,我不确定为什么它们不在VS2010中,也许它们不在测试版中。无论如何,我一直在使用 codeplex 库进行实验,它们应该与 .NET 4.0 版本相同(加上一些额外的托管功能)。他们还有一些关于如何使用它的相当好的文档。
编辑:
此外,您还可以将 codeplex 库与 VS2008 一起使用。
You can download the DLR libraries from codeplex. I believe they were supposed to be built into .NET 4.0, I'm not sure why they aren't in VS2010, perhaps they are not in the beta. In any case, I have been using the codeplex libraries for my experimentation, they are supposed to be the same as the .NET 4.0 version (plus some extra hosting features). They also have some reasonably good documentation on how to use it.
Edit:
Additionally, you can use the codeplex libraries with VS2008.