title: Unable to generate model from database in Visual Studio 2017 RC
body: <p>I followed the official Microsoft tutorial for Entity Framework Core database first approach available in <a href="https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/existing-db" rel="nofollow noreferrer">this link</a>.</p>
  
  <p>When I try to execute the below command to generate the model from the database:</p>
  
  <p><code>Scaffold-DbContext "Server=Data Source=DESKTOP-COJD62N;Initial Catalog=TrainGameDB;Integrated Security=True" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -context TrainGameContext -Verbose</code></p>
  
  <p>I am getting the following output:</p>
  
  <pre><code>Build started...
  Build succeeded.
  dotnet exec needs a managed .dll or .exe extension. The application specified was 'F:_IIT Level 6\UX\CW2 Backend\App2\TrainGameAPI\src\TrainGameAPI\bin\Debug\netcoreapp1.0\TrainGameAPI.runtimeconfig.json'
  Process finished with non-zero exit code
  </code></pre>
  
  <p>I am using:</p>
  
  <p>Visual Studio 2017 RC</p>
  
  <p>SQL Server 2016 Developer</p>
  
  <p>.NET Core 1.1.0 (I uninstalled version 1.0.1 and installed this)</p>
  
  <p>ASP.NET Core Web API Application</p>
  
  <p>Windows 10 Education</p>
  
  <p>Here is the list of packages from my .csproj file (VS 2017 doesn't have a package.json file)</p>
  
  <pre><code>&lt;PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.0" /&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.0" /&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.1.0-preview4-final" /&gt;
      &lt;PackageReference Include="Microsoft.NETCore.App" Version="1.0.1" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.0.1" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.Routing" Version="1.0.1" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.0.0" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.0.1" /&gt;
      &lt;PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.0.0" /&gt;
      &lt;PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="1.0.0" /&gt;
      &lt;PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.0.0" /&gt;
      &lt;PackageReference Include="Microsoft.Extensions.Logging" Version="1.0.0" /&gt;
      &lt;PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.0.0" /&gt;
      &lt;PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.0.0" /&gt;
      &lt;PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="1.0.0" /&gt;
  </code></pre>