title: SqlConnection.Open() hangs in .NET Core Consol project, but connects fine in a regular C# console project
body: <p>My program connects to the server fine in a C# console project using the following code:</p>
  
  <pre><code>public static void Main(string[] args)
          {
              Console.WriteLine("Hello World!");
              System.Data.SqlClient.SqlConnection conn = 
                  new System.Data.SqlClient.SqlConnection();
  
              string connectionString = "Data Source=IPOfServer;" +
                  "Initial Catalog=nameOfDatabase;"+
                  "User ID=USERNAME;" +
                  "Password=PASSWORD";
  
              conn.ConnectionString = connectionString;
  
              try
              {
                  Console.WriteLine("Before Connection");
                  conn.Open();
                  Console.WriteLine("Connection Open");
                  conn.Close();
                  Console.WriteLine("Connection Closed");
              }
              catch (Exception ex)
              {
                  Console.WriteLine(String.Format("Can't Connect; Error:{0}", ex.Message));
              }
          }
  </code></pre>
  
  <p>And outputs:</p>
  
  <pre><code>Hello World!
  Before Connection
  Connection Open
  Connection Closed
  </code></pre>
  
  <p>When I try the exact same code in a .NET Core Console project, my output is:</p>
  
  <pre><code>Hello World!
  Before Connection
  </code></pre>
  
  <p>But the program does not ever error or end. It just hangs forever.</p>
  
  <p>I am using the packages <code>System.Data.Common</code> and <code>System.Data.SqlClient</code><br>
  It is a MSSQL 2005 Server that I am attempting to connect to.</p>
  
  <p>What am I doing wrong/how do I connect to my server using a .NET Core Console project? I looked into using the <code>EntityFramework</code>, but would prefer to not use it unless that is my only option.</p>