1

VS 2017이있는 서버에서 EF core 명령을 실행하는 방법을 알고 있습니까?서버에서 Ef 코어 마이그레이션 실행

SDK 2.0.3이 서버에 설치되어 있습니다.

나는 소스 코드 폴더에서이 명령을 실행 :

dotnet exec --depsfile auth.deps.json --runtimeconfig auth.runtimeconfig.json ef.dll migrations list --assembly auth.dll 

이 오류 가지고 :

No project was found. Change the current working directory or use the --project option.

답변

1

을이 시도 :

복사 내용이

  • 을 파일 ef.dll
  • ef.runtimeconfig.json

에서 :

C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.entityframeworkcore.tools.dotnet\2.0.0\tools\netcoreapp2.0

소스 파일, 관리자 모드에서 명령 프롬프트를 엽니, 포인트 소스 파일 폴더 당신에게로 다시

당신의 명령을 실행