page:guides:asp net core:build and start

Configure build and start for ASP.NET Core

Build and start for an ASP.NET Core app on Ample. Verified on ASP.NET Core: the app built and started with the documented commands and answered on its public HTTPS URL. Build and start:

dotnet publish -c Release -o out

in the builder, then

dotnet <your-entry-file>.dll

on the dotnet-10 template with ASPNETCORE_URLS bound to PORT.

Prerequisites

Workflow Steps

  1. Build and start
    dotnet publish -c Release -o out in the builder, then dotnet <your-entry-file>.dll on the dotnet-10 template with ASPNETCORE_URLS bound to PORT; the server must bind 0.0.0.0 on PORT.

  2. Deploy
    Run the synchronous deploy once and read the result.
    ample deploy . --name <your-app-name> --public

  3. Verify
    Fetch the live URL on the example; on failure read the build and runtime logs.
    ample logs --kind build

Tested Configuration

Limitations

Cost Estimate

Evidence Summary

Next Actions

  1. Browse Catalog
    Action ID: browse-catalog Method: GET Relative Path: /v1/catalog

  2. Search Recipes
    Action ID: search-recipes
    Method: POST
    Relative Path: /v1/catalog/search Parameters: { "body": { "limit": 5, "query": "Configure build and start for ASP.NET Core" }}

  3. Browse ASP.NET Core
    Action ID: browse:stack:framework-asp-net-core
    Method: GET
    Relative Path: /v1/catalog/nodes/stack%3Aframework-asp-net-core