New in .NET 10.0 [20]: Unified order of command-line parameters

In the .NET SDK command-line tool dotnet, Microsoft has unified the order of parameters in .NET 10.0.

listen Print view
Traffic sign with inscription .NET

(Image: Pincasso / Shutterstock.com)

1 min. read
By
  • Dr. Holger Schwichtenberg

Until .NET 9.0, most commands in the .NET Software Development Kit consisted of a noun or adjective followed by a verb, for example dotnet new list, dotnet workload install, dotnet nuget add.

The Dotnet Doctor – Holger Schwichtenberg
Der Dotnet-Doktor – Holger Schwichtenberg

Dr. Holger Schwichtenberg is the technical director of the expert network www.IT-Visions.de, which supports numerous medium-sized and large companies with consulting and training services as well as software development, drawing on the expertise of 53 renowned experts. Thanks to his appearances at numerous national and international conferences, as well as more than 90 specialist books and over 1,500 specialist articles, Holger Schwichtenberg is one of the best-known experts for .NET and web technologies in Germany.

However, there were also some commands where a verb came first, including dotnet list package, dotnet add reference, and dotnet remove package. Microsoft has now unified the order to the following new commands:

New command Old command (still possible)
dotnet package add dotnet add package
dotnet package list dotnet list package
dotnet package remove dotnet remove package
dotnet reference add dotnet add reference
dotnet reference list dotnet list reference
dotnet reference remove dotnet remove reference

Videos by heise

The old command-line commands with the verb at the beginning are still available, so there is no breaking change here.

Besides the new parameter order, the old one is still possible (Fig. 1).

(dahe)

Don't miss any news – follow us on Facebook, LinkedIn or Mastodon.

This article was originally published in German. It was translated with technical assistance and editorially reviewed before publication.