From 0fcf43ea78125d134c7adeb416692812a1818cf4 Mon Sep 17 00:00:00 2001 From: Gregg Miskelly Date: Fri, 8 Nov 2019 22:00:46 +0000 Subject: [PATCH] Update database instructions to work in .NET Core 3.0 In the 3.0 SDK `dotnet ef` needs to be installed. This updates the instructions/tool config to do so. More info: https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet --- README.md | 1 + src/Web/.config/dotnet-tools.json | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/Web/.config/dotnet-tools.json diff --git a/README.md b/README.md index 985be91..39cadbd 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ You can also run the samples in Docker (see below). ``` dotnet restore +dotnet tool restore dotnet ef database update -c catalogcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj dotnet ef database update -c appidentitydbcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj ``` diff --git a/src/Web/.config/dotnet-tools.json b/src/Web/.config/dotnet-tools.json new file mode 100644 index 0000000..ce3bfa9 --- /dev/null +++ b/src/Web/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-ef": { + "version": "3.0.0", + "commands": [ + "dotnet-ef" + ] + } + } +} \ No newline at end of file