title: The type or name space "RestSharp" and "System" could not be found
body: <p>In the project.cs file the below code is added</p>
  
  <pre><code>"frameworks": {
      "net451": {
        "dependencies": {
          "RestSharp": "105.2.3"
        },
        "frameworkAssemblies": {
          "System.configuration": "4.0.0.0"
        }
      },
      "dotnet5.4": {
        "dependencies": {
          "Microsoft.CSharp": "4.0.1-beta-23516",
          "System.Collections": "4.0.11-beta-23516",
          "System.Linq": "4.0.1-beta-23516",
          "System.Runtime": "4.0.21-beta-23516",
          "System.Threading": "4.0.11-beta-23516"
        }
      }
    },
  </code></pre>
  
  <p>Below is the image that show the assemblies and reference is added to the reference folder.When I build the solution I am getting and error as "<strong>The type or namespace name 'Configuration' does not exist in the namespace 'System'</strong>" and "<strong>The type or namespace name 'RestSharp' could not be found</strong>"</p>
  
  <p><a href="https://i.stack.imgur.com/8pUsr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8pUsr.png" alt="enter image description here"></a></p>
  
  <p>Below is the code.</p>
  
  <pre><code>using System.Collections.Generic;
  using CommonModels;
  using RestSharp;
  using ServiceLayer.Interface;
  using  System;
  
  
  
  namespace ServiceLayer.ImplementaionClass
  {
      public class WebApiCall&lt;T&gt; : IWebApiCall&lt;T&gt; where T : class 
      {
          private readonly string _baseUrl = string.Empty;
          public WebApiCall()
          {
              _baseUrl = System.Configuration.ConfigurationManager.AppSettings["ApiBaseUrl"];
          }
  
      public GenericResponseObject&lt;T&gt; GetResponseObject(string actionurl,params KeyValuePair&lt;string, string&gt;[] namePairs)
          {
              RestClient restClient = new RestClient(_baseUrl);
              RestRequest restRequest = new RestRequest(actionurl, Method.GET);
              foreach (KeyValuePair&lt;string, string&gt; items in namePairs)
              {
                  restRequest.AddParameter(items.Key, items.Value);
              }
              IRestResponse&lt;GenericResponseObject&lt;T&gt;&gt; response = restClient.Execute&lt;GenericResponseObject&lt;T&gt;&gt;(restRequest);
              GenericResponseObject&lt;T&gt; responseObject = response.Data;
              return responseObject;
          }
  
  
      }
  }
  </code></pre>