一般出现这种情况都是由于开发版本的.NET Core SDK版本与部署服务器不统一导致的;
两种解决方法:
1:修改开发版本的SDK与服务器一致;
2:让服务器上的SDK版本与开发版保持一致;
.NET Core SDK 下载地址:https://dotnet.microsoft.com/download/dotnet-core