Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileVersion inconsistency between UpdateAssemblyInfo and UpdateVersionProperties #1241

Closed
bording opened this issue Jun 23, 2017 · 3 comments

Comments

@bording
Copy link
Contributor

bording commented Jun 23, 2017

The new UpdateVersionProperties section in the 4.0 GitVersionTask.targets file is using a different value for FileVersion than the UpdateAssemblyInfo task.

UpdateAssemblyInfo is using AssemblySemFileVer.

UpdateVersionProperties is using $(GitVersion_MajorMinorPatch).$(GitVersion_CommitsSinceVersionSource) in both versions of the targets file.

To maintain consistency with previous behavior, I think UpdateVersionProperties should be changed to match UpdateAssemblyInfo.

I'd be happy to submit a PR if you agree that this should be changed.

@asbjornu
Copy link
Member

I assume this inconsistency will be easier to deal with after #1242 (comment) is completed?

@bording
Copy link
Contributor Author

bording commented Jun 29, 2017

Well, it would be easy to submit a quick PR that fixed this one thing, since it would just be a matter updating the two targets files to have the correct value.

The larger refactoring being considered in #1242 would also end up taking this into account, but maybe it would be worth fixing this up in the existing code first?

@bording
Copy link
Contributor Author

bording commented Jun 30, 2017

@asbjornu I went ahead and fixed this up: #1247

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants