If you get any of the two errors below while compiling your .NET app, then one of these things happened:
- You moved .NET 4 or higher code that makes use of dynamic into an assembly that does not reference theĀ Microsoft.CSharp.dll and System.Core.dll assemblies.
- You tried changing the .NET version of a project back to .NET 3.5 or lower.
Note that it is not so much declaring a variable as dynamic, but using that variable.
Predefined type ‘Microsoft.CSharp.RuntimeBinder.Binder’ is not defined or imported
One or more types required to compile a dynamic expression cannot be found. Are you missing references to Microsoft.CSharp.dll and System.Core.dll?
–jeroen