title: 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?
body: <p>I am trying to compile this code in Microsoft Visual C# 2010</p>
  
  <pre><code>using System;
  using System.Globalization;
  
  
  class main
  {
      static void Main()
      {
  
          dynamic d;
          d = "dyna";
          Console.WriteLine(d);    
      }
  }
  </code></pre>
  
  <p>but I am getting these two errors</p>
  
  <p><em>Error  1   Predefined type 'Microsoft.CSharp.RuntimeBinder.Binder' is not defined or imported</em></p>
  
  <p><em>Error 2        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?</em></p>
  
  <p>I read this other <a href="https://stackoverflow.com/questions/7115055/why-am-i-getting-one-or-more-types-required-to-compile-a-dynamic-expression-can">post</a> but I am new to C# and I couldn't understand what really is the problem. Especially what and where are these so called <code>.config</code> files..</p>