Heroku Push rejected, failed to compile ASP.NET Core app

Viewed 1515

I exactly followed this link http://codersblock.com/blog/how-to-run-net-on-heroku/

to deploy the application on heroku but I am getting an error

Push rejected, failed to compile ASP.NET Core app.

when I execute git push heroku master.

If any body knows about the issue, it will be great help.

Thanks.

2 Answers

what is heroku-16?

there are different types of distros(stacks) which contains your app:

  • heroku-16
  • cedar-14 (supports dotNet-core.)

thats why we will switch to cedar-14

how to fix:

1- install heroku cli. (https://devcenter.heroku.com/articles/heroku-cli)

2- open cmd. type:

cd to/project/Root 

heroku stack:set cedar-14
git push heroku master
Related