GitVersion icon indicating copy to clipboard operation
GitVersion copied to clipboard

[Bug] Inconsistency in specifying updateassemblyinfo and updateprojectfiles

Open christophwille opened this issue 3 years ago • 5 comments

Version: GitVersion 5.10.3+Branch.support-5.x.Sha.bc9c9d003e655385e3dd1ba3bd013e04062d2f9b

dotnet-gitversion . /output buildserver /nofetch /updateassemblyinfo false /updateprojectfiles true
dotnet-gitversion . /output buildserver /nofetch /updateassemblyinfo true /updateprojectfiles false

First command runs and updates the project files, second command fails with "Cannot specify both updateassemblyinfo and updateprojectfiles in the same run. Please rerun GitVersion with only one parameter". I started with the first one (parameterized the booleans in the build script), and then stumbled onto the second one when I changed the boolean params around.

christophwille avatar Jul 19 '22 10:07 christophwille

Is the bug here that GitVersion fails even though false is passed to one of the /update… parameters?

asbjornu avatar Jul 26 '22 14:07 asbjornu

The failure message is in quotation marks in my initial comment.

christophwille avatar Jul 26 '22 14:07 christophwille

I'm not asking about the message, I'm wondering why you're considering it a bug.

asbjornu avatar Jul 26 '22 15:07 asbjornu

I pointed out that one combination fails, the other works. I would have expected both to fail.

christophwille avatar Jul 27 '22 05:07 christophwille

Acknowledged! I agree that both should fail.

asbjornu avatar Jul 27 '22 08:07 asbjornu

This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs.

github-actions[bot] avatar Mar 04 '23 09:03 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. Thank you for your contributions

github-actions[bot] avatar Apr 03 '23 11:04 github-actions[bot]