开发者

How can I add Version info to my Console Applications?

开发者 https://www.devze.com 2023-03-08 22:29 出处:网络
It appears to be what console application projects generated by IDE\'s intrinsic wizard cannot have version resource managed by IDE <-开发者_StackOverflow社区 note the emphasis here.

It appears to be what console application projects generated by IDE's intrinsic wizard cannot have version resource managed by IDE <-开发者_StackOverflow社区 note the emphasis here.

Is there any workaround(s) for this issue? (i even ready to write an OTA wizard)


Add in your .dpr ( for example above the begin of the main code) the line:

{$R *.res}

Then build your project.

It will force a resource file (.res) to be created. This also allows you to set the version info in the project options.

Update: I noticed that this 'bug' is fixed in Delphi 10 Seattle, or maybe in an earlier version. When I create a new console application, it will automatically have that $R directive.

0

精彩评论

暂无评论...
验证码 换一张
取 消