Build Variables and whitespaces
Posted: Tue Jul 26, 2022 4:49 am
I set up some pre- and post-Build Events for a number of my targets, to trigger associated Powershell scripts. It all worked fine on my side, but for another colleague sharing the project, the events never triggered.
Exhaustive research determined that it was because her projects were stored in a folder structure that contained spaces in the folder names (e.g. \My Projects\), and this caused all uses of the $(ProjectDirectory) Build Variable to fail.
Is there any way around this?
Exhaustive research determined that it was because her projects were stored in a folder structure that contained spaces in the folder names (e.g. \My Projects\), and this caused all uses of the $(ProjectDirectory) Build Variable to fail.
Is there any way around this?