title: What is wrong with this code. Why can't I use SqlConnection?
body: <p>I am 100% newbie to SQl and wanted to make a ConsoleApp with the use of database. I read some about it and tried. When I needed to make SqlConnection, my VS 2019 Preview showed me this </p>
  
  <blockquote>
    <p>Severity   Code    Description Project File    Line    Suppression State
    Error
        CS1069  The type name 'SqlConnection' could not be found in the namespace 'System.Data.SqlClient'.
     This type has been forwarded to assembly 'System.Data.SqlClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
        ConsoleApp1 C:\Users\User\Desktop\Bald Code\ConsoleApp1\ConsoleApp1\Program.cs  12
        Active</p>
  </blockquote>
  
  <p>i don't get why it doesn't work</p>
  
  <p>Here's my code</p>
  
  <pre><code>using System;
  
  using System.Data;
  
  using System.Data.SqlClient;
  
  namespace ConsoleApp1
  
  {
  
      class Program
      {
          static void Main(string[] args)
          {
              string connectionString;
              SqlConnection cnn;
          }
      }
  }
  </code></pre>