Increment Version number of a vcproj using MSBuild

Hi All,

I am trying to add major version.minorversion.buildnumber as part of the build process to the generated DLL.

We have visual c++ projects in visual studio 2005 (vcproj) , and we are using a MSBuild action to build.

I cannot find a way to increase the version number of the generated dll.

Any hints?

Hi Robert,

You’re correct that this isn’t very easy to do. .NET based projects can use the “AssemblyInfo Updater” action to update version numbers before building, but at the moment there’s no easy equivalent for .RC files.

The best solution is to the use “Build VS.NET Solution” action to build the solution. If you check “Use MSBuild” then you don’t need Visual Studio installed, anyway. This action has a tab for updating the Win32 version info, which will update the relevant .rc files.

If you don’t want to build the entire solution file, you can select a single project to build as part of this action.

I’ll see what we can do about adding a dedicated action for this.

Regards,

Angus

Hi Robert/Angus

Actually FinalBuilder does have an equiv of the AssemblyInfo Updater for RC Files, it's called the Win32 Version Info Updater action :)

Oops, I actually did have a feeling there was one. Boy is my face red.

(I’ll add RC to the keywords for that action, because that’s what I searched on before I decided it wasn’t there.)