I needed this because we have branched a number of our projects, yet build
to the root of the branches. A
little odd maybe, but it works our really well. Anyways, I needed to get the version number without updating
either the build or revision. All I’ve
really done is add a revisiontype of “none” and just don’t do anything to the
revision number when that happens.
So a buildtype of noincrement and revisiontype of none give that to me. -----Original Message----- OK I
decided to be productive. I spent
the ten seconds required to add this in there. I’ve
attached the newer version of the VersionTask.cs. Doing a diff will show you that not much has changed. I’ll submit this to NantContrib dev
list, as well, in the hopes that someone of might and power will bless this
change into the codebase. -----Original
Message----- I was going to post a
question as to whether or not you could use the version task to get the version
without incrementing it, but I decided to be somewhat self
sufficient and I opened the source. <RANT> This feature soooo
should have been in there to begin with. I have come to this
conclusion solely on my personal irritation with it not existing and my need
for it to exist.
One more RevisionType of “none”
which returns the CalculateVersionNumber method
then just returns the original versionNumber variable. I will now brood over my
discontent. </RANT> Anyone have this same
problem that they’ve resolved without changing the VersionTask? |
VersionTask.ZIP
Description: VersionTask.ZIP