Is there a variable that can be used in the Output Directory option that includes the project name? For instance:
Is there a variable that can be used in the Output Directory option that includes the project name? For instance:
SomePath\$(ProjectName)\$(Platform)\$(Config)
Using $(ProjectName) does not appear to work...
SomePath\$(ProjectName)\$(Platform)\$(Config)
Using $(ProjectName) does not appear to work...
/sub
ReplyDeleteUppercase didn't work... neither did outputname
ReplyDeleteI know it may seem awkward...I checked a .dproj file and it uses this tag: MSBuildProjectName
ReplyDeleteSo, it may work like this $(MSBuildProjectName)
$(SanitizedProjectName) will do.
ReplyDeleteUwe Raabe helped me out with this big time before. See https://wiert.me/2016/05/24/delphi-xe8-does-not-adhere-the-projectname-in-a-unit-output-directory-but-does-recognise-sanitizedprojectname/
ReplyDeleteUwe Raabe Yes!! Thank you, very much!
ReplyDeleteUwe Raabe (or anyone else) You wouldn't happen to know if it's possible to change the defaults for Output Directory and Unit output directory? (i.e. from $(Platform)\$(Config) to something else). I know I need do it only when starting a new project; it's just one less thing to worry about ;-)
ReplyDeleteDavid Nottage AFAIK, the default values are hard coded. You can also use a central optionset to override those values, which might save you some clicks and keystrokes.
ReplyDeleteUwe Raabe As good as that sounded, it doesn't seem to work for me. My steps: Create a new multiplatform app, right-click Build Configurations, click New Option Set (and save it), change the Output directory option. It doesn't seem to honour the changed setting. Am I missing something?
ReplyDeleteDavid Nottage That way it doesn't work, indeed. The option set settings are overridden by the settings for "all configurations", which is a bit weird IMHO. You can achieve the correct result when you drag the option set below the Debug and Release configurations.
ReplyDeleteUwe Raabe Sad part #2: Using $(SanitizedProjectName) in the Output directory prevents debugging from the IDE
ReplyDeleteDavid Nottage File a QP report.
ReplyDelete