Skip to main content

Requirements

  • .NET SDK 10 installed locally
  • Account on Vertra Cloud
  • An ASP.NET Core or console project with a .csproj

Project Structure

The platform detects .NET from .csproj, .fsproj, .sln or global.json at the root of the project. It publishes the project in Release mode with dotnet publish and starts the result.

Configuration

MyServer.csproj

vertracloud.config

MAIN is the .csproj file.

Example: Minimal API

The app must listen on the port defined by ASPNETCORE_HTTP_PORTS. The platform already sets it to 80, so you don’t need to configure the port in code or with extra settings.

Deploy

  1. Compress the project into a .zip or push it to GitHub.
  2. In the dashboard, click New Project and upload the .zip or paste the repository URL.
  3. In Build, check the runtime (.NET), the main file (MyServer.csproj) and the memory. Start and build commands are under Advanced settings.
  4. Add your environment variables in Environment.
  5. In Network, turn on web publishing so the app gets a *.vertraweb.app address (Pro plan or higher, 512 MB of memory). The app must listen on port 80.
  6. Review and deploy. Follow the output in the Logs tab.
The full walkthrough is in First deploy.

Available Versions

Notes

  • Build: the project is published with dotnet publish in Release mode during deployment, so the first deploy can take a few minutes. Give the build enough memory
  • Exclude from the zip: bin and obj folders
  • Environment variables: read them with Environment.GetEnvironmentVariable("KEY") or through builder.Configuration
  • Logging: use ILogger or Console.WriteLine() for logs that appear in real time
  • Keep TargetFramework at net10.0

Common Errors

  • Project file not found: MAIN must point to the .csproj, relative to the root of the zip.
  • Site doesn’t open: the app must listen on the port in ASPNETCORE_HTTP_PORTS (80). Remove any port you hardcoded in code, so the app follows ASPNETCORE_HTTP_PORTS.
  • Build runs out of memory: raise the application’s memory and deploy again. See Common Errors.