This workshop will be using the following tools:
For the best experience, we recommend using Visual Studio 2022 with the .NET Aspire workload. However, you can use Visual Studio Code with the C# Dev Kit and .NET Aspire workload. Below are setup guides for each platform.
- Install Visual Studio 2022 version 17.12 or newer.
- Any edition will work including the free to use Visual Studio Community
- Select the following
ASP.NET and web development
workload.
-
Install the latest .NET 9 SDK
Note: When running on Mac with Apple Silicon (M series processor), Rosetta 2 for grpc-tools.
Run the following command to intall .NET Aspire 9.1 templates.
dotnet new install Aspire.ProjectTemplates::9.1.0 --force
To test your installation, see the Build your first .NET Aspire project for more information.
To start the workshop open start/MyWeatherHub.sln
in Visual Studio 2022. If you are using Visual Studio code open the start
folder and when prompted by the C# Dev Kit which solution to open, select MyWeatherHub.sln.