Gudradain Gudradain - 6 months ago 31
Linux Question

ASP.NET 5 : Is the "dotnet" command replacing "dnu" and "dnx" commands?

Today, I was following multiple tutorial to run a C# application on Linux but always got stuck at the command

dnu restore
which was returning me a
not found
error. Later on, I found out this page which seems to indicate that the new command is
dotnet restore
and when I tried it, it worked.

Are the
dnu
and
dnx
commands completely replaced?

Also, is there some documentation somewhere about the
dotnet
commands?

Answer

Is the dotnet command replacing dnu and dnx commands?

Yes. They are introducing new command line toolchain, ASP.NET 5 will transition to the new tools for RC2. This is already in progress. There will be a smooth transition from DNX to these new .NET Core components.

Are the dnu and dnx commands completely replaced?

No. You can use dnu and dnx, if you follow this instruction Installing .NET Core on Linux.

Is there some documentation somewhere about the dotnet commands?

CLI Repo / Intro to .NET Core CLI - v1.0.0