Update build command to include Mac (#13605)
* Update build command to include Mac * Update new-field.mdpull/13609/head
parent
69134d927c
commit
0f288e36e9
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue