Friday, 15 July 2016

How to Install dotnet core 1.0 and Asp.net 1.0 on Ubuntu 14.04



-sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
-sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
-sudo apt-get -y update
-sudo apt-get -y install dotnet-dev-1.0.0-preview2-003121



-sudo apt-get -y install curl
-sudo curl --silent --location https://deb.nodesource.com/setup_5.x | sudo bash
-sudo apt-get -y install nodejs


-sudo npm install -g yo


-sudo npm install -g generator-aspnet
 for running console and empty allication run follwing comamnds
-cd Helloworld
-dotnet restore
-dotnet build
-dotnet run

 for web application, choose Bootstrap (3.3.6)and also run one additional command

dotnet ef database update

 so here is all commands to run aspnet1.0 web app

-cd Helloworld
-dotnet restore
-dotnet ef database update
-dotnet build
-dotnet run

go to ->http://localhost:5000/