title: MySqlConnection Not Defined But Referenced (VB.NET)
body: <p>I'm using Visual Studio 2013 with Mysql .Net (version 8.0.11) Connector to program a WPF application in VB.NET.</p>
  
  <p>In the project references I've added the reference to MySql.Data DLL (which is located in C:\Program Files (x86)\MySQL\Connector NET 8.0\Assemblies\v4.5.2\MySql.Data.dll) </p>
  
  <p>Then I've imported MySql.Data.MySqlClient in the MainWindow.xaml.vb and I've declared the MySqlConnetion as following:</p>
  
  <pre><code>Imports MySql.Data.MySqlClient
  
  Class MainWindow
  Dim connection As New 
  MySqlConnection("datasource=localhost;port=3306;username=****;password=****")
  Private Sub ButtonConnect_PreviewMouseDown(sender As Object, e As RoutedEventArgs) Handles ButtonConnect.PreviewMouseDown
      connection.Open()
      label.Content = "Connected"
  End Sub
  
  End Class
  </code></pre>
  
  <p>When I compile the project Visual Studio give me the following error:</p>
  
  <pre><code>Error   5   Type 'MySqlConnection' not defined. 
  </code></pre>
  
  <p>Could you help me to find the problem? </p>
  
  <p>Thank you very much!</p>