Is there a way to run EF Core RC2 tools from published DLL?

后端 未结 5 1876
抹茶落季
抹茶落季 2021-02-07 03:26

After publishing a .Net Core RC1 application, commands specified in the project.json had corresponding .cmd files created for them which could be executed after deployment (e.g.

5条回答
  •  故里飘歌
    2021-02-07 03:48

    For EF Core 3.1 I succeeded with the following line ran in the release files folder. Of course the path to MyUser can be tweaked with

    dotnet exec --depsfile ProjectName.deps.json --runtimeconfig ProjectName.runtimeconfig.json C:\Users\MyUser.nuget\packages\dotnet-ef\3.1.9\tools\netcoreapp3.1\any\tools\netcoreapp2.0\any\ef.dll database update --context MyContext --assembly Project.dll --verbose

提交回复
热议问题