sudo yum update -ysudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
Install the .NET Core SDK
Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following command.
If using net core 3.1:
sudo yum install dotnet-sdk-3.1
dotnet publish.dll..................