@@ -35,15 +35,11 @@ In this tutorial, you learn how to:
3535
3636# [ Visual Studio] ( #tab/visual-studio )
3737
38- [ !INCLUDE[ ] ( ~/includes/net-prereqs-vs-8 .0.md )]
38+ [ !INCLUDE[ ] ( ~/includes/net-prereqs-vs-9 .0.md )]
3939
4040# [ Visual Studio Code] ( #tab/visual-studio-code )
4141
42- [ !INCLUDE[ ] ( ~/includes/net-prereqs-vsc-8.0.md )]
43-
44- # [ Visual Studio for Mac] ( #tab/visual-studio-mac )
45-
46- [ !INCLUDE[ ] ( ~/includes/net-prereqs-mac-8.0.md )]
42+ [ !INCLUDE[ ] ( ~/includes/net-prereqs-vsc-9.0.md )]
4743
4844---
4945
@@ -151,7 +147,11 @@ Use the previously installed MongoDB Shell in the following steps to create a da
1511471 . Go to ** File** > ** New** > ** Project** .
1521481 . Select the ** ASP.NET Core Web API** project type, and select ** Next** .
1531491 . Name the project * BookStoreApi* , and select ** Next** .
154- 1 . Select the ** .NET 8.0 (Long Term support)** framework and select ** Create** .
150+ 1 . In the ** Additional information** dialog:
151+ * Confirm the ** Framework** is ** .NET 9.0 (Standard Term Support)** .
152+ * Confirm the checkbox for ** Use controllers** is checked.
153+ * Confirm the checkbox for ** Enable OpenAPI support** is checked.
154+ * Select ** Create** .
1551551 . In the ** Package Manager Console** window, navigate to the project root. Run the following command to install the .NET driver for MongoDB:
156156
157157 ``` powershell
@@ -163,7 +163,7 @@ Use the previously installed MongoDB Shell in the following steps to create a da
1631631 . Run the following commands in a command shell:
164164
165165 ``` dotnetcli
166- dotnet new webapi -o BookStoreApi
166+ dotnet new webapi -o BookStoreApi --use-controllers
167167 code BookStoreApi
168168 ```
169169
@@ -176,17 +176,6 @@ Use the previously installed MongoDB Shell in the following steps to create a da
176176 dotnet add package MongoDB.Driver
177177 ```
178178
179- # [ Visual Studio for Mac] ( #tab/visual-studio-mac )
180-
181- 1 . Select ** File** > ** New Project...** .
182- 1 . Select ** Web and Console** > ** App** from the sidebar.
183- 1 . Select the ** ASP.NET Core** > ** API** C# project template, and select ** Next** .
184- 1 . Select ** .NET 8.0** from the ** Target Framework** drop-down list, and select ** Next** .
185- 1 . Enter * BookStoreApi* for the ** Project Name** , and select ** Create** .
186- 1 . In the ** Solution** pad, right-click the project's ** Dependencies** node and select ** Manage NuGet Packages** .
187- 1 . Enter * MongoDB.Driver* in the search box, select the * MongoDB.Driver* package, and select ** Add Package** .
188- 1 . Select the ** Accept** button in the ** License Acceptance** dialog.
189-
190179---
191180
192181## Add an entity model
0 commit comments