Project Options, Version Info
Project Options, Version Info
My company is UK based and I have a few projects and therefore a few deliverables ( mixture of EXE and DLL ). I am setting the Version Info up, including the Locale ID to $0809 English ( United Kingdom ) and everything seems fine when I check it via properties it has reverted to $0409 English ( United States ).
It feels like I am going insane. I have tried this at least a DOZEN times on the same DLL and the same EXE within the project and the Locale ID always reverts to $0409.
Firstly, Has anyone else experienced this ? and more importantly does anyone have a fix?
My company is UK based and I have a few projects and therefore a few deliverables ( mixture of EXE and DLL ). I am setting the Version Info up, including the Locale ID to $0809 English ( United Kingdom ) and everything seems fine when I check it via properties it has reverted to $0409 English ( United States ).
It feels like I am going insane. I have tried this at least a DOZEN times on the same DLL and the same EXE within the project and the Locale ID always reverts to $0409.
Firstly, Has anyone else experienced this ? and more importantly does anyone have a fix?
Did you change it in the correct build configuration?
ReplyDeleteYes in Release configuration, 64bit windows and Release, 32bit Windows. I also tried Release configuration ( level above ) and All Configurations ( Top level ). It's a proper steering wheel down the pants ( driving me nuts )
ReplyDeleteI don't let the IDE anywhere near my version info resource, instead I generate a .rc file, compile it, link it. The IDE isn't fit for purpose here.
ReplyDeleteDavid Heffernan I think after this experience I would agree with you whole whole heartedly !!
ReplyDeleteDavid Heffernan: does this approach work on FMX apps, too?
ReplyDeleteI had a similar problem setting the version number resource in the IDE project options -- the solution that worked for me was to delete the project files (the .PROJ and .DPR) and recreate them. You might try that.
ReplyDeleteJohn Kouraklis I don't know FMX. It will work on Windows for sure. Don't know about other platforms.
ReplyDeleteDDevExtensions has a Set Version Info dialog that works.
ReplyDeleteFrom my experience, the IDE messes up the .dproj contents and then gets "confused" so whatever you enter in the Project Options version info does not get passed on to MSBuild. Cleaning up (multiple) version info nodes manually from the .dproj usually helps. Once you grok it you can even cut & paste into the right location in the .dproj file.
ReplyDeleteIn case you choose to manage your own .rc file you can have it built automatically by MSBuild: http://tondrej.blogspot.com/2016/08/include-resource-files-in-your-delphi.html
ReplyDeleteOndrej Kelle thanks, very helpful
ReplyDeleteTony Danby Welcome!
ReplyDelete