diff --git a/aspnetcore/tutorials/web-api-vsc.md b/aspnetcore/tutorials/web-api-vsc.md index f9ac21a9a1..b600ad7b5d 100644 --- a/aspnetcore/tutorials/web-api-vsc.md +++ b/aspnetcore/tutorials/web-api-vsc.md @@ -56,7 +56,7 @@ Open the *TodoApi* folder in Visual Studio Code (VS Code) and select the *Startu -![VS Code with Warn Required assets to build and debug are missing from 'TodoApi'. Add them? Don't ask Again, Not Now, Yes and also Info - there are unresolved dependencies - Restore - Close](web-api-vsc/_static/vsc_restore.png) +![VS Code with Warn Required assets to build and debug are missing from 'TodoApi'. Add them? Don't ask Again, Not Now, Yes](web-api-vsc/_static/vsc_restore.png) Press **Debug** (F5) to build and run the program. In a browser navigate to http://localhost:5000/api/values . The following is displayed: @@ -66,12 +66,10 @@ See [Visual Studio Code help](#visual-studio-code-help) for tips on using VS Cod ## Add support for Entity Framework Core -Edit the *TodoApi.csproj* file to install the [Entity Framework Core InMemory](https://docs.microsoft.com/ef/core/providers/in-memory/) database provider. This database provider allows Entity Framework Core to be used with an in-memory database. +Creating a new project in .NET Core 2.0 adds the 'Microsoft.AspNetCore.All' provider in the *TodoApi.csproj* file. There is no need to install the [Entity Framework Core InMemory](https://docs.microsoft.com/ef/core/providers/in-memory/) database provider separately. This database provider allows Entity Framework Core to be used with an in-memory database. [!code-xml[Main](web-api-vsc/sample/TodoApi/TodoApi.csproj?highlight=12)] -Run `dotnet restore` to download and install the EF Core InMemory DB provider. You can run `dotnet restore` from the terminal or enter `⌘⇧P` (macOS) or `Ctrl+Shift+P` (Linux) in VS Code and then type **.NET**. Select **.NET: Restore Packages**. - ## Add a model class A model is an object that represents the data in your application. In this case, the only model is a to-do item. diff --git a/aspnetcore/tutorials/web-api-vsc/_static/vsc_restore.png b/aspnetcore/tutorials/web-api-vsc/_static/vsc_restore.png index b8da306b3d..5b4c89af8c 100644 Binary files a/aspnetcore/tutorials/web-api-vsc/_static/vsc_restore.png and b/aspnetcore/tutorials/web-api-vsc/_static/vsc_restore.png differ diff --git a/aspnetcore/tutorials/web-api-vsc/sample/TodoApi/TodoApi.csproj b/aspnetcore/tutorials/web-api-vsc/sample/TodoApi/TodoApi.csproj index 3c4f21bf34..2a6a149b39 100644 --- a/aspnetcore/tutorials/web-api-vsc/sample/TodoApi/TodoApi.csproj +++ b/aspnetcore/tutorials/web-api-vsc/sample/TodoApi/TodoApi.csproj @@ -1,14 +1,19 @@ + - netcoreapp1.1 + netcoreapp2.0 + + - - - - + - \ No newline at end of file + + + + + +