visual studio 2013 - How to escape the dollar sign in pre-build step -
'm fighting against visual studio escape dollar sign ($) in pre-build step. goal provide variable name litteral. vs should not try process variable name.
the documentation states %xx (where xx hexadecimal value of character) should used.
i've tried following :
%24(var.data.webhost.projectdir)
but result is
4(var.data.webhost.projectdir)
instead of
$(var.data.webhost.projectdir)
what doing wrong here ?
update 1 : correct syntax put $ sign between double quotes.
"$"(var.data.webhost.projectdir)
is answer.
as alternative using approach in documentation do:
%2524(var.data.webhost.projectdir)
%25
%
, while remaining 24
appended, forming %24
, translating $(whatever)
in output code.
the "$"
approach didn't work me writing osx-compatible post build event (for mono 5), needed this:
if [ "$(uname)" == "darwin" ]; (...)
and output, ""$"(uname)"
didn't work me.
i hope late answer helpful in future (as there not seem, down point, have issue on google).
Comments
Post a Comment