What is Microsoft.csharp.dll in .NET 4.0

.NetVisual Studio-2010Visual StudioC# 4.0.Net 4.0

.Net Problem Overview


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.

.Net Solutions


Solution 1 - .Net

It is used when/if you use the dynamic keyword in your project. The assembly contains the C# runtime binder.

The C# compiler has essentially been extracted out into a library so that it can emit, compile and run code needed to support the dynamic keyword. The first time you use dynamic in your code, this assembly (as well as System.dll, System.Core.dll and System.Dynamic.dll) will get loaded into your AppDomain.

Solution 2 - .Net

Always removed it so far. No issues yet.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionanonView Question on Stackoverflow
Solution 1 - .NetadrianbanksView Answer on Stackoverflow
Solution 2 - .NetTomTomView Answer on Stackoverflow