How to get the current project name in Delphi directories settings?

不打扰是莪最后的温柔 提交于 2020-02-02 14:53:26

问题


In the project directory settings, I often need to use the project name, say 'MyProject', as part of the output paths.

I would prefer to avoid hardcoding the project name in the settings.

Is there a variable, like $(Config) and $(Platform), to dynamically obtain the current project name (without extension)?


回答1:


You can use $(SanitizedProjectName) for this purpose. Be aware that the debugger might not support that.



来源:https://stackoverflow.com/questions/58461383/how-to-get-the-current-project-name-in-delphi-directories-settings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!