-
Notifications
You must be signed in to change notification settings - Fork 659
Closed
Labels
Milestone
Description
Is your improvement request related to a problem? Please describe.
When re-building a commit in history, I often fail to remember to comment the GitVersion.MsBuild
package reference from my project. Which results in one failure per project with the following message:
Severity Code Description Project File Line Suppression State
Error MSB3073 The command ""C:\Users\XXX\.nuget\packages\gitversion.msbuild\5.6.10\tools\net48/gitversion.exe" "C:\Src\YYY" -output file -outputfile obj\gitversion.json" exited with code 1. YYY C:\Users\XXX\.nuget\packages\gitversion.msbuild\5.6.10\tools\GitVersion.MsBuild.targets 9
This error message is pretty generic and could (maybe?) be improved for the case of detached head with a more helpful message.
Detailed Description
Either return a different exit code and document it and/or fail with a message that would be displayed. I haven't done msbuild tasks for quite some time and so I don't really remember what's possible and how to do so.
Context
Relates to #2697