locked
Error when From the command line, run the following .NET Core CLI commands RRS feed

  • Question

  • User-1912714924 posted

    Error message: “Could not find any project in” 

    Reason:the command terminal must be locate at the directory of "Startup.cs", such as "Project/RazorPagesMovie/RazorPagesMovie"

    But 

    dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design : succeed

    dotnet restore: succeed

     dotnet ef migrations add InitialCreate :Build failed.

     dotnet ef database update : Build failed.

    why?

    Sunday, October 14, 2018 1:41 PM

All replies

  • User-1912714924 posted

    I find that we have to install Microsoft.EntityFramework.SQlite through NuGet.

    Then it run successfully.

    Sunday, October 14, 2018 2:38 PM