The -o
parameter for setting the output directory no longer works with the 4.6.2 update.
nuget.exe
4.6.2
4.5.x
NuGet Pack
with -o [folder]
to set the output folder. error : Ambiguous option 'o'. Possible values: OutputDirectory OutputFileNamesWithoutVersion.
@dotMorten Thanks for reporting this issue.
The option -OutputFileNamesWithoutVersion
was adding as part of this commit, which was first introduced in NuGet 4.6.x.
Please start using -OutputDirectory
as a safe usage of the switch and the command. In general, if you you use partial switch names, then it can break in the future. But using full names for the switches will be safe.
it can break in the future
Why even have the partial switch names at all then? This is a horrible horrible practice. Please don't break our builds.
@dotMorten we had an internal discussion and are reopening this issue for consideration.
Most helpful comment
Why even have the partial switch names at all then? This is a horrible horrible practice. Please don't break our builds.