Deploying .NET 10 Applications via Plesk Print

  • 0

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 publish command
  • 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

  1. Log in to Plesk
  2. Go to Websites & Domains
  3. Click File Manager for your domain
  4. Navigate to your web root (usually httpdocs)
  5. Upload all files from your publish folder

Option B: Using FTP

  1. Connect using your FTP credentials from Plesk
  2. Navigate to /httpdocs or your document root
  3. Upload all files from your local publish folder

Step 3: Configure .NET Core in Plesk

  1. Go to Websites & Domains
  2. Click on your domain
  3. Click .NET Core (or ASP.NET Core)
  4. 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)
  5. Click Enable or Apply

Step 4: Verify Your Application

  1. Visit your domain in a web browser
  2. Check that the application loads correctly
  3. Test key functionality

Important Notes

  • Application Pool is automatically configured for .NET Core apps
  • Environment is set to Production by default
  • Use Plesk to manage environment variables if needed

Was this answer helpful?

« Back