【发布时间】:2014-02-19 15:53:30
【问题描述】:
我无法让 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.
编译正常,我选中了“项目>>选项>>版本信息>>在项目中包含版本信息”。如果我取消选中它并返回它仍然检查,就好像文件是只读的一样。不知道哪个文件可以已变为只读?
【问题讨论】:
-
你重建项目了吗?未编译,重建...
-
是的,我做到了。我按预期进行的任何更改。我打开了 XE2 基本目录(在我的 B:Drive 上,它是一个 SSD)并使用 Windows 资源管理器(Win 7)检查了属性。 “只读”复选框是精简版(未选中且非空白),因此我假设其中一个文件至少是只读的。我取消选中它并点击“应用”,但该框仍然很亮。这可能是问题吗?
-
@SetiNet Windows 将继续使用资源管理器中的只读标志来执行此操作。不要对此有任何注意。您可以对 PC 上的几乎任何文件夹执行相同操作。它背后可能有一些逻辑,但我还没有弄清楚它是什么。
标签: delphi delphi-xe2