「.NET 開発基盤部会 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。
- Wine - Wikipedia
https://ja.wikipedia.org/wiki/Wine
- Is Core.NET dependent on WINE? - Full Framework - .NET Foundation Forums
http://forums.dotnetfoundation.org/t/is-core-net-dependent-on-wine/1673
- Comparing WINE and .NET Core is pretty much apples-and-oranges.
- WINE is an alternate implementation of a lot of the Windows DLLs,
so that Windows programs can (attempt) to run on Linux.- .NET Core allows code to be compiled and run natively on Linux.
SCD の場合を除き、.NET Core ネイティブ インストーラーにより、.NET Core をインストールする。
ここでは、dotnetでビルドする手順を説明する。
$ dotnet new console
$ dotnet publish -c Release -r centos.7-x64
・・・
上記と同じ手順で、ビルド・実行可能。
ここでは、Visual Studioでビルドする手順のみ説明する(dotnetでもビルドできるが)。
#ref(): File not found: "BuildByVS.png" at page ".NET Coreのインストールとデプロイ"
$ dotnet new console <<< コンソール プロジェクトを新規作成 $ dotnet build --output /build_output <<< プロジェクトをビルド
$ dotnet ./ConsoleApp1.dll Hello World!
$ dotnet /build_output/my_app.dll <<< ビルドされたアセンブリを実行
<RuntimeIdentifiers>win10-x64;osx.10.11-x64</RuntimeIdentifiers> <RuntimeIdentifiers>win10-x64;centos.7-x64;ubuntu.16.04-x64</RuntimeIdentifiers>
.NET Core ネイティブ インストーラーにより、.NET Core をインストールする。
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft- ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list' sudo apt-get update
sudo apt-get install dotnet-sdk-2.0.0
#ref(): File not found: "Ubuntu-1.png" at page ".NET Coreのインストールとデプロイ"
ここでは、dotnetでビルドする手順を説明する。
$ dotnet new console
$ dotnet publish -c Release -r ubuntu.16.04-x64
・・・
上記と同じ手順で、ビルド・実行可能。
ここでは、Visual Studioでビルドする手順のみ説明する(dotnetでもビルドできるが)。
プラットフォームに依存しないので、CentOSの手順と同じになる。