title: How to add an App.Config in Visual Studio Code?
body: <p>How to configure a C# program with a connection string in Visual Studio Code?</p>
  
  <p>This is for .Net Core 2.2 using .Net Core SDK version 2.2.203 in Visual Studio Code 1.34.0</p>
  
  <p>I have tried to add App.Config file to the project, but I'm not able to resolve this issue. Do let me know any solution to configure connection string.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Data;
  using System.Data.Common;
  using System.Data.SqlClient;
  using System.Linq;  
  using System.Web;
  using System.Configuration;
  using System.Collections.Specialized;
  using Dapper;
  
  namespace Sample_Dapper
  {
      class Program
      {
          static void Main(string[] args)
          {
              IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString);
  
              var SqlString = "SELECT TOP 100 [CustomerID],[CustomerFirstName], 
                               [CustomerLastName],[IsActive] FROM [Customer]";
              var ourCustomers = (List&lt;Customer&gt;)db.Query&lt;Customer&gt;(SqlString);
          }
      }
  }
  </code></pre>