You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When executing GitVersion from command line and speficying both /outputfile and /updateprojectfiles, the tool requires the command line arguments to be in specific order for the tool to work properly. Obviously the /output file argument is used here together with the /outputfile as instructed by documentation.
This command both produces the output file and updates project files: dotnet gitversion /output file /outputfile version.json /updateprojectfiles
This command only updates project files: dotnet gitversion /updateprojectfiles /output file /outputfile version.json
Expected Behavior
Processing of the command line arguments is order/position agnostic and arguments can be used in any given order. Or alternatively if a specific order is required, this must be documented in the official documentation page at https://gitversion.net/docs/usage/cli/arguments.
Actual Behavior
version.json output file is not created when executing command dotnet gitversion /updateprojectfiles /output file /outputfile version.json which per current documentation is completely valid .
Proposed Fix
Cmd argument parsing is made order agnostic, or documenation is updated.
Describe the bug
When executing GitVersion from command line and speficying both /outputfile and /updateprojectfiles, the tool requires the command line arguments to be in specific order for the tool to work properly. Obviously the /output file argument is used here together with the /outputfile as instructed by documentation.
This command both produces the output file and updates project files:
dotnet gitversion /output file /outputfile version.json /updateprojectfiles
This command only updates project files:
dotnet gitversion /updateprojectfiles /output file /outputfile version.json
Expected Behavior
Processing of the command line arguments is order/position agnostic and arguments can be used in any given order. Or alternatively if a specific order is required, this must be documented in the official documentation page at https://gitversion.net/docs/usage/cli/arguments.
Actual Behavior
version.json output file is not created when executing command
dotnet gitversion /updateprojectfiles /output file /outputfile version.json
which per current documentation is completely valid .Proposed Fix
Cmd argument parsing is made order agnostic, or documenation is updated.
Your Environment
The text was updated successfully, but these errors were encountered: