delphi - XE2 版本信息不起作用

标签 delphi delphi-xe2

我无法让 XE2 项目在项目文件中包含版本信息。 一个最小的项目: 程序项目1;

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.

编译正常,我已选中“项目>>选项>>版本信息>>在项目中包含版本信息”。如果我取消选中它并返回,它仍然会被选中,就好像该文件是只读的一样。不知道哪个文件可以已变为只读?

最佳答案

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

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 下面提到的版本清理项目:

https://github.com/ronaldhoek/delphiprojectcleanup

关于delphi - XE2 版本信息不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21885610/

相关文章:

arrays - 在 Delphi 编写的 DLL 中使用数组

delphi - Delphi 中有类似于 C++ 预编译头文件的东西吗?

multithreading - 使用 'Unsafe' 线程函数安全吗?

delphi - 如何使用 FireMonkey 设置控制 anchor ?

delphi - 如何使用 IdHTTP 检查 URL?

delphi - 在 Delphi 中编程延迟的最佳方法是什么?

delphi - 如何为控制台窗口创建表单模式

delphi - 创建虚拟打印机作为文档管理系统的接口(interface)

delphi - 项目加载速度更快

delphi - 如何使 Enter 键在 Delphi FireMonkey 应用程序中表现为一个选项卡?