Dotnet command question

Is there any difference between the dotnet command parameters

-o , --output
and
-n, --name

Should one prefer one over the other for any reason
those two commands seem to do the exact same thing

dotnet new console --output helloworld2 -lang F#

dotnet new console --name helloworld -lang F#

1 Like

I guess the difference is when you combine them:

dotnet new console --name helloworld  --output hello2 -lang F#

Outputs:

Restored C:\Users\Dave\Source\Repos\Scratch\hello2\helloworld.fsproj

Also, Iā€™m sure that name is just for the project name my-proj whereas output can be a path to where you want it c:\temp\whatever\

3 Likes