# Increment Version number of a vcproj using MSBuild

**URL:** https://www.finalbuilder.com/forums/t/increment-version-number-of-a-vcproj-using-msbuild/858
**Category:** Discussion
**Created:** [May 31, 2008, 12:56pm UTC](https://www.finalbuilder.com/forums/t/increment-version-number-of-a-vcproj-using-msbuild/858 "2008-05-31T12:56:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [May 31, 2008, 12:56pm UTC](https://www.finalbuilder.com/forums/t/increment-version-number-of-a-vcproj-using-msbuild/858/1 "2008-05-31T12:56:44Z")

</div>

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&nbsp;MSBuild action to build.

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

Any hints?

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [June 2, 2008, 1:07am UTC](https://www.finalbuilder.com/forums/t/increment-version-number-of-a-vcproj-using-msbuild/858/2 "2008-06-02T01:07:29Z")

</div>

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](http://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

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 2, 2008, 2:05am UTC](https://www.finalbuilder.com/forums/t/increment-version-number-of-a-vcproj-using-msbuild/858/3 "2008-06-02T02:05:14Z")

</div>

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 :)

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [June 3, 2008, 1:15am UTC](https://www.finalbuilder.com/forums/t/increment-version-number-of-a-vcproj-using-msbuild/858/4 "2008-06-03T01:15:25Z")

</div>

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.)
