Install for CentOS 7.1 & Oracle Linux 7.1
-
1
Install .NET Core SDK
Before you start, please remove any previous versions of .NET Core from your system.
In order to install .NET Core 1.1 on CentOS or Oracle Linux, first you need to get the prerequisites and then you download the .NET Core SDK binaries, extract them onto your system and put
dotnetonto your PATH.For other releases you can check the Linux downloads section.
- sudo yum install libunwind libicu
- curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=835019
- sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
- sudo ln -s /opt/dotnet/dotnet /usr/local/bin
-
2
Initialize some code
Let's initialize a sample Hello World application!
- mkdir hwapp
- cd hwapp
- dotnet new
-
3
Run the app
The first command will restore the packages specified in the project.json file, and the second command will run the actual sample:
- dotnet restore
- dotnet run
-
And you're ready!
You now have .NET core running on your machine!
Visit the .NET Documentation to get access to additional tutorials, samples and the full .NET Core documentation.
-
Want some tools?
Visual Studio Code runs on Linux and has full support for .NET Core.
Download Visual Studio Code
本文档详细介绍了如何在 CentOS 7.1 和 Oracle Linux 7.1 上安装 .NET Core SDK,并提供了初始化和运行一个简单的 HelloWorld 应用程序的步骤。
513

被折叠的 条评论
为什么被折叠?



