Overview
This guide explains how to deploy your .NET 10 (ASP.NET Core 10) application to your Windows hosting account using Plesk. Our servers have .NET 10 runtime pre-installed, so you can deploy your applications immediately.
Before You Begin
Ensure your application is:
- Built for .NET 10 target framework
- Published using
dotnet publishcommand - Tested locally before deployment
Step 1: Publish Your Application Locally
On your development machine, publish your application:
dotnet publish -c Release -o ./publish
This creates a publish folder containing all files needed for deployment.
Framework-Dependent vs Self-Contained
- Framework-Dependent (Recommended): Smaller deployment, uses server runtime
- Self-Contained: Includes runtime, larger but independent
# Framework-dependent (recommended)
dotnet publish -c Release
# Self-contained
dotnet publish -c Release --self-contained true -r win-x64
Step 2: Upload Files via Plesk File Manager or FTP
Option A: Using Plesk File Manager
- Log in to Plesk
- Go to Websites & Domains
- Click File Manager for your domain
- Navigate to your web root (usually
httpdocs) - Upload all files from your
publishfolder
Option B: Using FTP
- Connect using your FTP credentials from Plesk
- Navigate to
/httpdocsor your document root - Upload all files from your local
publishfolder
Step 3: Configure .NET Core in Plesk
- Go to Websites & Domains
- Click on your domain
- Click .NET Core (or ASP.NET Core)
- Configure the following:
- Application Root: Directory containing your app files
- Document Root: Directory with static files (usually same as App Root)
- Application Startup File: Your main DLL (e.g.,
MyApp.dll)
- Click Enable or Apply
Step 4: Verify Your Application
- Visit your domain in a web browser
- Check that the application loads correctly
- Test key functionality
Important Notes
- Application Pool is automatically configured for .NET Core apps
- Environment is set to
Productionby default - Use Plesk to manage environment variables if needed