The Next Generation Platform is Coming - Get Ready Now!
by heroku
GitHub Readme.md
This is the official Heroku buildpack for .NET and ASP.NET Core applications.
See the Getting Started on Heroku with .NET tutorial.
A solution file (e.g. MySolution.sln
) or .NET project file (e.g. *.csproj
, *.vbproj
or *.fsproj
) must be present in the root (top-level) directory of your app's source code. If the root directory contains both solution and project files, the solution file will be preferred for the build and publish process.
The buildpack support C#, Visual Basic and F# projects using the .NET and ASP.NET Core frameworks (version 8.0 and up).
It's suggested that you use the latest version of the release buildpack. You can set it using the heroku-cli
.
heroku buildpacks:set heroku/dotnet
Your builds will always used the latest published release of the buildpack.
If you need to use the git url, you can use the latest
tag to make sure you always have the latest release. The main
branch will always have the latest buildpack updates, but it does not correspond with a numbered release.
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-dotnet#latest -a my-app
Even though it's suggested to use the latest release, you may want to lock dependencies - including buildpacks - to a specific version.
First, find the version you want from
the list of buildpack versions.
Then, specify that version with buildpacks:set
:
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-dotnet#v1 -a my-app
For more information about using the .NET buildpack on Heroku, see these Dev Center articles:
Copy the snippet above into CLI.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.