BDD SpecFlow The name ConfigurationManager does not exist in the current context
<p>I am trying out BDD using SpecFlow 2.1.0 in Visual Studio 2015
I want to use the App.config file to specify which browser I want to use e.g. Chrome browser and the URL.
To use this i should use the follwing line of code:</p>

<pre><code>ConfigurationManager.AppSettings["browser"];
</code></pre>

<p>But I am getting the error:</p>

<pre><code>The name ConfigurationManager does not exist in the current context
</code></pre>

<p>My Step where i have mentioned ConfigurationManager is as follows:</p>

<pre><code>using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TechTalk.SpecFlow;
using TechTalk.SpecFlow.Assist;

namespace SpecflowFirst.Steps
{
    [Binding]
    class GoogleSearchSteps
    {
        private static IWebDriver _driver;  

        [Given(@"I have navigated to Google page")]
        public void GivenIHaveNavigatedToGooglePage()
        {
            string driverConfig = ConfigurationManager.AppSettings["browser"];
            _driver = new ChromeDriver(@"E:\Selenium\Browser Drivers\");
            ConfigureDriver();
            _driver.Navigate().GoToUrl(ConfigurationManager.AppSettings["baseURL"];)

        }
// etc more steps below
</code></pre>

<p>My App.config file is as follows:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;configuration&gt;
  &lt;configSections&gt;
    &lt;section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow" /&gt;
  &lt;/configSections&gt;
  &lt;specFlow&gt;
    &lt;!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config --&gt;
  &lt;!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config --&gt;&lt;unitTestProvider name="NUnit" /&gt;
&lt;/specFlow&gt;
  &lt;appSettings&gt;
    &lt;add key="baseURL" value="http://www.google.co.uk"/&gt;
    &lt;add key="browser" value="Chrome"/&gt;
  &lt;/appSettings&gt;

&lt;/configuration&gt;
</code></pre>

<p>Am I missing a reference package or is my syntax wrong?</p>

<p>Thanks for help, Riaz</p>