I need to set the version of my delphi project to be the same as another project (not delphi) as part of a build script. Is there a way to control the version number without going thru the IDE, for example command line param of the compiler or something like that? Thanks
相关问题
- Is there a Delphi 5 component that can handle .png
- Is there a way to install Delphi 2010 on Windows 2
- Is TWebBrowser dependant on IE version?
- iOS objective-c object: When to use release and wh
- DBGrid - How to set an individual background color
相关文章
- 使用Webstorm打开刚下载的jquery为什么会有报错
- Best way to implement MVVM bindings (View <-> V
- Windows EventLog: How fast are operations with it?
- How to force Delphi compiler to display all hints
- Coloring cell background on firemonkey stringgrid
- HelpInsight documentation in Delphi 2007
- Can RTTI interrogate types from project code at de
- 这个python项目用什么ide打开好?
Marjan gives an excellent answer above, but my answer takes the answer a little further. Consider this RC file:
The benefit in using the several #INCLUDE statements is that you can leave the RC file alone and then simply modify (or even auto-generate) the *.txt include files which look like:
Note that now you have to delete the *.res files before running your build to force the linker to regenerate them from (possibly changed) version numbers.
Include a line like
in your project. And create a version.rc file with your version information. You will have to build the resource yourself in older Delphi versions using brcc32. In newer Delphi versions you can use
to have the IDE build it automatically for you.
The simplest version.rc would look something like:
For more information, please refer to MSDN on the VERSIONINFO structure.