Skip to content

Dotnet

Railpack builds and deploys Dotnet applications with zero configuration.

Your project will be detected as a Dotnet application if a *.csproj file

The Dotnet version is determined in the following order:

  • Read TargetFramework from the first *.csproj file found in the project
  • Read version from the global.json file in the project root
  • Set via the RAILPACK_DOTNET_VERSION environment variable
  • Defaults to 6.0.428

Railpack builds your Dotnet application based on your project structure. The build process:

  • Installs Dotnet SDK and Runtime
  • Caches dependencies using dotnet restore
  • Builds the project using dotnet publish --no-restore -c Release -o out
  • Sets up the start command based on the publish output ./out/{project_name}
VariableDescriptionExample
RAILPACK_DOTNET_VERSIONOverride the Dotnet version6.0.428

The libicu-dev package is installed to support internationalization in your Dotnet applications.