title: EF Core Error - No project was found. Change the current working directory or use the --project option
body: <p>I am using <strong>Visual Studio 2015</strong> and dotnet core and trying to develop an <strong>EF Core Code First project using Sqlite</strong> and this documentation / tutorial, which also uses Sqlite => <a href="https://docs.microsoft.com/en-us/ef/core/get-started/netcore/new-db-sqlite" rel="noreferrer">NET Core - New Database</a></p>
  
  <p>When I try to add an initial migration from the command line ( I am CD-ed into the folder that my data model project is located in) by issuing the following command</p>
  
  <pre><code>dotnet ef migrations add InitialMigration
  </code></pre>
  
  <p>...I get the following Error.</p>
  
  <p><a href="https://i.stack.imgur.com/Huavv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Huavv.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>No project was found. Change the current working directory or use the --project option.</p>
  </blockquote>
  
  <p>I even tried using the <code>--project</code> option like so.</p>
  
  <pre><code>&gt; dotnet --project "C:\Shiva\EF\EFCFSqlite.Data.xproj"  ef migrations add InitialMigration
  </code></pre>
  
  <p>but that gives the following error.</p>
  
  <pre><code>Unknown option: --project
  .NET Command Line Tools (1.0.0-preview2-003131)
  Usage: dotnet [host-options] [command] [arguments] [common-options]
  </code></pre>
  
  <p>I noticed that the documentation is using <code>.csproj</code> file whereas my Project is showing a <code>xproj</code> file. Also the docs mention something about not using <code>project.json</code> anymore :(</p>
  
  <p>Here's my <code>project.json</code> file. </p>
  
  <pre><code>{
    "version": "1.0.0-*",
  
    "dependencies": {
      "Microsoft.EntityFrameworkCore.Sqlite": "1.1.1",
      "Microsoft.EntityFrameworkCore.Sqlite.Design": "1.1.1",
      "NETStandard.Library": "1.6.1"
    },
    "tools": {
      "Microsoft.EntityFrameworkCore.Tools.DotNet":"1.0.0"
    },
    "frameworks": {
      "netstandard1.6": {
        "imports": "dnxcore50"
      }
    }
  </code></pre>
  
  <p>What has changed? Do we have no choice but to <strong>Install Visual Studio 2017</strong> and start from scratch?? Is <code>project.json</code> and all this other stuff no longer honored? </p>
  
  <h3>Seems like a massive change to me if that's the case :(</h3>