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.
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:
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:
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.


