Where can I execute and find out the value of $(ProjectDir)?
$(ProjectDir)
In Visual Studio 2015, you can find ProjectDir by clicking on Macros in additional Include Directories and then clicking on Macros (for me there was nothing in Build Events) :