Skip to content

Commit

Permalink
Added information for linux dotnet setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gpproton committed Jul 16, 2023
1 parent 3bf01a9 commit 1173a2e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions linux/dotnet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# dotnet related tops and tricks

## un-proviledged setup script

```bash
mkdir -p $HOME/.dotnet
curl "https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh" -o $HOME/.dotnet/dotnet-install
chmod +x $HOME/.dotnet/dotnet-install
$HOME/.dotnet/dotnet-install -c LTS --install-dir $HOME/.dotnet

cat >>"$HOME/.bashrc" <<SHELL
## start dotnet
export DOTNET_ROOT=\$HOME/.dotnet
export PATH=\$PATH:\$DOTNET_ROOT
export PATH=\$PATH:\$DOTNET_ROOT/tools
## end dotnet
SHELL
# source $HOME/.profile
## or
## source $HOME/.zshrc
dotnet --info
```

## import certificates

```bash
dotnet dev-certs https --clean --import $HOME/localhost.pfx -p ""
dotnet dev-certs https --trust
```

0 comments on commit 1173a2e

Please sign in to comment.