# Controling version info for delphi2007 thru msbuild

**URL:** https://www.finalbuilder.com/forums/t/controling-version-info-for-delphi2007-thru-msbuild/527
**Category:** Discussion
**Created:** [July 16, 2007, 2:21am UTC](https://www.finalbuilder.com/forums/t/controling-version-info-for-delphi2007-thru-msbuild/527 "2007-07-16T02:21:26Z")
**Posts on this page:** 2
**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: [July 16, 2007, 2:21am UTC](https://www.finalbuilder.com/forums/t/controling-version-info-for-delphi2007-thru-msbuild/527/1 "2007-07-16T02:21:26Z")

</div>

Hi

We are converting our delphi5 projects&nbsp;to delphi 2007. We want to do the compilations thru the MsBuild action&nbsp;. But the exe is produced with the original version number. How can I set the Version numbers during the Build?

Thanks Daphna Levin

---

<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: [July 16, 2007, 2:40am UTC](https://www.finalbuilder.com/forums/t/controling-version-info-for-delphi2007-thru-msbuild/527/2 "2007-07-16T02:40:34Z")

</div>

Hi Daphna   
  
The delphi msuild task does not deal with version information, it is is all controlled by the IDE. That is why we chose not to rely on the msbuild task for our D2007 support. You will have to create an rc file and use the Win32 Version Info Updater action to update it, and then use the resource compiler (BRCC32) to compile the rc file to a .res file (this is the file the delphi ide updates). The rc file will also need to reference your application's icon as well.
