Skip to content

Instantly share code, notes, and snippets.

@tschoonover
Last active June 6, 2019 07:52
Show Gist options
  • Save tschoonover/274627440d11ff32c2cd91a9d16a4974 to your computer and use it in GitHub Desktop.
Save tschoonover/274627440d11ff32c2cd91a9d16a4974 to your computer and use it in GitHub Desktop.
Install .NET Core 1.1 and VS Code with C# extension for Linux Mint 18 / Ubuntu 16.04 (amd64)
#!/bin/bash
#dotnet
sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
apt-get update
apt-get install dotnet-dev-1.0.0-preview2.1-003177
#vscode
wget "https://go.microsoft.com/fwlink/?LinkID=760868" -qO /tmp/vscode.deb && dpkg -i /tmp/vscode.deb
code --install-extension ms-vscode.csharp
#node and npm
apt-get install nodejs nodejs-legacy npm
npm install npm@latest -g
#yeoman
npm install -g yo
npm install -g generator-aspnet
@tschoonover
Copy link
Author

tschoonover commented Oct 12, 2016

Description

Installs a web development environment for Linux Mint 18 / Ubuntu 16.04 consisting of the following tools.

  • .NET Core 1.1
  • Visual Studio Code with C#
  • Node.js and NPM
  • Yeoman

Usage

curl -s https://gist.githubusercontent.com/tschoonover/274627440d11ff32c2cd91a9d16a4974/raw/b86a6dfb39a06e49882ce8f6c698993cf8b993fd/bootstrap-dotnet | sudo bash -s

To Uninstall .NET Core

curl -s https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/uninstall/dotnet-uninstall-debian-packages.sh | sudo bash -s

Reference

https://www.microsoft.com/net/core#linuxubuntu

@Steven-Harris
Copy link

Pretty cool!

@kimcuhoang
Copy link

It helps me reduce more steps.

Thanks.

@contropist
Copy link

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment