Getting Started with .NET 9 on Windows Hosting Print

  • 0

Overview

.NET 9 is a Standard Term Support (STS) release with cutting-edge features and performance improvements. It is supported until May 2026.

Note: For production applications requiring long-term support, consider .NET 8 LTS (until Nov 2026) or .NET 10 LTS (until Nov 2028).

Prerequisites

  • Active hosting account with Plesk control panel access
  • Visual Studio 2022 (17.10 or later) or VS Code
  • .NET 9 SDK installed on your development machine

Verifying .NET 9 Availability

  1. Log in to your Plesk control panel
  2. Navigate to Websites & Domains
  3. Click Hosting Settings
  4. Check .NET Core Version dropdown for 9.0.x

Creating a .NET 9 Application

dotnet new webapp -n MyApp -f net9.0
cd MyApp
dotnet run

Key .NET 9 Features

  • Performance: Further JIT and GC improvements
  • LINQ Enhancements: New methods like CountBy(), Index()
  • Blazor: Improved static rendering and hydration
  • OpenAPI: Built-in OpenAPI document generation
  • AI Integration: Microsoft.Extensions.AI libraries

Publishing to Plesk

dotnet publish -c Release -o ./publish
  1. Upload files to httpdocs via Web Deploy or FTP
  2. In Plesk Hosting Settings, set .NET Core Version to 9.0.x
  3. Set Application Startup File to YourApp.dll

STS vs LTS Considerations

.NET 9 (STS): Latest features, 18-month support

.NET 8 (LTS): Stable, 3-year support - recommended for most production apps

.NET 10 (LTS): Newest LTS, 3-year support - recommended for new projects


Was this answer helpful?

« Back