2
I read some news that it is possible to install ASP.NET 5 on Linux. Would someone please have a nice tutorial that could help me with this? I would like to install on Ubuntu.
2
I read some news that it is possible to install ASP.NET 5 on Linux. Would someone please have a nice tutorial that could help me with this? I would like to install on Ubuntu.
1
To install ASP.NET on Linux, follow the instructions below, based on the following link: https://talkitbr.com/2016/05/10/instalando-asp-net-5-no-ubuntu-14-04-lts/
Install the prerequisites if they are not already on your machine:
sudo apt-get install unzip curl git
Update apt-get references
sudo apt-get update
Install the. NET version manager
curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
Install the running environment . NET
sudo apt-get install libunwind8 gettext libssl-dev libcurl4-openssl-dev zlib1g libicu-dev uuid-dev
dnvm upgrade -r coreclr
Install the libuv
sudo apt-get install make automake libtool curl
curl -sSL https://github.com/libuv/libuv/archive/v1.8.0.tar.gz | sudo tar zxfv - -C /usr/local/src
cd /usr/local/src/libuv-1.8.0
sudo sh autogen.sh
sudo ./configure
sudo make
sudo make install
sudo rm -rf /usr/local/src/libuv-1.8.0 && cd ~/
sudo ldconfig
Ready, now you can download examples and run . NET applications on the Ubuntu machine. Following the tutorial above, see the steps below to run an example application . NET
Create an example directory for ASP.NET applications
cd ~/ && mkdir aspnet-samples && cd ~/aspnet-samples
Clone the ASP.NET 5 project
git clone https://github.com/aspnet/Home.git
Check the installed version on your machine to run the correct sample:
dnx --version
See the version used. When I ran such a command, the version returned was: . 0.0-rc1-update1
Go to the directory referring to the version returned by the command below:
cd ~/aspnet-samples/Home/samples/1.0.0-rc1-update1/
Retrieve the Nuget packages
dnu restore
Go to the Helloweb sample directory
cd ~/aspnet-samples/Home/samples/1.0.0-rc1-update1/HelloWeb
Run the command again to recover Nuget dependencies
dnu restore
And finally run the application
dnu web
In your browser, go to the local URL http://localhost:5004 and see the running application.
It doesn’t work like that anymore.
I just ran the steps and it worked
Seriously this @bigown?
@WallaceMaxters https://blogs.msdn.microsoft.com/webdev/2016/05/16/announcing-asp-net-core-rc2/
RC1 is made that way
The post https://blogs.msdn.microsoft.com/webdev/2016/05/16/announcing-asp-net-core-rc2/ is certainly valid, but gives no more specific instructions on how to do this.
There is no more aspnet 5, now it is Asp net core and came out yesterday rc2
Browser other questions tagged linux ubuntu asp.net-core
You are not signed in. Login or sign up in order to post.
Just look at the official documentation: https://www.microsoft.com/net/core#Ubuntu Check out this: http://answall.com/q/52158/101, http://answall.com/q/40671/101
– Maniero
With this I install . NET Core, not ASP.NET 5.
– EduardoFernandes
And it’s with him that you install ASP.Net.
– Maniero