简体   繁体   English

Delphi 2007 VCL项目名称与编译的exe名称不同?

[英]Delphi 2007 VCL Project Name Different from Compiled Exe Name?

Is there a way to have a Project named "SomeProject" that creates an EXE named "SomethingDifferent.exe"?有没有办法让一个名为“SomeProject”的项目创建一个名为“SomethingDifferent.exe”的 EXE? In .net it is simple to have your project name be independent of your generated Assembly name, but I don't see how to do the equivalent in Delphi 2007.在 .net 中,让您的项目名称独立于您生成的程序集名称很简单,但我不知道如何在 Delphi 2007 中进行等效操作。

You can use MSbuild with the Post-build event您可以将 MSbuild 与 Post-build 事件一起使用

在此处输入图像描述

for example you can create a copy of your exe with the name which you want using a command like this例如,您可以使用这样的命令创建具有所需名称的 exe 副本

DEL  "$(OUTPUTDIR)SomethingDifferent.Exe"
COPY "$(OUTPUTDIR)$(OUTPUTFILENAME)" "$(OUTPUTDIR)SomethingDifferent.Exe"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 黑客能否访问已编译的 exe Delphi VCL 应用程序中的变量、方法、单元等名称? - Can a hacker get access to the name of variables, methods, units, etc. inside a compiled exe Delphi VCL application? Delphi VCL项目可以编译成浏览器插件吗? - Can Delphi VCL project be compiled to a browser plugin? VCL项目是否可以具有两个具有相同类名但名称空间不同的表单? - Can a VCL project have 2 forms with the same class name but different namespaces? Exe中缺少Delphi 2007版本信息 - Delphi 2007 Version Info missing from Exe 从已编译的release exe中删除类字符串名称 - Remove classes string name from compiled release exe Delphi VCL TMediaPlayer:文件路径/名称长度限制 - Delphi VCL TMediaPlayer: file path/name length limit Delphi - 在修复 VCL 错误时,单元 x 是用不同版本的 x 编译的 - Delphi - Unit x was compiled with a different version of x, when fixing a VCL bug Delphi Windows服务名称与项目名称冲突 - Delphi Windows service name conflict with project name GetDetailsOf 返回属性名称而不是值(delphi 2007) - GetDetailsOf returns property name instead of value (delphi 2007) 从delphi.exe提取项目文件 - Extracting project file from delphi.exe
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM