-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
output version number parts as properties and set AssemblyVersion #113
Conversation
Another idea is to stick with the current behaviour by default, and have a |
See my comment on #109 on some thoughts about the need for these changes. Can we discuss those before I dig into the details of what this PR is doing and see if there's a better way to do it? |
2638fed
to
bd42f26
Compare
@bording I've amended the commit to reflect our recent discussions. I think we can leave out the pre-release identifiers until a use-case arises. |
@bording I think the only remaining considerations here are:
The only way to get around that is to wait for #112 before implementing these features. I think it's better to live with the noise for now. And:
I'm really not sure what the best course of action is. It's good that the override completely bypasses invocation of But then this got me thinking about whether we really need an override. Or if we do, should it just be |
What are the scenarios where you're really be wanting to override the calculated version? If it's because MinVer is "broken", would you really need to just alter some build server settings to fix it? Why not commit some changes, like removing the package and manually versioning things in that case? And if you just need it to be some different version for some reason, it seems like tagging the repo is simpler than going into your build server settings to add environment variables. So, based on that, I agree that we could just remove the override and assume that if the package is installed, it should be trying to version things. |
d94e3f4
to
0494778
Compare
Co-authored-by: Brandon Ording <bording@gmail.com>
0494778
to
e8f8d3b
Compare
Released in alpha 16. |
@bording this is
a horrida slightly horrid attempt at solving #109.Functionally, it's fine, although the downside is a whole lot more noise in the build output. The stdout side-effect of using the
Exec
task goes from one line to four (although this will go away with #112):Code-wise, it's awful. Specially since taking a substring directly on@(MinVerOutputVersion)
, etc. didn't work (or at least my MSBuild-fu failed me) so I had to do that in a second series of property assignments.Can you think of a better way? 🤞Resolved in #115. 🤘One more thing is that this may also require a re-consideration of the
MinVerVersionOverride
scenario, since currently, the only properties which would be set areVersion
andPackageVersion
. Either the README would need to be updated to reflect the added burden on the user to setMinVerMajor
,MinVerMinor
,MinVerPatch
, andAssemblyVersion
manually, which is at least a bit horrible, or the version override should be fed intoMinVer.dll
so that it can be pulled apart into those properties. This is marked as WIP on that basis.Closes #109.
Closes #116.