Update Visual Studio to the Latest Preview

Download and install the Visual Studio preview, and install the .NET 9.0 SDK.

Update the Project File

Open the project file and change <TargetFramework>net8.0</TargetFramework> to <TargetFramework>net9.0</TargetFramework>.

Update NuGet Packages

Open the NuGet package manager and update all NuGet packages to the latest version.

Update the Aspire and MAUI Workloads

Open the Aspire workload and update all Aspire packages to the latest version.

dotnet workload install aspire android ios maccatalyst maui-android maui-desktop maui-mobile maui-windows

To Add Tab Autocompletion to PowerShell for the .NET CLI

https://learn.microsoft.com/zh-cn/dotnet/core/tools/enable-tab-autocomplete