Run the following command in your terminal:
brew install --cask dotnet-sdk
Verify the installation:
dotnet --version
If you want to use Visual Studio, install it using Homebrew:
brew install --cask visual-studio
Open Visual Studio:
open -a "Visual Studio"
dotnet new mvc -o MyMvcApp
cd MyMvcApp
dotnet restore
dotnet run
Open your browser and go to:
open MyMvcApp.sln
dotnet tool install --global dotnet-ef
dotnet ef migrations add InitialCreate
dotnet ef database update
dotnet publish -c Release -o out
brew upgrade dotnet-sdk
That's it! Your ASP.NET Core MVC project is set up and running on your MacBook Air M3.