.NET 4.0 中的 Microsoft.csharp.dll 是什么
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2460883/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is Microsoft.csharp.dll in .NET 4.0
提问by anon
This DLL is added by default in Visual Studio 2010 projects. What is this new assembly used for? It does not seem to contain much after looking at it using Reflector and Google does not seem to have much to say about it either.
这个 DLL 默认添加到 Visual Studio 2010 项目中。这个新组件有什么用?使用 Reflector 查看后,它似乎没有太多内容,谷歌似乎也没有太多可说的。
回答by adrianbanks
It is used when/if you use the dynamickeywordin your project. The assembly contains the C# runtime binder.
当/如果您在项目中使用dynamic关键字时使用它。该程序集包含 C# 运行时绑定器。
The C# compiler has essentially been extracted out into a library so that it can emit, compile and run code needed to support the dynamickeyword. The first time you use dynamicin your code, this assembly (as well as System.dll, System.Core.dll and System.Dynamic.dll) will get loaded into your AppDomain.
C# 编译器本质上已被提取到一个库中,以便它可以发出、编译和运行支持dynamic关键字所需的代码。第一次dynamic在代码中使用时,此程序集(以及 System.dll、System.Core.dll 和 System.Dynamic.dll)将加载到您的 AppDomain 中。
回答by TomTom
Always removed it so far. No issues yet.
到目前为止总是删除它。还没有问题。

