小编tka*_*lay的帖子

尝试在linux上运行netcore app时无效的runtimeconfig.json错误

我开发了.net核心控制台应用程序.它连接Azure表存储并从azure下载到本地数据库.应用程序在Windows 10 PC上没有任何问题.但是当我将它发布到运行Lubuntu的PC并尝试运行时,我收到"无效的runtimeconfig.json错误".

runtimeconfig.json的内容是:

{
  "runtimeOptions": {
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "1.1.2"
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

和dotnet --info的输出是:

NET Command Line Tools (1.0.4)
Product Information:
Version: 1.0.4
Commit SHA-1 hash: af1e6684fd
Runtime Environment:
OS Name: ubuntu
OS Version: 17.04
OS Platform: Linux
RID: ubuntu.16.10-x64
Base Path: /usr/share/dotnet/sdk/1.0.4
Run Code Online (Sandbox Code Playgroud)

SDK for Linux是最新版本.任何人有任何想法可能是错的,以及如何解决它?

.net-core

3
推荐指数
1
解决办法
3112
查看次数

标签 统计

.net-core ×1