David P 3 Posted October 12, 2022 Does anyone know of a variable for the exe name I can use in the Project|Options|C++ Shared Options - Paths? $(ModuleName) is blank and using some M$Build name var (I forget the exact name) results in F9 not being able to find the exe. Ideally, I'd like a standard output path for all projects, something like: $(DEV_BUILD_DIR)\$(ExeNameHere)_$(Platform)_$(Config) Thanks all. Share this post Link to post
Uwe Raabe 2057 Posted October 12, 2022 $(SanitizedProjectName) gives the name of the project without extension. 1 Share this post Link to post
David P 3 Posted October 12, 2022 (edited) Thanks Uwe. I forgot that I'd already asked this question and tried $(SanitizedProjectName) , which fails for some elements of the BCB toolchain (Linker I think). Edited October 12, 2022 by David P Share this post Link to post
David P 3 Posted October 12, 2022 (edited) From the above thread, your comment: >> The variable is defined in the base configuration, so it is safe to use it in the inherited ones, but fails when used inside the base configuration itself. Gives the solution. Do not define the output paths in Target - All Configuraitons but in Target - Debug Configuration - All Platforms / Release Configuration - All Platforms then it works . Edited October 12, 2022 by David P Share this post Link to post