LoginSignup
0
0

More than 3 years have passed since last update.

[C#] Entity Framework Coreのデータベースファーストでエラーが出た時の対処方法

Last updated at Posted at 2020-05-30

エラー内容

PM> Scaffold-DbContext "[ConnectionString]" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Entities
Build started...
Build succeeded.
Error:
  An assembly specified in the application dependencies manifest (project_name.deps.json) was not found:
    package: 'project_name', version: '1.0.0'
    path: 'project_name.dll'

対処方法

dotnet ef dbcontext scaffold "[ConnectionString]" Microsoft.EntityFrameworkCore.SqlServer -o Entities

補足

以下は必須。

dotnet tool install --global dotnet-ef
dotnet add package Microsoft.EntityFrameworkCore.Design

参考資料

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0