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.
(Image: Pincasso / Shutterstock.com)
- 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.
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.
(dahe)