【发布时间】:2021-07-11 17:54:06
【问题描述】:
我正在尝试将 .net 5 项目部署到 google 应用引擎,但是当我想使用 .net5 运行时进行构建时似乎出现了问题。
这是我的 app.yaml
runtime: aspnetcore
env: flex
service: api
# This sample incurs costs to run on the App Engine flexible environment.
# The settings below are to reduce costs during testing and are not appropriate
# for production use. For more information, see:
# https://cloud.google.com/appengine/docs/flexible/python/configuring-your-app-with-app-yaml
manual_scaling:
instances: 1
resources:
cpu: 1
memory_gb: 0.5
disk_size_gb: 10
将应用程序发送到 gcloud 后,我收到此错误:
第 0 步:gcr.io/gcp- 运行时/aspnetcorebuild@sha256:f5552a5efdaf278a3124ea10fd1c96fg36b09fc9f98f9e620cbd71279797576b3f 第 0 步:找不到应用的 .deps.json 文件
奇怪的是,当我在 gcloud 终端中写入“dotnet --version”时,它会响应:3.1.407 有没有办法从谷歌云更新 dotnet 运行时和 sdk ?
【问题讨论】:
标签: asp.net-core google-app-engine google-cloud-platform gcloud