JacekKosciesza / StarWars

GraphQL 'Star Wars' example using GraphQL for .NET, ASP.NET Core, Entity Framework Core
MIT License
622 stars 98 forks source link

Can't follow the instructions #8

Open windsting opened 7 years ago

windsting commented 7 years ago

Hi @JacekKosciesza , thank you for such a good content.

After explored briefly, I decided to follow the instructions as a leaning, but I found there is something different from my environment, like project.json in the beginning part, it happened here and there, I just googled and tried to step back to follow the instructions.

And finally, on the Microsoft.EntityFrameworkCore.Tools.DotNet part, as I clicked the install button for this nuget package, encountered an error

Package 'Microsoft.EntityFrameworkCore.Tools.DotNet 1.0.1' has a package type 'DotnetCliTool' that is not supported by project 'StarWars.Data'.

the dotnet ef command just not usable:

$ dotnet ef migrations add Initial -o .\EntityFramework\Migrations
No executable found matching command "dotnet-ef"

after some google reading, I even installed it with a edit .csproj file method, the message changed to:

$ dotnet ef
System.IO.FileNotFoundException: Could not find file 'D:\projects\starWarsLearn\starWars.Data\project.json'.
File name: 'D:\projects\starWarsLearn\starWars.Data\project.json'
   at System.IO.Win32FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, FileStream parent)
......(13 lines of stack trace)
Could not find file 'D:\projects\starWarsLearn\starWars.Data\project.json'.

In order to peek a little, I cloned your repository, but found it just not working on my machine(Win10-64bit VS2017), all dependencies under NuGet have a little yellow triangle on them, and the compiling reported many errors starwars-errors

Sorry, if I misused your tutorial, but I think it's just outdated for the development environment, and I don't know how to setup a same environment, would you please upgrade it?

And thank you for the original tutorial any way.

thalaeg commented 5 years ago

Currently struggling also with this same issue. As far as we can tel, the tools are included in Core 2.0+. That is why it is hard to install. Currently have been stuck on migrations for 2 hours

BenjaBobs commented 5 years ago

This guide is quite old. I suggest looking up Dotnet Core Boxed GraphQL.