title: Primary reference could not be resolved?? (VB.NET)
body: <p>I am trying to connect vb.net 2010 to an SQL database using the MySQL DLL file, however whenever I compile it I am getting the following error:</p>
  
  <pre><code>Warning 1   The primary reference "MySql.Data" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".   SQL
  </code></pre>
  
  <p>I have tried it on my desktop as well (also running vb 2010 on windows 8.1) however it won't compile, however on a windows 7 PC it compiles with no issue, despite the fact that the settings appear to be the same.</p>
  
  <p>Any ideas?</p>