title: Web scraping with VS Code -- The type 'Object' is defined in an assembly that is not referenced
body: <p>I've seen this problem come up a few times on here, but I don't really understand the answers/issue, so here goes.</p>
  
  <p>I get this error everything I build: </p>
  
  <blockquote>
    <p>The type 'Object' is defined in an assembly that is not referenced.
    You must add a reference to assembly 'System.Private.CoreLib,
    Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.</p>
  </blockquote>
  
  <p>This is my code.</p>
  
  <pre><code>using System;
  using OpenQA.Selenium.Firefox;
  using OpenQA.Selenium;
  
  
      class Program
      {
          static void Main()
          {
  
              IWebDriver driver = new FirefoxDriver();
          }
      }
  </code></pre>
  
  <p>This is my csproj file.</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
    &lt;PropertyGroup&gt;
      &lt;OutputType&gt;Exe&lt;/OutputType&gt;
      &lt;TargetFramework&gt;netcoreapp2.2&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="Selenium.Firefox.WebDriver" Version="0.24.0"/&gt;
      &lt;PackageReference Include="Selenium.WebDriver" Version="4.0.0-alpha02"/&gt;
      &lt;PackageReference Include="Selenium.Support" Version="4.0.0-alpha02"/&gt;
    &lt;/ItemGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>and the webdriver is in the PATH and is indeed in the bin. If I remove the reference to <code>IWebDriver</code>, the project builds fine, so it is definitely something here causing the issue. Any advice? </p>