Set My.Application.Version at compile time

EntityReborn

New member
Joined
Oct 8, 2008
Messages
3
Programming Experience
Beginner
I would like to use Date-Versioning in my app, for instance 2008.03.19-3 would be built at 3am, march 19th, 2008, But instead of manually typing this in before building, have the compiler set this at compile time. Any way to do this?
 
If you find out, let me know.. I have a tray app that I click on and it copies a string yyyy.mm.dd.hhmm to the clipboard for me to paste into the AssemblyInfo.cs file..
 
Well, currently I have an application that you run as a pre-build command, giving it the directory of your project, and It'll change all AssemblyInfo.vb (you can change the extension easily) files in that directory to have the current time as a version, in the format yyyy.mm.dd.HHmm.

You need to add it as a pre-compile command, and pass it your project directory as its only parameter.
 

Attachments

  • UpdateAssemblyInfoVersion.zip
    4.2 KB · Views: 17
Back
Top