

In the Configure your new Web Application dialog: In Visual Studio 2022 for Mac select Web and Console > App > Web Application > Continue. The code command opens the RazorPagesMovie folder in the current instance of Visual Studio Code. The dotnet new command creates a new Razor Pages project in the RazorPagesMovie folder. Yes, I trust the authors (because dotnet generated the files).The checkbox trust the authors of all files in the parent folder.Visual Studio Code displays a dialog box that asks Do you trust the authors of the files in this folder.

Run the following commands: dotnet new webapp -o RazorPagesMovie The following starter project is created:Ĭhange to the directory ( cd) that will contain the project. NET 6.0 (Long-term support) and then select Create. In the Additional information dialog, select. It's important to name the project RazorPagesMovie, including matching the capitalization, so the namespaces will match when you copy and paste example code. In the Configure your new project dialog, enter RazorPagesMovie for Project name. In the Create a new project dialog, select ASP.NET Core Web App, and then select Next. Start Visual Studio 2022 and select Create a new project.
