# install .Net Core 1.0 on Ubuntu 16.04git
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list' sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 sudo apt-get update sudo apt-get install dotnet-dev-1.0.0-preview2-003121 sudo apt-get install dotnet-hostfxr-1.0.2-beta-000583-00
# create a web appweb
mkdir hwweb cd hwweb dotnet new -t web git init . dotnet restore dotnet run
# ef commandsapp
dotnet ef migrations add Initial
dotnet ef database update