0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

.NET Core SDK 3.0 Preview 8をWSLにサクッとインストールする

Last updated at Posted at 2019-08-29

手順

下記のコマンドを実行する。

$ sudo apt install -y libicu60 openssl1.0
$ wget https://download.visualstudio.microsoft.com/download/pr/a0e368ac-7161-4bde-a139-1a3ef5a82bbe/439cdbb58950916d3718771c5d986c35/dotnet-sdk-3.0.100-preview8-013656-linux-x64.tar.gz
$ mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-3.0.100-preview8-013656-linux-x64.tar.gz -C $HOME/dotnet

~/.bash_profileの末尾に環境変数を追加する。

$ vi ~/.profile 

追加する内容は下記の通り。

export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet

端末を再起動するか、下記のコマンドを実行し環境変数を読み込む。

$ source ~/.profile 

備考

WSL(Ubuntu)にSnapを使って.NET Core SDK 3.0 Preview 8をサクッとインストールしようと試みたが、うまくいかなかった。(参考: Ubuntu snap not working #2972)

そのため、バイナリをダウンロードして利用する方法で対応した。

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?