3 ms·
I wrote this post - for anyone curious, Heroku's .NET support is built on our open source .NET Cloud Native Buildpack (CNB), which is written in Rust and produc
by runesoerensen 11mo ago
I wrote this post - for anyone curious, Heroku's .NET support is built on our open source .NET Cloud Native Buildpack (CNB), which is written in Rust and produces standard OCI images.
You can use it anywhere, even locally, for free. The example in the post uses the .NET 10 file-based app feature we added support for today, so if you want to try the same functionality locally, you can do something like this:
# Create a minimal .NET 10 file-based app
echo 'Console.WriteLine("Hello HN");' > Hello.cs
# Build an OCI image using the .NET CNB
pack build hello-hn --builder heroku/builder:24
# Run it with Docker
docker run --rm -it --entrypoint hello hello-hn
# Output:
Hello HN
The "classic" Heroku buildpack shown in the demo video is just a thin wrapper around the CNB implementation: https://github.com/heroku/buildpacks-dotnet https://github.com/heroku/buildpacks-dotnet
- jf 11mo agoI came here to see if AppHarbor was still running and was pleased to see this post :D
- runesoerensen 11mo agoHi Joel! I guess you could say AppHarbor's spirit lives on - ".NET on Heroku" feels like a pretty fitting successor to "Heroku for .NET", right? Also, the AppHarbor blog is technically still running, so there's that :) Hope you're doing well!
- tehmantra 11mo agoPaketo buildpacks have also been updated with .NET 10 support day one. https://blog.paketo.io/posts/paketo-dotnet-10-support/ https://blog.paketo.io/posts/paketo-dotnet-10-support/