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 – Microsoft.csharp.dll in .NET 4.0
.net-4.0c#-4.0netvisual studiovisual studio 2010
Related Topic
- C# – What are the correct version numbers for C#
- .net – What does the Visual Studio “Any CPU” target mean
- .net – Difference between decimal, float and double in .NET
- Visual-studio – Cannot import the keyfile ‘blah.pfx’ – error ‘The keyfile may be password protected’
- .net – How to fix the Visual Studio compile error, “mismatch between processor architecture”
- Scala: list.flatten: no implicit argument matching parameter type (Any) = > Iterable[Any] was found
Best Answer
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 usedynamic
in your code, this assembly (as well as System.dll, System.Core.dll and System.Dynamic.dll) will get loaded into your AppDomain.