The .NET ecosystem continues to power a significant share of enterprise and cloud-native applications, from web APIs and microservices to full-stack applications built with ASP.NET Core. Developers building with C#, F#, and Visual Basic need a deployment experience that matches the productivity of the framework itself: push code, and let the platform handle the rest.
Today, we’re excited to announce native .NET buildpack support on DigitalOcean App Platform. You can now deploy your .NET applications directly from a Git repository without writing or maintaining Dockerfiles. App Platform automatically detects your .NET project, installs the correct SDK version, and builds your application for production.
Zero Configuration: Push your .NET code to a Git repository, and App Platform handles runtime detection, SDK installation, and build configuration automatically—no Dockerfile required.
Multi-Language Support: Build applications in C#, Visual Basic, or F# using the .NET and ASP.NET Core frameworks, all with the same streamlined deployment experience.
Automatic SDK Management: App Platform selects the appropriate .NET SDK version based on your project’s TargetFramework or global.json configuration, supporting .NET 8.0, 9.0, and 10.0.
Production-Ready Defaults: The buildpack compiles with the Release configuration by default and automatically detects ASP.NET Core web applications to configure the correct process type.
Once you connect your Git repository, App Platform identifies your application as a .NET project by looking for specific files in your repository root.
App Platform confirms a .NET application if it detects any of the following:
Solution files: *.sln, *.slnx
Project files: *.csproj, *.vbproj, *.fsproj
File-based apps: *.cs
Once detected, the buildpack takes over:
SDK Detection: Determines the required .NET SDK version from your TargetFramework property or global.json file
Dependency Restore: Runs dotnet restore to fetch NuGet packages
Build & Publish: Runs dotnet publish with the Release configuration
Process Registration: Automatically registers ASP.NET Core projects as web process types
App Platform uses the Heroku .NET buildpack (version 42) and supports the following SDK versions on Ubuntu 22:

The buildpack supports Target Framework Moniker (TFM) values in the format net{major_version}.0, such as net8.0, net9.0, and net10.0.
Deploying a .NET application to App Platform takes just a few steps:
Via Control Panel: Create a new app, connect your Git repository, and App Platform automatically detects your .NET project and configures the build.
Via CLI: Use doctl apps create with an app spec pointing to your repository.
Via API: Call the Apps API to create and deploy your application programmatically.
For applications that need to bind to a specific port, ensure your code reads from the PORT environment variable:
var port = Environment.GetEnvironmentVariable("PORT") ?? "5000";
builder.WebHost.UseUrls($"http://*:{port}");
Check out the .NET Buildpack documentation for advanced configuration options including custom SDK versions, build configurations, and MSBuild verbosity settings.
Native .NET buildpack support is available in all App Platform regions today. Connect your repository and deploy your first .NET application in minutes.
Check out the official documentation to get started.


