-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added information for linux dotnet setup
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |