.netcore6.0 发布后在liunx运行报错:you must install or update .net to run this application

1、报错信息如下:

2、因为安装.netcore时执行的是 sudo yum install dotnet-runtime-6.0 不包含 ASP.NET Core 支持的 .NET 运行时

3、重新.netcore  使用sudo yum install aspnetcore-runtime-6.0 包含支持.NET 运行时,然后执行程序,正常启动

 

posted @ 2023-01-03 17:23  无声袖箭  阅读(255)  评论(0)    收藏  举报