To install .Net Core SDK 3.1 on Centos 7 need to do the next:
yum update
rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
yum install -y dotnet-sdk-3.1
yum update
rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
yum install -y dotnet-sdk-3.1
That's all. :)
Now you can test it. Let's create .Net Core console application:
dotnet new console -o helloworldApp
cd helloworldApp/
dotnet run
You should get "Hello World!" on the console.
Also you can create .Net Core web app:
cd
dotnet new razor -o myfirstwebapp
cd myfirstwebapp/
dotnet run
You should see something like this:
Комментариев нет:
Отправить комментарий