Tel. 951986398 E-Mail /

Instalar Microsoft .NET Core 3.0 en Linux.

[1]Instalar .NET Core 3.0.

[root@dlp ~] # yum -y install deltarpm unzip zlib gettext libunwind libicu libcurl-devel openssl-devel libicu-devel

[root@dlp ~] # rpm –import

[root@dlp ~] # cat > /etc/yum.repos.d/dotnetdev.repo <<EOF



[root@dlp ~] # yum -y install dotnet-sdk-3.0

[root@dlp ~] # echo ‘export PATH=$PATH:$HOME/dotnet’ > /etc/profile.d/

[root@dlp ~] # source /etc/profile.d/

[root@dlp ~] # dotnet –version

[2]Run sample console application for test with a common user.

[cent@dlp ~]$ dotnet new console -o helloworld

Welcome to .NET Core 3.0!
SDK Version: 3.0.102

The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET Core CLI Tools telemetry:

Explore documentation:
Report issues and find source on GitHub:
Find out what's new:
Learn about the installed HTTPS developer cert:
Use 'dotnet --help' to see available commands or visit:
Write your first app:
Getting ready...
The template "Console Application" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on helloworld/helloworld.csproj...
  Restore completed in 1.41 sec for /home/cent/helloworld/helloworld.csproj.

Restore succeeded.

[cent@dlp ~] $ cd helloworld

[cent@dlp helloworld] $ dotnet run
Hello World!

[3]Run sample ASP.NET Core Web application for test with a common user.

[cent@dlp ~]$ dotnet new razor -o

The template "ASP.NET Core Web App" was created successfully.
This template contains technologies from parties other than Microsoft, see for details.

Processing post-creation actions...
Running 'dotnet restore' on
  Restore completed in 79.08 ms for /home/cent/

Restore succeeded.

[cent@dlp ~] $ cd

$ dotnet run

info: Microsoft.Hosting.Lifetime[0]
      Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
      Content root path: /home/cent/

Access to [http://localhost:5000], then following page is shown.



Servicios IT


Servicios IT