.net GCP ubuntu VM dotnet运行控制台,无写入消息
dotnet在GCP ubuntu虚拟机上运行,无需消息.net GCP ubuntu VM dotnet运行控制台,无写入消息,.net,google-cloud-platform,.net-5,.net,Google Cloud Platform,.net 5,dotnet在GCP ubuntu虚拟机上运行,无需消息Hello World 在本地windows 10上运行的dotnet可以显示消息Hello World 版本 test@instance-1:~/Demo$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.7 LTS Release: 16.04 Codename:
Hello World
在本地windows 10上运行的dotnet可以显示消息
Hello World
版本
test@instance-1:~/Demo$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial
test@instance-1:~/Demo$ dotnet --info
.NET SDK (reflecting any global.json):
Version: 5.0.103
Commit: 72dec52dbd
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /snap/dotnet-sdk/112/sdk/5.0.103/
Host (useful for support):
Version: 5.0.3
Commit: c636bbdc8a
.NET SDKs installed:
5.0.103 [/snap/dotnet-sdk/112/sdk]
我错过了一些命令或设置
更新: 我尝试了新的控制台项目并发布和运行,它显示
分段错误(内核转储)
因为它没有指定平台 您可以尝试命令
dotnetpublish-c Release-rrhel.7-x64
然后运行它
dotnet run
也有同样的问题,请尝试dotnet run-r rhel.7-x64
设置环境时是否遵循了这些说明?我能够用这个设置运行代码,配置与您的相同。