Scripting new versions

We are just trialling this today with a view to purchasing, and one thing is not clear to me.

I have set up a project (.wyp file) with version 1.0 (our initial version) and can update it OK using the wyBuild GUI interface, but what I want to do is set up our daily builds to automatically build an update that will patch to the latest version - how can I automatically add a new version to the project? I can see that you can script the actual build process(as detailed in the commandline help page) but I can't see if/how we can add a new version to the project without having to edit the project file manually. I want all builds to be 1.0.x just now, and each day I am already increasing the application build number to x + 1. When we switch to 1.1, I will add a new 1.1 version (manually) but for the interim daily builds I would require it to be fully automated. Is this possible?

You can add new versions using the new version XML format and passing that file as an argument to wybuild.cmd.exe. See: Building from Commandline for examples.

Tell me if this helps.

Right, yeah - is there a way we can do this via a command line argument directly, rather than writing a script/tool that generates the xml file? I guess what I am looking for is something like:

wybuild.cmd.exe "C:\YourProject.wyp" /bu -vs="1.0.00001" -ve="1.1.12345" -add="1.1.12345,files=c:\temp\all_the_files_that_make_the_application\"

You'll have to make a small script or throw together a quick exe that generates the new version XML file. For instance, immediately before you call wybuild.cmd.exe, generate the XML file from whatever batch file or utility you're using to execute wybuild.cmd.exe.

The reason we don't allow adding versions by passing in commandline arguments is that you would only be able to add the most simplistic versions. The new version XML format allows either very simple versions or very complex version (and everything inbetween).

Ok, thanks for the help!

How can I delete versions? After a few daily automated builds, my project file is already pretty big and slow to open (it is 8mb with just 4 updates to our application). So I'd like to automatically remove support for old versions every weekend, or something along these lines. Is it possible to do this via the command line system?

We're making project loading faster in wyBuild 2.6.15 (even very very large projects load quickly). Removing old versions from your project is a bad idea. Because now you're saying everyone using these old versions can no longer get the updates.