Extending to include incremental

Apr 28, 2011 at 5:53 PM

I've added the following to VersionTokenReplacer.cs:

AddToken("YEAR", () => DateTime.Now.ToString("yyyy"));   
AddToken("MONTH", () => DateTime.Now.ToString("MM"));   
AddToken("DAY", () => DateTime.Now.ToString("dd"));

But I'm also wondering if I can increment the Revision number as well. Just being able to simply add these values helps a lot. 

May 2, 2011 at 12:23 PM

Thanks for the suggestion. I'll add your tokens.

However I don't understand what you mean by increment the revision number. Can you give an example?

May 2, 2011 at 3:07 PM

In the Major.Minor.Build.Revision numbering I'm looking at wanting to increment the Revision with every compile. Or perhaps any of them based on a token. So if I had version then next time I compiled it would increment to and so on. This stems from my need to have a file version format different from the assembly version format. It's minor true, but more features/functionality is not always a bad thing.

If it's just not possible I"m willing to live with it. In the end this is a really good solution. The only other thing I'd say it really might need is the ability to do VB.Net as well.