dnx and dnu not running on Ubuntu 15.10 - asp.net-core

I have followed the instructions on docs.asp.net for Linux installation using dnvm list I can see that .NET Core is installed but when I enter just dnx or dnu it immediately returns and no message or error whatsoever.
Where am I going wrong?

Have a look at this workaround: dnx & dnu in 15.10
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-8ubuntu0.2_amd64.deb
dpkg -i libicu52_52.1-8ubuntu0.2_amd64.deb

Right now, dnx only runs on Ubuntu 14.04. Sorry...

Related

How to install msbuild on CentOs

I want to install msbuild on CentOS to run project.sln files. What are the commands for installing the same. I tried to install using "didstopia/msbuild" docker image but could not succeed.
Install the dotnet sdk for centOS.
You will be able to run msbuild files with the command dotnet msbuild or even just dotnet.

Command line to install/upgrade .NET Core

Are there command line commands to install or upgrade .NET Core?
I checked to see if I had .NET Core was installed on my computer using dotnet --version only to notice that I still had the preview version installed on my computer. I was wondering if I could issue some commands to upgrade it to the latest version.
There is no dotnet command to update .Net Core. Instead, you should use the same approach you used to install it in the first place, which depends on your OS.
Not promoted officially but it looks like there are approved packages on Chocolatey for .NET Core SDK.
https://chocolatey.org/packages/dotnetcore-sdk
Example:
> choco install dotnetcore-sdk
Or:
> choco upgrade dotnetcore-sdk
Update (December 2020): For .NET 5 the chocolatey package has changed since it's not technically branded as .NET Core any longer.
https://chocolatey.org/packages/dotnet-sdk/
Example:
> choco install dotnet-sdk
Or:
> choco upgrade dotnet-sdk
If you have WinGet, then you can use it to install (or update) .NET:
winget install Microsoft.DotNet.SDK.Preview # currently .NET 7
winget install Microsoft.DotNet.SDK.6
winget install Microsoft.DotNet.SDK.5
winget install Microsoft.DotNet.SDK.3_1
Run from an admin prompt
For those who find this on search, there are dotnet-install scripts you can use. For example:
# Windows PowerShell
Invoke-WebRequest -Uri https://dot.net/v1/dotnet-install.ps1 -OutFile "$env:temp/dotnet-install.ps1"; powershell -executionpolicy bypass "$env:temp/dotnet-install.ps1"
# PowerShell Core
Invoke-WebRequest -Uri https://dot.net/v1/dotnet-install.ps1 -OutFile "$env:temp/dotnet-install.ps1"; pwsh "$env:temp/dotnet-install.ps1"
# Shell
wget https://dot.net/v1/dotnet-install.sh && chmod +x ./dotnet-install.sh && sudo ./dotnet-install.sh
* Note the default install location for these is different than the official installers; as said in another answer the easiest path to update is to use the same method you first installed with.
Edit: apt packages for Ubuntu 22.04+ now includes dotnet6 for the SDK. Other dotnet packages, such as just the runtime (dotnet-runtime-6.0, aspnet-runtime-6.0) can be installed as well.
sudo apt update
sudo apt install dotnet6
Just a heads up so you (or other people) don't struggle for hours as I did.
.NET Core 1.1.0 ships with SDK 1.0.0 Preview 2 (when this is written), but you need SDK 1.0.0 Preview 3.
Download and install .NET Core 1.1.0 as #svick suggested, then download and install SDK Preview 3 from: https://github.com/dotnet/core/blob/master/release-notes/preview3-download.md

Redis desktop dependency on libicu52 for ubuntu12.04

I want to use a redis browser and I found redis-desktop-manager.
(http://redisdesktop.com/download)
I downloaded a deb file but it requested libicu52.
Frist. How can I install this one in Ubuntu12.04.
Second. I found later that it seems to support Ubuntu version 14+.
Would I run this on 12.04 version?
For the dependency of libicu52 Redis Desktop fail to install. You can follow bellow step:
Step 1: To download the libicu52 file. Run the command in the terminal:
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-8ubuntu0.2_amd64.deb
Step 2: Install libicu52 by executing this command:
dpkg -i libicu52_52.1-8ubuntu0.2_amd64.deb
Now, Attempt once again to install redis-desktop-manager client from debian file, I believe now everything is fine ;)
FYI, redis-desktop-manager installs and runs perfectly on my 15.10 systems.
You can probably compile redis-desktop-manager from source on your system, using the libicu* version that comes with 12.04. I would also consider upgrading: 12.04 is no longer supported, has been replaced as an LTS by 14.04 and it generally far behind.
FWIW redis-desktop-manager installs and runs fine on my 15.04 and 15.10 systems.

dnx is not recognize to run asp.net 5 application

try to run Asp.Net 5 Application through command prompt by using command
C:\asp.net5App\src\asp.net5>dnx .web
error message that I am getting.
'dnx' is not recognized as an internal or external command,
operable program or batch file.
Run dnvm upgrade.
If dnvm is not recognized, follow the instructions on the Home repo to install it, then do the previous step.
I am tied of this thread, because it has so many misleading answers that happen to work for some people and not for others. But anyway this is what worked for me.
Install visual studio 2015 (Enterprise)
open Developer Command Prompt for VS2015 and ran the following commands
#powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
the above installs .NET Version Manager (DNVM)
Then i cd into the folder where dnvm has been installed e.g
cd /Users/johnny/.dnx/bin
there i ran these commands
dnvm upgrade -r coreclr (To install DNX for .NET Core)
dnvm upgrade -r clr (To install DNX for the full .NET Framework)
then i ran
dnvm setup (to firmly setup the path)
then i got out of /Users/johnny/.dnx/bin and ran
where dnvm = C:\Users\johnny.dnx\bin\dnvm.cmd
dnvm = produced a batch of commands options to be used
Check that you've got an active runtime before you can use dnx.
dnvm use

OSX Error dnvm: command not found

I am newbie to OSX. After following the step by step instructions from https://github.com/aspnet/home.
brew tap aspnet/dnx
brew update
brew install dnvm
I got the following error when I run dnvm upgrade:
$ dnvm upgrade
Error:
-bash: dnvm: command not found
I have tried locate the dnvm and looks like it is successfully installed in the \usr\local directory.
Is there a step I am missing?
run source dnvm.sh after brew install dnvm and try to run dnvm then. Preferably, put this on your shell profile (e.g. inside .profile file) so that it will persist.
For this specific problem like the answer above mention just run source dnvm.sh
If you want to get up and running with asp.net 5 in OSX see how I fixed some problems on the way this blog post tutorial can help