From 0f288e36e9122080830d01895c7261b05e594da8 Mon Sep 17 00:00:00 2001 From: LouisT123 <52509987+LouisT123@users.noreply.github.com> Date: Thu, 1 Aug 2019 10:58:40 -0700 Subject: [PATCH] Update build command to include Mac (#13605) * Update build command to include Mac * Update new-field.md --- aspnetcore/tutorials/first-mvc-app/new-field.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aspnetcore/tutorials/first-mvc-app/new-field.md b/aspnetcore/tutorials/first-mvc-app/new-field.md index bf3bf27511..3a269cc2c0 100644 --- a/aspnetcore/tutorials/first-mvc-app/new-field.md +++ b/aspnetcore/tutorials/first-mvc-app/new-field.md @@ -27,7 +27,21 @@ Add a `Rating` property to *Models/Movie.cs*: [!code-csharp[](~/tutorials/first-mvc-app/start-mvc/sample/MvcMovie22/Models/MovieDateRating.cs?highlight=13&name=snippet)] -Build the app (Ctrl+Shift+B). +Build the app + +### [Visual Studio](#tab/visual-studio) + + Ctrl+Shift+B + +### [Visual Studio Code](#tab/visual-studio-code) + +`dotnet build` + +### [Visual Studio for Mac](#tab/visual-studio-mac) + +Command ⌘ + B + +------ Because you've added a new field to the `Movie` class, you need to update the binding white list so this new property will be included. In *MoviesController.cs*, update the `[Bind]` attribute for both the `Create` and `Edit` action methods to include the `Rating` property: