XE2版本信息不起作用 [英] XE2 Version Info Not Working

查看:48
本文介绍了XE2版本信息不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看不到要在项目文件中包含版本信息的XE2项目。
一个最小项目:
程序Project1;

I cannot see to get an XE2 project to include version information in the project files. A minimal project: program Project1;

uses
  Vcl.Forms,
  Unit2 in 'Unit2.pas' {Form2};

  {$R *.res}

begin
  Application.Initialize;
  Application.MainFormOnTaskbar := True;
  Application.CreateForm(TForm2, Form2);
  Application.Run;
end.

and a blank unit:
    unit Unit2;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,       Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs;

type
 TForm2 = class(TForm)
 private
{ Private declarations }
 public
{ Public declarations }
 end;

var
  Form2: TForm2;

implementation

{$R *.dfm}

end.

编译正常,我有项目>>选项>>版本信息>>在项目中包含版本信息'已选中。如果我取消选中该文件,然后又将其恢复为只读文件,则不知道哪个文件可以变为只读文件。

Compiles fine and I have "Project>>Options>>Version Info>>Include version information in project' Checked. If I uncheck it and come back its still checked as if the file is read only. No idea which file could have become read only?

推荐答案

对于未保存选择的问题,您可能仅在调试配置目标中更改版本信息。在右侧面板的顶部有一个名为目标的下拉框。选择全部配置-所有平台-32位Windows平台,然后从那里取消选中。然后保存并返回,您将看到它保存了设置。之后,您可以从调试配置中取消选中它,然后保存。 Delphi是从由于某种原因所有配置选项继承设置。

For your problem where it is not saving the selection you are probably changing the version information only in the Debug Configuration Target. At the top of the right hand panel there is a drop down box called Target. Select "All Configurations - All Platforms - 32-bit Windows platform" and uncheck it from there. After that, save and go back in, you will see that it saves the setting. After that you can uncheck it from the debug configuration and it will save. Delphi is inheriting the setting from the "All configurations" option for some reason.

查看是否将所有的版本的信息要在一个̶p̶p̶l̶i̶c̶a̶t̶i̶o̶n̶在̶所有配置̶版本信息̶h̶e̶l̶p̶s̶.̶I̶我不了解的问题在Delphi它̶d̶o̶e̶s̶n̶'̶t̶把版本信息中的EXE文件时,只涉及到调试版本,但它可能是一些涉及到XE2 .̶

S̶e̶e̶ ̶i̶f̶ ̶p̶u̶t̶t̶i̶n̶g̶ ̶a̶l̶l̶ ̶o̶f̶ ̶t̶h̶e̶ ̶v̶e̶r̶s̶i̶o̶n̶ ̶d̶e̶t̶a̶i̶l̶s̶ ̶y̶o̶u̶ ̶w̶a̶n̶t̶ ̶i̶n̶ ̶t̶h̶e̶ ̶a̶p̶p̶l̶i̶c̶a̶t̶i̶o̶n̶ ̶i̶n̶ ̶t̶h̶e̶ ̶"̶A̶l̶l̶ ̶C̶o̶n̶f̶i̶g̶u̶r̶a̶t̶i̶o̶n̶s̶"̶ ̶v̶e̶r̶s̶i̶o̶n̶ ̶i̶n̶f̶o̶ ̶h̶e̶l̶p̶s̶.̶I̶ ̶a̶m̶ ̶n̶o̶t̶ ̶a̶w̶a̶r̶e̶ ̶o̶f̶ ̶a̶ ̶p̶r̶o̶b̶l̶e̶m̶ ̶i̶n̶ ̶D̶e̶l̶p̶h̶i̶ ̶w̶h̶e̶r̶e̶ ̶i̶t̶ ̶d̶o̶e̶s̶n̶'̶t̶ ̶p̶u̶t̶ ̶t̶h̶e̶ ̶v̶e̶r̶s̶i̶o̶n̶ ̶i̶n̶f̶o̶r̶m̶a̶t̶i̶o̶n̶ ̶i̶n̶ ̶t̶h̶e̶ ̶E̶X̶E̶ ̶f̶i̶l̶e̶ ̶w̶h̶e̶n̶ ̶i̶t̶ ̶o̶n̶l̶y̶ ̶c̶o̶m̶e̶s̶ ̶t̶o̶ ̶d̶e̶b̶u̶g̶ ̶v̶e̶r̶s̶i̶o̶n̶s̶ ̶b̶u̶t̶ i̶t̶ ̶m̶a̶y̶ ̶b̶e̶ ̶s̶o̶m̶e̶t̶h̶i̶n̶g̶ ̶r̶e̶l̶a̶t̶e̶d̶ ̶t̶o̶ ̶X̶E̶2̶.̶

已更新,包括以下Remi提到的版本清理项目:

Updated to include the version cleanup project that Remi mentioned below:

https://github.com/ronaldhoek/delphiprojectcleanup

这篇关于XE2版本信息不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆