.NET Core

Материал из ALT Linux Wiki

Пока не опакечено. Исходный код: https://github.com/dotnet/cli

Для работы (p8 по состоянию 22.03.2017) можно использовать инструкции с сайта microsoft, касающиеся Fedora 23

Установка

Установите дополнительные пакеты:

apt-get install libunwind libicu54

Скачайте саму .NET для Fedora 23

curl -SL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?linkid=843457

от root:

 mkdir /opt/dotnet
 tar xzf dotnet.tar.gz -C /opt/dotnet
 ln -s /opt/dotnet/dotnet /usr/local/bin

Проверка (не от root)

(Желательно иметь в /tmp >2 ГБ свободного места)

  dotnet new console -o hwapp
  cd hwapp
  dotnet restore
  dotnet run

Output

cas@cas dotnet $ dotnet new console -o hwapp

Welcome to .NET Core!
---------------------
Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.

Telemetry
--------------
The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include command-line arguments. The data is collected by Microsoft and shared with the community.
You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
You can read more about .NET Core tools telemetry @ https://aka.ms/dotnet-cli-telemetry.

Configuring...
-------------------
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 100% 6052 ms
Expanding 100% 8288 ms
Getting ready...
Content generation time: 93,9086 ms
The template "Console Application" created successfully.
cas@cas dotnet $ cd hwapp
cas@cas hwapp $ dotnet restore
  Restoring packages for /home/cas/tmp/dotnet/hwapp/hwapp.csproj...
  Generating MSBuild file /home/cas/tmp/dotnet/hwapp/obj/hwapp.csproj.nuget.g.props.
  Generating MSBuild file /home/cas/tmp/dotnet/hwapp/obj/hwapp.csproj.nuget.g.targets.
  Writing lock file to disk. Path: /home/cas/tmp/dotnet/hwapp/obj/project.assets.json
  Restore completed in 766,84 ms for /home/cas/tmp/dotnet/hwapp/hwapp.csproj.
  
  NuGet Config files used:
      /home/cas/.nuget/NuGet/NuGet.Config
  
  Feeds used:
      https://api.nuget.org/v3/index.json
cas@cas hwapp $ dotnet run
Hello World!
cas@cas hwapp $

Visual Studio Code

Можно установить Visual Studio Code https://code.visualstudio.com/ Устанавливать из .tar.gz для Linux x64 запускать code