[英]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.