From. NET Core website 1. Install the. NET Core SDK
Before you begin, remove all previous. NET core versions from the system.
In order to be able to install. Net Core in CentOS or Oracle Linux: First, prepare prerequisites
sudo yum install libunwind Libicu
download the. NET Core SDK binaries
Curl-ssl-o dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=809131
unzip these files to the system
sudo mkdir-p/opt/dotnet && sudo tar zxf dotnet.tar.gz-c/opt/dotnet
dotnet Add to PATH environment variable Tim.
sudo ln-s/opt/dotnet/dotnet/usr/local/bin
2. Initializing Code
Initialize a Hello World Application Sample!
mkdir hwapp
cd Hwapp
dotnet New
3. Run the program
The first line of command restores the specified package file according to Project.json, and the second line actually launches the program:
dotnet Restore
dotnet Run
Be ready!
You are now running on your machine using the. NET core.
You can create a asp.net core Web site, or get more examples by accessing the. NET core on GitHub. Browse. NET documentation to learn more about. NET core, use our interactive online tutorials, or learn more about. NET core through community consulting. need tools?
Visual Studio Code can run on Linux and fully support. NET Core. Download the free Visual Studio Code and install the C # Extension from the market to start the best experience.