asp.net - Heroku Push 被拒绝,无法编译 ASP.NET Core 应用程序

标签 asp.net heroku asp.net-core-1.0

我完全按照这个链接 http://codersblock.com/blog/how-to-run-net-on-heroku/

在 heroku 上部署应用程序,但出现错误

推送被拒绝,无法编译 ASP.NET Core 应用。

当我执行 git push heroku master 时。

如果有人知道这个问题,那将是很大的帮助。

谢谢。

最佳答案

什么是 heroku-16?

有不同类型的发行版(堆栈)包含您的应用程序:

  • heroku-16
  • cedar-14(支持 dotNet-core。)

这就是我们将切换到 cedar-14 的原因

如何修复:

1- 安装 heroku cli。 ( https://devcenter.heroku.com/articles/heroku-cli )

2- 打开命令。输入:

cd to/project/Root 

heroku stack:set cedar-14
git push heroku master

关于asp.net - Heroku Push 被拒绝,无法编译 ASP.NET Core 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45493124/

相关文章:

heroku - 使用 "heroku addons:create sendgrid:starter"时出现错误

django - Heroku 不会在 Django 中收集静态数据,但会告诉它会收集静态数据

session - 如何从 ASP .NET Core MVC 1.0 中的 View 访问 session

c# - 使用 Identity 2.0 数据库对 ASP.NET Core 1.0 应用程序进行身份验证

c# - GridView 固定标题

c# - URL编码和解码

asp.net - SQL 中函数中的无效对象名称错误

node.js - Sequelize 连接到 heroku postgres 数据库时卡住了

c# - 如何在 ASP.NET Core 1.0 中记录 HTTP 响应主体

c# - 多级 web.config 转换