David P 3 Posted May 6, 2022 I'm trying to standardise on a common output pathing for our various apps and for the output directories I have something like this: $(DEV_BUILD_DIR)\$(MSBuildProjectName)_$(Platform)_$(Config) To create C:\dev_build\MyApp_Win32_Debug\ This works fine for the intermediate files etc. If I use the above for the Final Ouput directory, the exe (+others) are placed in the directory, but an F9 results in an error saying unable to locate the executable. It looks like the IDE has no knowledge of $(MSBuildProjectName). Aside from envrionment variables, is there a list available of other params to be used in the project directory fields, specifically the project name? Thanks. Share this post Link to post
David P 3 Posted May 7, 2022 Thanks, it partially works. An empty directory called c:\dev_build\MyApp_Win32_Debug\ is created, but also one called c:\dev_build\_Win32_Debug\ which contains all the output files (exe, obj, il* etc) Share this post Link to post
Uwe Raabe 2057 Posted May 7, 2022 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. A possible solution is to normalize the project file with Project Magician, which places the variable in front of any others in the base configuration. Share this post Link to post