.NET Core: различия между версиями
Нет описания правки |
Нет описания правки |
||
Строка 1: | Строка 1: | ||
Пока не опакечено. | Пока не опакечено. | ||
Для работы (p8 по состоянию | Для работы (p8 по состоянию 22.03.2017) можно использовать инструкции с сайта microsoft, касающиеся '''Fedora 23''' | ||
* https://www.microsoft.com/net/core#linuxfedora | * https://www.microsoft.com/net/core#linuxfedora | ||
== Установка == | == Установка == | ||
Установите дополнительные пакеты: | Установите дополнительные пакеты: | ||
apt-get install libunwind | apt-get install libunwind libicu54 | ||
Скачайте саму .NET для '''Fedora 23''' | Скачайте саму .NET для '''Fedora 23''' | ||
Строка 24: | Строка 22: | ||
dotnet restore | dotnet restore | ||
dotnet run | dotnet run | ||
== Output == | |||
<source lang="text">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 $</source> | |||
== Visual Studio Code == | == Visual Studio Code == |
Версия от 19:01, 21 марта 2017
Пока не опакечено.
Для работы (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