heroku / dotnet-buildpack

ASP.NET 5 Buildpack
MIT License
92 stars 111 forks source link

using .NET Core instead of Mono #7

Closed noliar closed 7 years ago

noliar commented 8 years ago

A simple demo: https://github.com/noliar/ASP.NET-Core-Sample. The Preview URL: https://netcore.herokuapp.com/

jenyayel commented 8 years ago

May I also suggest to add support for .post_compile script? The guy here implemented it and it works great for us:

if [ -f $SRC_DIR/.post_compile ]; then
    (cd $SRC_DIR && source .post_compile)
else
    echo "File $SRC_DIR/.post_compile not found"    
fi
raphaeljlps commented 7 years ago

Merge it, merge this for the glory 👍

jenyayel commented 7 years ago

Probably won't happen. Two main contributors of this repo no longer work at Heroku. I contacted support of Heroku, they told that this repo is experimental and they way to go with .NET Core is to use Dockerfile.

raphaeljlps commented 7 years ago

Thank you for the answer @jenyayel though I'm little 😕 about using Dockerfile

jenyayel commented 7 years ago

Well, it's a new candy that every one tries to push. I wrote a short guideline that may be helpful. Good luck!

friism commented 7 years ago

I updated my fork and sent a PR: https://github.com/heroku/dotnet-buildpack/pull/10

You can try my version here: https://github.com/friism/dotnet-buildpack

I just did this as an experiment to to see where the .NET Core toolchain was at.

As @jenyayel mentioned, the Docker approach works really well too. I built a full .NET Core Postgres example here: https://github.com/friism/heroku-docker-dotnet-core-postgres